Xcode 8.3.2切换设备时崩溃

时间:2017-05-07 00:12:35

标签: xcode ios10.3 xcode8

当我从通用设备切换到我的iphone时,xcode意外退出。我已经尝试打开其他项目(更旧和更新),我得到了同样的错误。在更新到8.3.2

之前,我根本没有这个错误

堆栈追踪:

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: 0x7fed55a409d0>
Method:   -userActionName
Thread:   <NSThread: 0x7fed4f516d60>{number = 1, name = main}
Hints:   

Backtrace:
  0   -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
  1   _DVTAssertionHandler (in DVTFoundation)
  2   _DVTAssertionFailureHandler (in DVTFoundation)
  3   -[IDEProvisioningUserAction userActionName] (in IDEFoundation)
  4   -[IDEProvisioningRepairStateInfo setWaitingForUserAction:] (in IDEFoundation)
  5   ___DVTAsyncPerformBlockOnMainRunLoop_block_invoke (in DVTFoundation)
  6   __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
  7   __CFRunLoopDoBlocks (in CoreFoundation)
  8   __CFRunLoopRun (in CoreFoundation)
  9   CFRunLoopRunSpecific (in CoreFoundation)
 10   RunCurrentEventLoopInMode (in HIToolbox)
 11   ReceiveNextEventCommon (in HIToolbox)
 12   _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
 13   _DPSNextEvent (in AppKit)
 14   -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
 15   -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
 16   -[NSApplication run] (in AppKit)
 17   NSApplicationMain (in AppKit)
 18   start (in libdyld.dylib)

abort() called

1 个答案:

答案 0 :(得分:1)

由于苹果证书中的权限不足,Xcode崩溃了,因为能够将设备的UDID添加到证书本身(它不是简单地说)。如果您拥有苹果证书的管理员权限 ,或者已将苹果设备的 UDID已添加到Apple证书,则不会发生此错误。我仍然不知道为什么我的个人开发者&#34; Team&#34;仍然导致Xcode崩溃,因为它与苹果证书无关。

这个问题的两个解决方案:

  1. 只需给自己(开发者帐户)管理员授予Apple证书的权限(它会自动将UDID添加到证书中)
  2. 要求苹果证书的管理员只需将苹果设备的UDID添加到证书
  3. 获取设备的UDID或标识符: 在Xcode菜单栏中,单击窗口&gt;设备,然后选择您的苹果设备,您应该看到&#34;标识符:XXXXXXXXXXXXX&#34;或UDID