1. ? "_SCNetworkReachabilityGetFlags", referenced from:?
這個問題的解決方法加入 SystemConfiguration.framework
?2. "_OBJC_CLASS_$_WKWebView", referenced from:
在項目配置中添加系統類庫:WebKit.framework
3. ?implicit declaration of function
include the AudioToolbox.framework in your project
4. ?Invalid bitcode version (Producer: '802.0.38.0_0' Reader: '800.0.42.1_0')
該問題是由于本地Xcode版本和推送SDK打包環境不一致產生的,建議:
推送SDK基于Xcode 8編譯,請檢查本地Xcode版本,升級到Xcode 后再嘗試打包;
或
Enable Bitcode設置為NO。
5. ?問題:編譯出錯duplicate symbol _OBJC_CLASS_$_ XXX in
原因:導入頭文件的時候誤導入.m文件
解決辦法:通過搜索.m文件查出 在哪個類中導入了? 換成.h文件即可。
6. ? e.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1
這個問題很坑爹。可以看這篇文章 http://blog.csdn.net/laizile/article/details/53067813。我的問題解決是從 https://stackoverflow.com/questions/39652867/code-sign-error-in-macos-sierra-xcode-8-3-3-resource-fork-finder-information? 這里找到的。具體方法:
Solution 3: Inspired by Mark McCorkle's Answer
In terminal, goto project's root directory and execute one by one command
find . -type f -name '*.jpeg' -exec xattr -c {} \;
find . -type f -name '*.jpg' -exec xattr -c {} \;
find . -type f -name '*.png' -exec xattr -c {} \;
find . -type f -name '*.json' -exec xattr -c {} \;
Clean Xcode and Re Build. Done.
7.0 ? ?Unsupported compiler 'com.apple.compilers.llvmgcc42' selected for architecture 'armv7'
解決方法:
Change your compiler for C/C++/ObjectiveC Go to Build Settings->Build OPtions->compiler for C/C++/ObjectiveC; select Default(Apple LLVM8.0)
8.0 cannot use "@throw" with objective-c exceptions disabled
解決:build Settings 里 ? ? enable objective-c exceptions ?設置為 yes
9.0 ? ?Undefined symbols for architecture arm64:
"_SecPolicyCreateSSL", referenced from:
-[AFSecurityPolicy evaluateServerTrust:forDomain:] in AFSecurityPolicy.o
方法: 項目添加 Security.framework ?和 ?libxml2.tbd
其他倒入af引起的問題 試試添加:libz.dylib ? SystemConfiguration.framework ?MobileCoreAServices.framework ? CFNetwork.framework?