如今模擬器功能越來越強(qiáng)大,所以很長時(shí)間都未使用真機(jī)運(yùn)行,今天一用真機(jī)運(yùn)行携添,果然掉抗里了。
通過google搜索了一下篓叶,解決的方案很多烈掠,如下所示:
invalid bitcode signature.png
1 Clean 重啟
2 修改BitCode檢測
bitCode設(shè)置.png
3 Build Active Architecture Only設(shè)置
Build Active Architecture Only.png
4 刪除DerivedData文件夾
打開xcode找到Products文件夾 -> Products文件夾里的.app文件羞秤,show in Finder 選擇三欄顯示模式 -> 往前滑找到DerivedData文件夾, 刪除 左敌。
5 Custom Compiler Flags
在Building Seting -> 中 -> Custom Compiler Flags加 -> -fembed-bitcode
Custom Compiler Flags.png