iOS 編譯問題總結(jié)(持續(xù)更新)

打包上線問題:

問題1:ERROR ITMS-90542: "Invalid CFBundleSupportedPlatforms value. The key 'CFBundleSupportedPlatforms' in the Info.plist file in bundle 'Payload/XXXXXX.app/XXXXXXXXXXX.bundle' contains an invalid value '[iPhoneSimulator]'. Consider removing the CFBundleSupportedPlatforms key from the Info.plist. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."

解決:找到XXXXXXXXXXX下的info.plist中的CFBundleSupportedPlatforms字段刪除


問題2: ?ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon29x29'"

解決:找到自己添加APPIcon的地方看下是否是圖片尺寸不正確(我這里是APPIcon29pt的2倍圖尺寸給成了57就報(bào)錯(cuò)了)。


問題3: ?ERROR ITMS-90362: "Invalid Info.plist value. The value for the key 'MinimumOSVersion' in bundle OilReading.app/Frameworks/WebRTC.framework is invalid. The minimum value is 8.0"

解決:首先通過.plist找到工程中的.plist文件然后找到帶有MinimumOSVersion的刪除MinimumOSVersion字段。如果沒找到搜索WebRTC.frameworkshow in finder看是否本地有info.plist文件如果有刪除其中的MinimumOSVersion字段。


問題4: ?ERROR ITMS-90535?



開發(fā)中的問題:

問題1:1:Restore the connection to“XXXX的iPhone”and run“XXXXXX”again,or if“XXXXXX”is still running,you can attach to it by selecting Debug > Attach to Process > OilReading.

解決辦法:出現(xiàn)此問題是由于列表加載過多的圖片資源、而這些資源并沒有進(jìn)行圖片壓縮,于是加載過多資源導(dǎo)致內(nèi)存警告系統(tǒng)直接殺掉APP。


問題2:Error Domain=AVFoundationErrorDomain Code=-11838 "Operation Stopped" UserInfo={NSLocalizedFailureReason=The operation is not supported for this media., NSLocalizedDescription=Operation Stopped, NSUnderlyingError=0x1c48425e0 {Error Domain=NSOSStatusErrorDomain Code=-12109 "(null)"}}

問題3: ?export Session Error : Error Domain=AVFoundationErrorDomain Code=-11823 "Cannot Save" UserInfo={NSLocalizedRecoverySuggestion=Try saving again., NSLocalizedDescription=Cannot Save, NSUnderlyingError=0x1c4658ed0 {Error Domain=NSOSStatusErrorDomain Code=-12101 "(null)"}}

解決辦法:在使用AVAssetExportSession導(dǎo)出文件到沙盒時(shí)報(bào)Cannot Save錯(cuò)誤,原因是文件已經(jīng)存在、不能overWrite。


問題4:framework提示找不到

ld: framework not found XXXXXXXFramework

clang: error: linker command failed with exit code 1 (use -v to see invocation)

解決辦法:

問題4

問題5:codesign failed with exit code 1

/Users/xp/Library/Developer/Xcode/DerivedData/XXXXXXX-glpjsfyctqpshffnvadittqejbgn/Build/Products/Debug-iphoneos/XXXXXXX.app: errSecInternalComponent

Command /usr/bin/codesign failed with exit code 1

解決辦法:

1.刪除/DerivedData/文件加下的編譯文件(貌似沒有??用)。

2.打開鑰匙穿上出開發(fā)者賬號相關(guān)的證書,接著進(jìn)入開發(fā)者中心創(chuàng)建證書,如果選擇自動(dòng)創(chuàng)建證書則直接編譯運(yùn)行就行。

3.如果還不行,重新執(zhí)行上面兩步;退出Xcode再次打開工程,重新編譯運(yùn)行,順帶看下證書中心是否有創(chuàng)建證書。


問題6:Undefined symbols for architecture x86_64:

"_OBJC_CLASS_$_WQKWeiBoPopMenuVC", referenced from:

objc-class-ref in WQKAppDelegate.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

經(jīng)典編譯錯(cuò)誤:

今天在創(chuàng)建工程時(shí)將其他工程的文件手動(dòng)拖拽到新建的工程于是出現(xiàn)了上面的編譯錯(cuò)誤

解決辦法:

1:TARGET -> Build Phases -> compile source添加缺少的文件

2.Xcode -> Preferences (finder中) -> Locations -> Derived Data 點(diǎn)擊下面的路徑刪除緩存的編譯文件


?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容