flutter 常见问题
2021-12-30 本文已影响0人
生活是这样子啊她如诗
1.iOS端打包上线流程
1.flutter clean
2.flutter build ios --release
3.打开Xcode Product ——>build
4.Product ——>archive
上传即可
2.报错 The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods install
解决:删除以下文件:
xcworkspace
Podfile.lock
Pods文件夹
~/Library/Developer/Xcode/DerivedData路径下对应工程的文件夹
之后重新执行pod install --verbose --no-repo-update
3.Xcode不更新即可运行高版本真机进行测试
存放路径:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
4.Xcode 模拟器安装路径
~/Library/Developer/CoreSimulator/Profiles/Runtimes/
5.flutter 引入fluwx报错The number of method references in a .dex file cannot exceed 64K
针对 MultiDex 配置应用
minSdkVersion 设为 21 或更高版本,系统会默认启用 MultiDex,