打包上线问题:
问题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
开发中的问题:
问题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.
解决办法:出现此问题是由于列表加载过多的图片资源、而这些资源并没有进行图片压缩,于是加载过多资源导致内存警告系统直接杀掉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错误,原因是文件已经存在、不能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.打开钥匙穿上出开发者账号相关的证书,接着进入开发者中心创建证书,如果选择自动创建证书则直接编译运行就行。
3.如果还不行,重新执行上面两步;退出Xcode再次打开工程,重新编译运行,顺带看下证书中心是否有创建证书。
问题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)
经典编译错误:
今天在创建工程时将其他工程的文件手动拖拽到新建的工程于是出现了上面的编译错误
解决办法:
1:TARGET -> Build Phases -> compile source添加缺少的文件
2.Xcode -> Preferences (finder中) -> Locations -> Derived Data 点击下面的路径删除缓存的编译文件