1. ? "_SCNetworkReachabilityGetFlags", referenced from:?
這個(gè)問題的解決方法加入 SystemConfiguration.framework
?2. "_OBJC_CLASS_$_WKWebView", referenced from:
在項(xiàng)目配置中添加系統(tǒng)類庫: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打包環(huán)境不一致產(chǎn)生的,建議:
推送SDK基于Xcode 8編譯,請檢查本地Xcode版本遵馆,升級到Xcode 后再嘗試打包银锻;
或
Enable Bitcode設(shè)置為NO既绩。
5. ?問題:編譯出錯(cuò)duplicate symbol _OBJC_CLASS_$_ XXX in
原因:導(dǎo)入頭文件的時(shí)候誤導(dǎo)入.m文件
解決辦法:通過搜索.m文件查出 在哪個(gè)類中導(dǎo)入了? 換成.h文件即可。
6. ? e.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1
這個(gè)問題很坑爹」由荆可以看這篇文章 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 ?設(shè)置為 yes
9.0 ? ?Undefined symbols for architecture arm64:
"_SecPolicyCreateSSL", referenced from:
-[AFSecurityPolicy evaluateServerTrust:forDomain:] in AFSecurityPolicy.o
方法: 項(xiàng)目添加 Security.framework ?和 ?libxml2.tbd
其他倒入af引起的問題 試試添加:libz.dylib ? SystemConfiguration.framework ?MobileCoreAServices.framework ? CFNetwork.framework?