- Creating flutter project 卡?。?/li>
在Android Studio安裝目錄下的文件夾,找到 idea.properties 文件,在最后加上一句:
disable.android.first.run=true
保存,重啟AS,新建flutter項目,就可以順利的過去了
Cannot find "xcodebuild". Xcode 11.0 or greater is required to develop for iOS. Could not build the precompiled application for the device.
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
如果路徑不對,可以找到Xcode,拉去路徑
Your Xcode version may be too old for your iOS version, The service is invalid. AMDeviceSecureSta...
報錯的元兇是flutter/bin/cache/artifacts/ios-deploy/ios-deploy,不知道ios-deploy可自行百度,查看當(dāng)前版本為1.10,下載最新版本,使用xcode編譯后,將 product 文件夾內(nèi)的 ios-deploy 文件替換掉上述目錄內(nèi)的文件即可
error: The linked and embedded framework 'App.framework' is missing one or more architectures required by this target: armv7. (in target 'Runner' from project 'Runner')
- 在項目根目錄下:
lutter clean- 刪除ios/Flutter/App.framework:
rm -rf ios/Flutter/App.framework
- flutter 升級:在終端里使用
flutter upgrade或flutter upgrade --force -
flutter upgrade時出現(xiàn)如下錯誤error: RPC failed; curl 18 transfer closed with outstanding read data remaining
緩存區(qū)溢出curl的postBuffer的默認(rèn)值太小,需要增加緩存
使用git命令增大緩存(單位是b,524288000B也就500M左右)git config --global http.postBuffer 524288000
使用git config --list查看是否生效
- 應(yīng)用一直
Installing and launching...,多數(shù)情況是需要對Flutter 進(jìn)行升級
- 刪除 Derived data 下的文件,在“前往文件夾”中輸入
~/Library/Developer/Xcode/DerivedData刪除文件夾下文件
error: Building for iOS, but the linked and embedded framework 'App.framework' was built for iOS Simulator. (in target 'Runner' from project 'Runner')
- 在項目根目錄下
flutter clean- 然后刪除ios/Flutter/App.framework:
rm -rf ios/Flutter/App.framework