Xcode报错总结

  1. 报错:InValid Device State
    这里写图片描述
    原因:同时安装了Xcode7和Xcode8等多个版本,在交替使用的时候会出现上诉错误提示。
    解决:关闭所有Xcode版本和模拟器,重新选择一个Xcode版本打开。切换时需要在控制台使用
    选择xcode版本的命令:sudo xcode-select -s /Applications/Xcode7.app

  2. 报错:The operation couldn’t be completed (LaunchServicesError error 0)
    这里写图片描述
    原因:由于某些原因资源文件的加载方式发生变化,从而产生了编译缓存的问题
    解决:执行clean操作,清空编译错误数据,然后再Build

  3. 报错:Could not find Developer Disk Image
    原因: 是当前的xcode版本不支持真机的系统。
    解决1: 更新xcode版本
    解决2: 下载对应真机的系统配置包,将其拷贝到下面路径下
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

  4. 报错: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

  5. 报错:Could not launch “XXXX”
    这里写图片描述
    解决:设置 -> 通用 -> 描述文件 -> “你的AppleID” 选择信任

  6. 报错:The identity used to sign the executable is no longer valid
    这里写图片描述
    原因:证书失效了。
    解决:去开发者中心重新生成一个,再运行。

  7. 报错:An App ID with Identifier ‘xxxxxx’ is not available. Please enter a different string.
    这里写图片描述
    原因:发生在真机运行时,Bundle Identifier重复
    解决:修改Bundle Identifier后重新运行

  8. 报错:“(null)” is of a model that is not supported by this version of Xcode. Please use a different device.
    原因:xcode连接真机失败
    解决:关闭Xcode,再重启运行

  9. 报错: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.
    这里写图片描述
    原因:使用自己的开发者账号进行真机测试时,没有设置证书信任
    解决:打开手机设置->通用->描述文件与设备管理,看到自己的开发者账号,点击选择信任。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值