尝试在iOS 13.2设备上运行时Xcode崩溃

时间:2019-10-31 11:18:39

标签: ios xcode crash

我的应用程序可以在其他设备和模拟器上正常运行,但是我的iOS 13.2 iPhone即将在设备上运行时,导致Xcode崩溃?

这是我的崩溃日志:

Process:               Xcode [6201]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               11.1 (15405)
Build Info:            IDEFrameworks-15405000000000000~13 (11A1027)
App Item ID:           497799835
App External ID:       832925179
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [6201]
User ID:               501

Date/Time:             2019-10-31 11:09:42.827 +0000
OS Version:            Mac OS X 10.15.1 (19B88)
Report Version:        12
Anonymous UUID:        AE67D298-19BC-5BC6-E2C9-0312CD6CAEE2


Time Awake Since Boot: 1500 seconds

System Integrity Protection: enabled

Crashed Thread:        9  Dispatch queue: Mutex to protect _hasPerformedWorkerAction

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
com.apple.main-thread
ProductBuildVersion: 11A1027
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Invalid parameter not satisfying: aString != nil
UserInfo: (null)
Hints: 
  0: Calling block provided to DVTSyncPerformBlock() here:

  0   DVTSyncPerformBlock (in DVTFoundation)
  1   -[IDEExecutionRunnableTracker executionWantsHold:withError:] (in IDEFoundation)
  2   -[IDERunOperationWorker _startWithRetrying:] (in IDEFoundation)
  3   __44-[IDERunOperationWorker _startWithRetrying:]_block_invoke_3 (in IDEFoundation)
  4   __48-[DVTDispatchLock_Recursive performLockedBlock:]_block_invoke (in DVTFoundation)
  5   _dispatch_client_callout (in libdispatch.dylib)
  6   _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
  7   DVTDispatchBarrierSync (in DVTFoundation)
  8   -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
  9   -[DVTDispatchLock_Recursive performLockedBlock:] (in DVTFoundation)
 10   __44-[IDERunOperationWorker _startWithRetrying:]_block_invoke_2 (in IDEFoundation)
 11   __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
 12   __DVTDispatchAfter_block_invoke (in DVTFoundation)
 13   _dispatch_client_callout (in libdispatch.dylib)
 14   _dispatch_continuation_pop (in libdispatch.dylib)
 15   _dispatch_source_invoke (in libdispatch.dylib)
 16   _dispatch_continuation_pop (in libdispatch.dylib)
 17   _dispatch_async_redirect_invoke (in libdispatch.dylib)
 18   _dispatch_root_queue_drain (in libdispatch.dylib)
 19   _dispatch_worker_thread2 (in libdispatch.dylib)
 20   _pthread_wqthread (in libsystem_pthread.dylib)
 21   start_wqthread (in libsystem_pthread.dylib)

Backtrace:
  0   __exceptionPreprocess (in CoreFoundation)
  1   DVTFailureHintExceptionPreprocessor (in DVTFoundation)
  2   objc_exception_throw (in libobjc.A.dylib)
  3   +[NSException raise:format:arguments:] (in CoreFoundation)
  4   -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] (in Foundation)
  5   -[NSCell _objectValue:forString:errorDescription:] (in AppKit)
  6   -[NSCell setStringValue:] (in AppKit)
  7   -[NSControl setStringValue:] (in AppKit)
  8   -[IDEExecutionHoldAlertHelper showAlert] (in IDEKit)
  9   -[IDEWorkspaceTabController showExecutionHoldAlertWithError:] (in IDEKit)
 10   __55-[IDEWorkspaceDocument _setupLaunchSessionsObservation]_block_invoke_2 (in IDEKit)
 11   -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
 12   NSKeyValueNotifyObserver (in Foundation)
 13   NSKeyValueDidChange.llvm.18255262684423441536 (in Foundation)
 14   -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] (in Foundation)
 15   -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] (in Foundation)
 16   _NSSetCharValueAndNotify (in Foundation)
 17   -[IDEExecutionTracker _updateWantsHold] (in IDEFoundation)
 18   __37-[IDEExecutionTracker addSubtracker:]_block_invoke (in IDEFoundation)
 19   -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
 20   NSKeyValueNotifyObserver (in Foundation)
 21   NSKeyValueDidChange.llvm.18255262684423441536 (in Foundation)
 22   -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] (in Foundation)
 23   -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] (in Foundation)
 24   _NSSetCharValueAndNotify (in Foundation)
 25   __60-[IDEExecutionRunnableTracker executionWantsHold:withError:]_block_invoke (in IDEFoundation)
 26   __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
 27   __DVTSyncPerformBlock_block_invoke.48 (in DVTFoundation)
 28   DVTInvokeWithLazyFailureHint (in DVTFoundation)
 29   __DVTSyncPerformBlock_block_invoke (in DVTFoundation)
 30   __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
 31   __CFRunLoopDoBlocks (in CoreFoundation)
 32   __CFRunLoopRun (in CoreFoundation)
 33   CFRunLoopRunSpecific (in CoreFoundation)
 34   RunCurrentEventLoopInMode (in HIToolbox)
 35   ReceiveNextEventCommon (in HIToolbox)
 36   _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
 37   _DPSNextEvent (in AppKit)
 38   -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
 39   -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
 40   -[NSApplication run] (in AppKit)
 41   NSApplicationMain (in AppKit)
 42   main (in Xcode)
 43   start (in libdyld.dylib)

abort() called

完整日志:https://pastebin.com/8aHqMbWn

2 个答案:

答案 0 :(得分:2)

Xcode 11.2已于iOS 13.2推出4天后于今天启动。

我无法使Xcode 11.2在iOS 13.2设备上运行。

我使用AppCleaner从计算机中删除了每一个Xcode,然后下载了Xcode 11.2并再次安装。

现在工作正常。

答案 1 :(得分:1)

Xcode 11.1并不真正支持iOS 13.2,您应该等待Apple即将发布Xcode 11.2或从Apple网站下载Beta版本的11.2。