Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default key

源自:博客园  

Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default key

 

1.直接Build and run,找不到SDK 2.0

打开工程, 在菜单中选择Projects,  General标签中的最下面有一个
Base SDK for All Configurations (默认的是 iPhone Device 2.0),改成IOS2.0

 

2.再次build,出現Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default key

這是因为默认Build选择的是设备, 如果改成Simulator 则可以编译通过,并在模拟器里运行  change your build settings to Simulator

 

Check if you are building for device instead of simulator. Go to Xcode menu 'Project' -> 'Set Active SDK' change from 'Device' to 'Simulator'

 **********備註 ********** **********

I had the same issue with another Apple sample app. The only way I could resolve it (in fact, the only way I could get the option of running in the simulator at all) was tochange from debug to release and back. The dropdown still shows Base SDK Missing but if you click it, the simulator options are there and it builds.

 

3.go to menu->project->edit project setting->build. find code signing section (you can type 'code' in the quick search) in the code signing identity and set the value to'Don't Code Sign'

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值