环境:
mac os 操作系统
xcode最新版本
10.2.1
flutter进行编译报错解决方案:
(null): warning: (armv7) /Users/tommy/Desktop/Project/AliPay/SourceTree/ios-msdk-git/AlipaySDK4Standard/AlipaySDK/Library/UTDID.framework/UTDID(AidManager.o) unable to open object file: No such file or directory
(null): warning: (arm64) /Users/tommy/Desktop/Project/AliPay/SourceTree/ios-msdk-git/AlipaySDK4Standard/AlipaySDK/Library/UTDID.framework/UTDID(AidStorage.o) unable to open object file: No such file or directory
解决办法
https://www.cnblogs.com/qiangyuzhou/p/10919580.html
新版的Xcode少了这个PackageApplication(注:PackageApplication在前几个版本已被标识为废弃,在8.3版本彻底移除了),所以先弄个8.3以前的包进来,先去找个旧版的Xcode里面copy一份过来
下载地址:https://pan.baidu.com/s/1f-J7KUTHePiDvXOHtW9EqA
把文件进行放到这个目录下:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
然后执行命令:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
chmod +x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication
将打包后的Runner.app 进行打包成XXXX.ipa文件:
cd /Users/shangying/fworkspace/syhospital_patient/build/ios/iphoneos/
/usr/bin/xcrun -sdk iphoneos PackageApplication -v Runner.app -o XXX.ipa
解释:-v 后面是app文件及所在路径,-o后面则是存放的ipa文件名及预存放的位置
参考文档:
手机扫一扫
移动阅读更方便
你可能感兴趣的文章