flutter常见编译运行等奇怪问题的汇总【持续更新】

1. flutter ios 卡死在闪屏页:

    解决办法:

1) flutter doctor

2) flutter clean

3) flutter build ios --release

4) Archive in Xcode

2. flutter ios编译出现错误:

shell script invocation Error 

Command /bin/sh failed with exit code 255

解决办法:

1) flutter build ios --release
2) xcode product-->clean

3. flutter ios编译出现错误:

diff: /Users/XXXX/XXXX/XXXX/XXXX/XXXX/ios/Pods/Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

解决办法:

1) close xcode and enter ios directory
2) rm -rf Runner.xcworkspace
3) pod install

 

你可能感兴趣的:(flutter)