1.許多插件無法使用
更新一下版本號(hào),然后,關(guān)機(jī)重啟一下應(yīng)該就可以了
2.啟動(dòng)iOS模擬器遇到問題Method does not override any method from its superclass
更新application的代碼
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
3.iOS編譯錯(cuò)誤
Multiple commands produce
'/Users/XXXX/Library/Developer/Xcode/DerivedData/YYYY-
hbbiovvwitmvkrblqxqkthsyfong/Build/Products/Debug-iphoneos/YYYY.app':
1) Target 'YYYY' has create directory command with output
'/Users/XXXX/Library/Developer/Xcode/DerivedData/Gallery-
hbbiovvwitmvkrblqxqkthsyfong/Build/Products/Debug-iphoneos/YYYY.app'
2) That command depends on command in Target 'YYYYY': script phase “[CP] Copy Pods Resources”
解答文章http://www.itdecent.cn/p/5d2d91f6df0e
報(bào)類似的錯(cuò)誤需要去到tagets 里Build Phases下 [CP]copy pods Resources 刪除Output files里的{UNLOCALIZED_RESOURCES_FOLDER_PATH}
刪除以后再用Android Studio build一下,發(fā)現(xiàn)會(huì)提示你用命令flutter create .
記得恢復(fù)Runner以后把版本號(hào)寫一下,不然你會(huì)有
The application's Info.plist does not contain CFBundleShortVersionString.這個(gè)錯(cuò)誤