OGeek|极客世界-中国程序员成长平台

标题: ios - 连接 iPhone 并选择 iPhone 作为设备时,Xcode 8 崩溃 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 13:38
标题: ios - 连接 iPhone 并选择 iPhone 作为设备时,Xcode 8 崩溃

我在尝试在 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}  



Best Answer-推荐答案


看起来像是权限问题。

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/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4