問題:ld: framework not found AFNetworking
https://stackoverflow.com/questions/33809736/ld-framework-not-found-afnetworking
1橱鹏、把 pods 上的Build Active Architecture Only 改成NO
2畔塔、libstdc++.6.0.9.tbd 重啟Xcode
3救崔、XCode File——WorkSpace Setting——Build System(Legacy Build System (Deprecated))——底部勾上Do not show a diagnostic issue about build system deprecation
4魂务、bitcode——NO
問題: CocoaHTTPServer2.3 Implicit declaration of function 'LOG_OBJC_MAYBE' is invalid in C99
CocoaHTTPServer 缺少維護,可以自己為 CocoaHTTPServer 添加 DD_LEGACY_MACROS 宏定義,用來訪問 CocoaLumberjack 庫中內容崔慧。
可以在你的 podfile 最后添加如下內容:
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "CocoaHTTPServer"
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'DD_LEGACY_MACROS=1']
end
end
end
end
問題:iOS上傳包一直卡著 Transporter-could not download
http://www.reibang.com/p/2e9bed14e607
com.apple.amp.itmstransporter 清理
刪除這個文件
/Users/hualande/Library/Caches/com.apple.amp.itmstransporter
iTMSTransporter 點擊安裝
/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/bin/iTMSTransporter
雙擊
下載組件
這個步驟不需要做任何事情
重新上傳包
問題:Xcode12報錯missing one or more architectures required by this target: x86_64
刪除 VALID_ARCHS
模擬器排除架構arm64
工程中Project
——>Build Settings
——>Excluded Architecture
添加Any iOS Simulator SDK
設置為arm64
Pod
中Project
——>Build Settings
同上設置
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
清理Xcode緩存 Build Clean
rm -rf ~/Library/Developer/Xcode/DerivedData/
pod deintegrate
pod update
問題:Xcode show “Failed to prepare device for development.” error handling
This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibility.
1.重啟手機,再次運行穴墅,如仍失敗繼續(xù)下面步驟惶室。
2.重啟Xcode,再次運行封救,如仍失敗繼續(xù)下面步驟拇涤。
3.重啟電腦,再次運行誉结,如仍失敗重復上述步驟鹅士。
問題:如何查找ipa包中是否包含某個字符串
排查違規(guī)字符時,可以利用Xcode很方便的查到自己所寫代碼中的某些字符串惩坑,但是第三方SDK中的我們無法直接搜索到掉盅,場景如審核被拒原因寫明包含某個權限或者違規(guī)字符時,由于framework已經打包好以舒,如何查詢呢趾痘?
拷貝一份打包好的xxx.ipa包,直接修改后綴名ipa為zip蔓钟,解壓后找到Payload文件下xxx.app永票,
右鍵查看xxx.app包內容,找到類似項目名稱的終端文件xxx滥沫,輸入strings 后空格侣集,再拖入文件路徑,回車兰绣。