当iPhone连接并选择iPhone作为设备时,Xcode 8崩溃

时间:2017-08-24 20:49:24

标签: ios iphone xcode

我遇到了一个问题,我在Xcode中尝试在新的iPhone SE上运行应用程序,当我选择设备时,Xcode每次都会立即崩溃。

我尝试执行此视频中详述的步骤:https://www.youtube.com/watch?v=2O_8HAsz_gU(创建证书,我实际上有3次尝试3次,为我的项目创建应用ID,使用从iTunes获取的UDID设置设备标识符,并设置配置文件)。

我查找了其他答案,人们已经说要删除DerivedData文件夹,但这没有用。在模拟器中运行,当我从模拟器切换到iPhone时,Xcode崩溃,我甚至没有时间按下运行按钮。有人有什么想法吗?

崩溃日志:

Process:               Xcode [910]  
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode  
Identifier:            com.apple.dt.Xcode  
Version:               8.3.2 (12175)  
Build Info:            IDEFrameworks-12175000000000000~4  
App Item ID:           497799835  
App External ID:       821771079  
Code Type:             X86-64 (Native)  
Parent Process:        ??? [1]  
Responsible:           Xcode [910]  
User ID:               501  
Date/Time:             2017-08-24 16:17:50.359 -0500  
OS Version:            Mac OS X 10.12.1 (16B2659)  
Report Version:        12  
Anonymous UUID:        2890CE8E-BFF7-9F5D-B845-5DE445083D6A  
Time Awake Since Boot: 220 seconds  
System Integrity Protection: enabled  
Crashed Thread:        0  Dispatch queue: com.apple.main-thread  
Exception Type:        EXC_CRASH (SIGABRT)  
Exception Codes:       0x0000000000000000, 0x0000000000000000  
Exception Note:        EXC_CORPSE_NOTIFY  
Application Specific Information:  
MainQueue: -[IDEProvisioningManager  
_performStateUpdateOnMainThreadForRepairable:updateBlock:]_block_invoke_2  
ProductBuildVersion: 8E2002  
ASSERTION FAILURE in  
/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-12175/IDEFoundation/Provisioning/Mechanic/UserActions/IDEProvisioningUserAction.m:125
Details:  method -[IDEProvisioningUserAction userActionName] is a 
responsibility of subclasses of IDEProvisioningPermissionsFailureUserAction  

Object:   <IDEProvisioningPermissionsFailureUserAction: 0x7f9139cd9b00>  
Method:   -userActionName  
Thread:   <NSThread: 0x7f9131c17710>{number = 1, name = main}  

1 个答案:

答案 0 :(得分:3)

看起来像是权限问题。

  

因为需要将设备UDID添加到您的开发者帐户中   正在使用。

     

一旦您将UDID添加到帐户,Xcode应该能够创建   配置文件,不会崩溃。

点击此处查看相关主题:Xcode 8 crashes when device is selected

同时在此处查看答案:XCode 8.3.2 Crashes when switching devices