1. 真機編譯時報錯:
Assertion failed: (false && "compact unwind compressed function offset doesn't fit in 24 bits"), function operator(), file Layout.cpp, line 5758
解決方案:
在 targets-->Build Settings -->Other Linker Flags ??里添加 -ld_classic
重新編譯即可。
2. 編譯時報錯:(真機對應(yīng):libarclite_iphoneos赋秀,模擬器對應(yīng)libarclite_iphonesimulator利朵,都是缺少文件)
SDK does not contain 'libarclite' at the path'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/
lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target
解決方案:
(1) 到這個路徑下,創(chuàng)建 arc文件夾
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/
(2) 到這個地址下載缺少的文件
下載:https://github.com/kamyarelyasi/Libarclite-Files中的 libarclite_iphoneos.a猎莲,libarclite_iphonesimulator.a
(3) 重新編譯即可绍弟。
3. 編譯運行沒問題,但是打包Archive時出現(xiàn):
IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AFNetworking.framework" failed: No such file or directory.
解決方案:
在Pods/Targets Support Files/Pods-App-frameworks.sh中:
source="$(readlink "${source}")" 修改為: source="$(readlink -f "${source}")"
重新打包即可著洼。