报错:InValid Device State
原因:同时安装了Xcode7和Xcode8等多个版本,在交替使用的时候会出现上诉错误提示。
解决:关闭所有Xcode版本和模拟器,重新选择一个Xcode版本打开。切换时需要在控制台使用
选择xcode版本的命令:sudo xcode-select -s /Applications/Xcode7.app报错:The operation couldn’t be completed (LaunchServicesError error 0)
原因:由于某些原因资源文件的加载方式发生变化,从而产生了编译缓存的问题
解决:执行clean操作,清空编译错误数据,然后再Build报错:Could not find Developer Disk Image
原因: 是当前的xcode版本不支持真机的系统。
解决1: 更新xcode版本
解决2: 下载对应真机的系统配置包,将其拷贝到下面路径下
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport报错:App installation failed. This application’s application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed
原因:更换了provision文件,证书不一样了,而且iPhone上已经装了包标识符一样的 App,不能再次安装。
解决:需要删掉手机上app,再运行Xcode报错:Could not launch “XXXX”
解决:设置 -> 通用 -> 描述文件 -> “你的AppleID” 选择信任报错:The identity used to sign the executable is no longer valid
原因:证书失效了。
解决:去开发者中心重新生成一个,再运行。报错:An App ID with Identifier ‘xxxxxx’ is not available. Please enter a different string.
原因:发生在真机运行时,Bundle Identifier重复
解决:修改Bundle Identifier后重新运行报错:“(null)” is of a model that is not supported by this version of Xcode. Please use a different device.
原因:xcode连接真机失败
解决:关闭Xcode,再重启运行报错:Verify the Developer App certificate for your account is trusted on your device. Open Settings on Xxxxxxxxx and navigate to General -> Device Management, then select your Developer App certificate to trust it.
原因:使用自己的开发者账号进行真机测试时,没有设置证书信任
解决:打开手机设置->通用->描述文件与设备管理,看到自己的开发者账号,点击选择信任。
Xcode报错总结
最新推荐文章于 2023-03-04 17:04:42 发布