我遇到了一个问题,我尝试在 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
关于ios - 连接 iPhone 并选择 iPhone 作为设备时,Xcode 8 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45870641/