打包上線問題:
問題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就報錯了)烂瘫。
問題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)此問題是由于列表加載過多的圖片資源几于、而這些資源并沒有進行圖片壓縮坯辩,于是加載過多資源導致內(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導出文件到沙盒時報Cannot Save錯誤,原因是文件已經(jīng)存在、不能overWrite。
問題4:framework提示找不到
ld: framework not found XXXXXXXFramework
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解決辦法:
問題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)的證書,接著進入開發(fā)者中心創(chuàng)建證書,如果選擇自動創(chuàng)建證書則直接編譯運行就行务嫡。
3.如果還不行甲抖,重新執(zhí)行上面兩步;退出Xcode再次打開工程心铃,重新編譯運行准谚,順帶看下證書中心是否有創(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)典編譯錯誤:
今天在創(chuàng)建工程時將其他工程的文件手動拖拽到新建的工程于是出現(xiàn)了上面的編譯錯誤
解決辦法:
1:TARGET -> Build Phases -> compile source添加缺少的文件
2.Xcode -> Preferences (finder中) -> Locations -> Derived Data 點擊下面的路徑刪除緩存的編譯文件