flutter在iOS真机和模拟器打包异常

  1. note: Using new build system note: Planning build note: Constructing build description error: /Users/yangtianfu/project/flutter/bliss/ios/Flutter/Release.xcconfig:1: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods

cd 到项目中到iOS路径下,执行 pod install 需要安装一下

2 . Could not build the application for the simulator.
Error launching application on iPhone X.

这个需要打开Xcode运行一下,看一下具体错误信息,大体还是和pods有关

  1. 打包之前打开终端需要执行如下命令,可能比较耗时,耐心等待一下
brew update
brew install --HEAD libimobiledevice
brew install ideviceinstaller ios-deploy cocoapods
pod setup
  • PS: 我使用的是最新的Xcode 11.3,所以并没有修改构建方式,本人遇到的打包问题除了签名证书意外就是pods的问题,定位问题的方法也很简单,就是在Xcode中打开,运行看报错信息,然后问google,需要的就是时间而已。
发布了316 篇原创文章 · 获赞 63 · 访问量 37万+

猜你喜欢

转载自blog.csdn.net/ytfunnysite/article/details/103489780