XCODE - Failed to create provisioning profile

一、问题:

Failed to create provisioning profile.

There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it.




Just add you account under :

 

Xcode --> Preferences --> Accounts --> Apple IDs

Then goto --> Xcode 8.0, where you open your application. Now in that just select you Team --> your name (Personal Team), it will auto generate all certificates. But note that they all are created virtually, so cannot see anywhere in your account or keychain, then also you are able to run or install application in your device.


I am registered as a Personal Team with Role "USER".

 

Provisioning File: Xcode Managed Profile

Signin Certificate: iOS Developer


按照以下方案解决:

Just had the same problem, the answer was to plug-in my Apple device (in my case an iPhone), click on the drop-down at the very top of Xcode, to the right of the play, stop, and project name buttons, and select *my* device from the list. Then when I went back into the project details modal, it successfully completed the steps and linked my device. Hope that helps.


1. A build only device cannot be used to run this targe

这里写图片描述
这个是在编辑运行时,没有选择真机或者模拟器导致的,而选择Generic iOS Device通常是打包的时候才选择这个。切换方式如下: 
这里写图片描述

2.An unknown error message ‘DeviceLocked’, was received from the device.

  本来以为是手机屏幕锁屏造成的,不过解锁后效果还是一样,百度了下,发现重新拔插下数据线,就解决了 

  
参考:真机运行出现An unknown error message ‘DeviceLocked’, was received from the device.提示 - Jack的博客 - 博客频道 - CSDN.NET 
http://blog.csdn.net/u010289343/article/details/52621296

3. could not find developer disk image

这里写图片描述
这个问题就是找到要调试真机的系统镜像文件,也就是在你的xcode的【/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport】中下载一个对应版本的镜像文件即可,我这边是手机是10.1.1(10B100),完成之后需要重启下xcode。我这边用的是xcode7.3 
这里写图片描述
参考: 
如何使用Xcode7来调试iOS10设备 
http://blog.csdn.net/coyote1994/article/details/52557948

PS 1:需要重启下xcode才有效!其实要是还不行的话,可以重启电脑、重插USB线试试 效果,不过我这边重启xcode就直接成功了! 
  
PS 2:进入DeviceSupport文件夹的方式很多种,最方便的当然是【command+空格键】,然后输入路径即可。 
 

4. no such file or directory: ‘/Users/…/karassn-ios-Prefix.pch’

这里写图片描述
本来代码可以正常编译运行,就是切换不同的真机在线调试,后面换4s的就突然提示这个错误。 
这里写图片描述
我之前已经备份了一份可以正常运行的工程,然后通常对比观察可以发现test.xcodeproj其实是一个文件夹,配置文件夹,所以我将之前的可以运行的这个文件夹覆盖下有问题的工程后,再编译运行,就正常了

另外也参考了一篇博客的解决方法:

问题描述: 
PCH未找到路径,工程中一般pch都是指定路径的,当移动工程或者你下载别人的工程路径就会改变 
解决方案 
改变pch路径:TARGETS—BuildSetting—lannguage—Prefix Header 双击右侧修改路径(找不到搜索一下Prefix Header) 
修改为工程名/pch文件名

不过我按照这个方法,没有解决问题,要是没有备份或者我的方法不奏效,也可以参考下

参考: 
no such file or directory: ‘Coding_iOS/Coding_iOS-Prefix.pch’问题解决方案 - 博客频道 - CSDN.NET 
http://blog.csdn.net/jackjia2015/article/details/50884677 
5

. This iPhone ** is running iOS 10.3.1 (14B304), which may not be supported By this version of Xcode

这里写图片描述

和【3. could not find developer disk image】这个是同一个问题,只是已经将Xcode7 升级为Xcode8,提示不同而已



如果启动APP时,Xcode报错“process launch failed: Security”或iPhone报错【不受信任的开发者】。


此时需要到iPhone通用配置中的描述文件(最新系统中可能叫设备管理)中,在描述文件(开发商应用)中选择对应的描述文件(你的Apple ID)点击 信任 或 验证 即可。


OK,All Done!


参考: 
Xcode 8.0 调试运行,This ** is running iOS 10.1.1 (14B100), which may not be supported - 六六的博客 - 博客频道 - CSDN.NET

转载至: 
http://blog.csdn.net/ljb568838953/article/details/53196186



  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值