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

标签 ios iphone xcode

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

我尝试执行此视频中详细说明的步骤:https://www.youtube.com/watch?v=2O_8HAsz_gU (创建证书,实际上我尝试了 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}  

最佳答案

看起来像是权限问题。

Because the device UDID needs to be added to the developer account you are using.

Once you will add UDID to the account, Xcode should be able to create the provisioning profiles and will not crash.

在此处检查相关线程:Xcode 8 crashes when device is selected

另请在此处查看答案:XCode 8.3.2 Crashes when switching devices

关于ios - 连接 iPhone 并选择 iPhone 作为设备时,Xcode 8 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45870641/

相关文章:

xcode - 当我从 XCode 结束项目时工具栏隐藏

swift - 无法识别的选择器发送到实例 swift。 'NSInvalidArgumentException' 错误

ios - 在 iPhone 和 Apple Watch 之间发送数据时减少延迟的策略?

javascript - JS 方向更改监听器不会在 iOS 上触发,但在 Android 上会触发

iOS自适应 View ;自适应约束?

iphone - NSString——静态的还是内联的?有任何性能提升吗?

ios - UIPinchGestureRecognizer 向内捏 "slower"

javascript - 重新启动 iOS 设备时会释放什么?

iphone - 格式不是字符串文字,也没有格式参数(不涉及 NSLog)

swift - 在这种 Firebase 情况下,如何在函数之间传递数据? swift + Xcode