1.Error returned in reply: Connection invalid
出现图示所见内容一般是多个Xcode版本打开后导致的,我们可以先将Xcode缓存先清理一下,按照下图操作;
将DerivedData文件里面的全部删除(一定是里面的文件,别直接删除DerivedData了)
然后command+shift+k,最后完全退出Xcode与模拟器,再次打开项目或者Xcode跑就没问题了。
2.ERROR ITMS-90475: "Invalid Bundle. iPad Multitasking support requires launch story board in bundle "
在使用Application Loader上传ipa时出现ERROR ITMS-90475: "Invalid Bundle. iPad Multitasking support requires launch story board in bundle"错误,是由iPad分屏导致,解决方法如下:
找到项目下TARGETS->General->Deployment Info将Requires full screen打上勾就OK了。
3.ERROR ITMS-90362: "Invalid Info.plist value. The value for the key 'NSExtensionActivationRule' in bundle demo.app/PlugIns/demoShareExtensions.appex is invalid. Please refer to the App Extension Programming Guide on https://developer.apple.com"
出现这个错误说明你使用了Share Extension,这个错误只出现在上传至App Store时,从错误可以看出是Share Extension这个target里面plist中的NSExtensionActivationRule配置错误,NSExtensionActivationRule应该是个字典,里面如下
NSExtensionActivationSupportsMovieWithMaxCount
视频最多限制,数值类型,单多选都不超过设置的这个值
NSExtensionActivationSupportsFileWithMaxCount
文件最多限制,数值类型,单多选都不超过设置的这个值
NSExtensionActivationSupportsImageWithMaxCount
图片最多限制,数值类型,单多选都不超过设置的这个值
想学习Share Extension使用可看https://www.jianshu.com/p/863ce6729455。
4.ERROR ITMS-90635: "Invalid Mach-O Format. The Mach-O in bundle "demo.app/Frameworks/Hyphenate.framework" isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains arm64(bitcode), while the nested bundle Mach-O contains arm64(machine code). Verify that all of the targets for a platform have a consistent value for the ENABLE_BITCODE build setting."
此错误是使用了环信SDK,他的Hyphenate.framework的bitcode为NO,我们的项目bitcode为yes,在Build Settings中搜bitcode,将之改为bitcode即可。
5.Multiple commands produce '/Users/hooyking/Library/Developer/Xcode/DerivedData/ChooseLocation-gndxnzhiicurjpbqnalipbsnmtiz/Build/Products/Debug-iphonesimulator/ChooseLocation.app/Info.plist':1) Target 'ChooseLocation' (project 'ChooseLocation') has copy command from '/Users/hooyking/Downloads/ChooseLocation-master/ChooseLocation/fmdb/Info.plist' to '/Users/hooyking/Library/Developer/Xcode/DerivedData/ChooseLocation-gndxnzhiicurjpbqnalipbsnmtiz/Build/Products/Debug-iphonesimulator/ChooseLocation.app/Info.plist'2) Target 'ChooseLocation' (project 'ChooseLocation') has process command with output '/Users/hooyking/Library/Developer/Xcode/DerivedData/ChooseLocation-gndxnzhiicurjpbqnalipbsnmtiz/Build/Products/Debug-iphonesimulator/ChooseLocation.app/Info.plist'
此错误一般是项目为老项目,xcode内存不足导致,Xcode中点击File->Workspace Settings,Build System改为Legacy Build System,即可成功运行。
6.-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
上述问题是本人升级了Mac的系统导致的,当你的Mac系统升级为 high sierra 的时候,别忘记更新cocoapods。执行命令为:
$ sudo gem update --system
$ sudo gem install cocoapods -n/usr/local/bin
7.真机调试出现Processing symbol files
出现这个是因为第一次用你插上的真机测试项目,xcode需要自动配置一些文件,这个时间有点久,需耐心等待上方的读条完成,之后再运行就OK了。