本演示XCODE版本爲11以上,如若找不到對應的未知,可查找當前XCODE版本查找。
問題1:ERROR ITMS-90339: "This bundle is invalid. The Info.plist contains an invalid key 'UIApplicationExitsOnSuspend' in bundle test [test.app]
解決辦法: 點擊全局搜索---》輸入“UIApplicationExitsOnSuspend”--->點擊定位到"Application does not run in background"-->刪除即可解決(操作如下圖)
問題2:ERROR ITMS-90530: "Invalid MinimumOSVersion. Apps that only support 64-bit devices must specify a deployment target of 8.0 or later. MinimumOSVersion in 'test.app' is '7.0'."
問題分析:大致意思就是:你的app支持ios版本的最小版本和設置運行版本不一致
解決辦法:將app版本和Unity-iPhone版本設置一樣:查看Project--->Unity-iPhone--->Deployment裏面的ios Deployment Target版本和TARGETS-->Unity-iPhone--->Deployment Info---》Target 版本是設置否一致。具體操作如下圖:
問題3:Undefined symbols for architecture armv7:"query_call_back(callback_func_type)", referenced from:
問題分析:這個問題也比較常見,尤其是在發佈項目的時候。
解決辦法:TARGETS--Unity-iphone--->BuildSettings--->ARCHS-->去掉armv7.具體操作如下圖:
問題4:涉及到BITCODE問題,如果IOS上發佈,可以把BITCODE關閉掉。
解決辦法:在Porject--->Unity-iPhone-->點擊搜索BitCode--->把ENABLE_BITCODE關閉掉
和TARGETS-->Unity-iphone-->ENABLE_BITCODE設置爲NONE.如下圖:
問題5:The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value
問題分析:這是在進行ios藍牙開發的時候遇到的問題。
解決辦法:在info.plist裏面添加NSBluetoothAlwaysUsageDescription 或者 Privacy - Bluetooth Peripheral Usage Description 權限字段 值設置爲:"需要打開你的藍牙" 。具體操作如下圖:
未完待續: