Xcode 11 Can't Open Project/ Crashes - ios

I downloaded xcode 11 today because my phone somehow downloaded iOS13 and I needed to upgrade to hook it up. Unfortunately, now when I try to open xcode on this project it crashes.
I feel like I have tried everything I have read- delete derived data, delete xcode and redownload (have even tried again with 10 and it won't open), delete xcshareddata, also tried turning off icloud.
No idea what else to try
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 10B61
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-14460.26/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/ProjectModel/DataModel/Containers/PBXContainerItemProxy.m:135
Details: _containerPortal is NULL
Object: <PBXContainerItemProxy: 0x7fe7a3309b00>
Method: -remoteContainer
Thread: <NSThread: 0x7fe79ef019d0>{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 -[PBXContainerItemProxy remoteContainer] (in DevToolsCore)
4 -[PBXContainerItemProxy remoteContainerItem] (in DevToolsCore)
5 -[PBXReferenceProxy sourceTree] (in DevToolsCore)
6 -[PBXReference addNotifications] (in DevToolsCore)
7 -[PBXReference awakeFromPListUnarchiver:] (in DevToolsCore)
8 -[PBXReferenceProxy awakeFromPListUnarchiver:] (in DevToolsCore)
9 -[PBXPListUnarchiver decodeRootObject] (in DevToolsCore)
10 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
11 -[PBXFileReference loadedContainer] (in DevToolsCore)
12 -[PBXContainerItemProxy remoteContainer] (in DevToolsCore)
13 -[PBXContainerItemProxy remoteContainerItem] (in DevToolsCore)

Related

I use Xcode8.3 to open the old project, Xcode will crash. Xcode Version 8.3 (8E162)

I use Xcode8.3 to open the old project, Xcode will crash. Hope that God has a good solution. Thank you! I used Xcode Version 8.3 (8E162)! The following is the crash logenter image description here
Date/Time: 2017-05-24 10:55:13.864 +0800
OS Version: Mac OS X 10.12.5 (16F73)
Report Version: 12
Anonymous UUID: E6D015C9-5D5B-8165-3DED-5FA9DEE16B80
Sleep/Wake UUID: D9402094-DE3A-4B1E-9D9E-4DC22BEB3839
Time Awake Since Boot: 93000 seconds
System Integrity Protection: enabled
Crashed Thread: 20 Dispatch queue: shared-compile-command-queue :: NSOperation 0x7fd3ef034ae0 (QOS: DEFAULT)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 8E162
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-12169/IDEFoundation/Diagnostic/IDEDiagnosticActivityLogMessage.m:298
Details: (fixItString) should not be nil.
Object: <IDEDiagnosticFixItItem: 0x7fd3eebb6150>
Method: -initWithFixItString:replacementLocation:
Thread: <NSThread: 0x7fd3ebf12fd0>{number = 34, name = (null)}
Hints:
Backtrace:
0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 -[IDEDiagnosticFixItItem initWithFixItString:replacementLocation:] (in IDEFoundation)
4 -[IDEClangDiagnosticActivityLogMessage initWithDiagnostic:timestamp:pathMap:workingDirectory:documentURL:] (in IDEFoundation)
5 -[IDEClangDiagnosticActivityLogMessage initWithDiagnostic:timestamp:pathMap:workingDirectory:] (in IDEFoundation)
6 _XCMessageForDiagnostic (in DevToolsCore)
7 XCGenerateDiagnosticsFromFile (in DevToolsCore)
8 -[XCClangResultsPostprocessor generateDiagnosticsFromFile:logSectionRecorder:] (in DevToolsCore)
9 -[XCClangResultsPostprocessor postprocessResultsForCommandInvocation:] (in DevToolsCore)
10 -[XCWorkQueueCommandSubprocessInvocation handleEndOfOutput] (in DevToolsCore)
11 -[XCWorkQueueCommandLocalSubprocessInvocation handleEndOfOutput] (in DevToolsCore)
12 -[XCWorkQueueCommandLocalSubprocessInvocation handleOutputFileDescriptorActivity] (in DevToolsCore)
13 -[Xcode3BuildTask main] (in DevToolsCore)
14 -[__NSOperationInternal _start:] (in Foundation)
15 __NSOQSchedule_f (in Foundation)
16 _dispatch_client_callout (in libdispatch.dylib)
17 _dispatch_queue_serial_drain (in libdispatch.dylib)
18 _dispatch_queue_invoke (in libdispatch.dylib)
19 _dispatch_root_queue_drain (in libdispatch.dylib)
20 _dispatch_worker_thread3 (in libdispatch.dylib)
21 _pthread_wqthread (in libsystem_pthread.dylib)
22 start_wqthread (in libsystem_pthread.dylib)
abort() called
Application Specific Signatures:
I have solved the problem, hope to encounter problems after the friend, check the path of the library used.

Xcode UI Testing leads to crash on every iOS Device

When trying to use the new Xcode 7 UI Testing feature on a physical iOS device by pressing the record button having the caret inside a test method, Xcode builds the project but just before starting the app on the device, the IDE crashes. I tested this with different projects (even a freshly created template one without writing a single line of code) and different devices (iPhone 6s Plus, iPad Pro, iPad mini 2 and iPhone 5, all running iOS 9.2). Does anyone have the same problem and already found a solution? Here is the complete crash log:
Process: Xcode [48959]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 7.2 (9548)
Build Info: IDEFrameworks-9548000000000000~7
App Item ID: 497799835
App External ID: 814662604
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [48959]
User ID: 501
Date/Time: 2015-12-16 20:52:24.497 +0100
OS Version: Mac OS X 10.11.2 (15C50)
Report Version: 11
Anonymous UUID: DF96274B-998D-3102-7E2F-CECD011B3D38
Sleep/Wake UUID: 613A68D1-4541-4DB7-B1C5-BC255278457F
Time Awake Since Boot: 25000 seconds
Time Since Wake: 19000 seconds
System Integrity Protection: disabled
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:
ProductBuildVersion: 7C68
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-9548/IDEKit/Testing/IDEUIRecordingManager.m:429
Details: (result) should not be nil.
Object: <IDEUIRecordingManager: 0x7fa128e011a0>
Method: -_workspaceTabController
Thread: <NSThread: 0x7fa119504010>{number = 1, name = main}
Hints: None
Backtrace:
0 0x0000000102f861fa -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 0x0000000101b12761 _DVTAssertionHandler (in DVTFoundation)
2 0x0000000101b12978 _DVTAssertionFailureHandler (in DVTFoundation)
3 0x000000010306456b -[IDEUIRecordingManager _workspaceTabController] (in IDEKit)
4 0x0000000103065433 __94-[IDEUIRecordingManager _startRecordingWithLaunchSession:alwaysAskForAPIAccess:reservedNames:]_block_invoke_2 (in IDEKit)
5 0x0000000101b4ea04 __DVTDispatchAsync_block_invoke (in DVTFoundation)
6 0x00007fff9545c871 _dispatch_call_block_and_release (in libdispatch.dylib)
7 0x00007fff9545133f _dispatch_client_callout (in libdispatch.dylib)
8 0x00007fff95464c1d _dispatch_main_queue_callback_4CF (in libdispatch.dylib)
9 0x00007fff8b1d0cd9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation)
10 0x00007fff8b18bd3d __CFRunLoopRun (in CoreFoundation)
11 0x00007fff8b18b338 CFRunLoopRunSpecific (in CoreFoundation)
12 0x00007fff846ce935 RunCurrentEventLoopInMode (in HIToolbox)
13 0x00007fff846ce76f ReceiveNextEventCommon (in HIToolbox)
14 0x00007fff846ce5af _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
15 0x00007fff899610ee _DPSNextEvent (in AppKit)
16 0x00007fff89d2d943 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
17 0x00000001020ef0c2 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
18 0x00007fff89956fc8 -[NSApplication run] (in AppKit)
19 0x00007fff898d9520 NSApplicationMain (in AppKit)
20 0x00007fff8589a5ad start (in libdyld.dylib)
abort() called
HandleCommand(command = "process plugin packet send 'QSetEnableAsyncProfiling;enable:0;'")
I run into the same problem. I even tried cleaning the cache (rm -r ~/Library/Developer/Xcode/DerivedData), without success.
I found a way around it:
Start running the application in the device of your choice (Command-R)
Once the app is ready and running in the device, hit on the red "Record UI Test" button in the Debug toolbar.
Hopefully this works for you.
EDIT. To make things more strange, this works for an iPhone 6 physically connected to my computer and for an iPhone 5s run in the Simulator. Attempts to record UI tests on an iPhone 6 Plus were not successful.

Can't Add Reference to xcdatamodelId

I have an xcdatamodel file in a static library. To reference the file in my main app, I dragged the file into the main app through xcode. This worked great. I added a version to the xcdatamodel file. This created an xcdatamodelid file. If I try to drag the xcdatamodelid to my main project, xcode crashes. I can't drag the xcdatamodel files anymore.
How can I add a reference to my data model?
I'm using xcode 4.6.3.
The top of the xcode stack trace:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4H1503
ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-2091/Framework/Classes/FilePaths/DVTFilePath.m:461
Details: str should be an instance inheriting from NSString, but it is nil
Object: <DVTFilePath>
Method: +filePathForPathString:
Thread: <NSThread: 0x40030a220>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x0000000106670a2a -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x000000010591f4e4 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x00000001058a1c9f +[DVTFilePath filePathForPathString:] (in DVTFoundation)
3 0x0000000109a5b8d5 -[XCVersionGroup saveCurrentVersion] (in DevToolsCore)
4 0x0000000109935b53 -[PBXGroup insertItems:atIndex:] (in DevToolsCore)
5 0x0000000109ab2b83 -[Xcode3Group insertGroupSubitems:atIndexes:] (in DevToolsCore)
I upgraded to xcode 5 and I it works fine now. As an aside, when I dragged the file to my project, the window didn't give me the option to copy or add reference. I think this is was a bug with xcode 4. Now that xcode 5 is out, this is no longer relevant.

XCode 4: Crashes when Files/Groups are added AND project is not cleaned

I have the following Problem with one of my Projects:
If I add any file or group to it, XCode stalls and crashes shortly after. If I do a project clean before that, it works just fine. As soon as I did a Project build it will crash again if I try to add files.
Any ideas? searched for a solution but without any luck. I am using the newest XCode 4.3.2 - A new install did not help.
Crash Report of XCode:
Process: Xcode [7017]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.3.2 (1177)
Build Info: IDEApplication-1177000000000000~6
App Item ID: 497799835
App External ID: 7171108
Code Type: X86-64 (Native)
Parent Process: launchd [139]
Date/Time: 2012-04-11 16:46:18.177 +0200
OS Version: Mac OS X 10.7.3 (11D50)
Report Version: 9
Interval Since Last Report: 137545 sec
Crashes Since Last Report: 10
Per-App Interval Since Last Report: 135817 sec
Per-App Crashes Since Last Report: 10
Anonymous UUID: F3C112A1-E15B-4D44-9662-F13A93846AE0
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4E2002
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[PBXFolder targets]: unrecognized selector sent to instance 0x40b7b63e0
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff95298faa __exceptionPreprocess (in CoreFoundation)
1 0x00007fff99458d5e objc_exception_throw (in libobjc.A.dylib)
2 0x00007fff953252ae -[NSObject doesNotRecognizeSelector:] (in CoreFoundation)
3 0x00007fff95285e73 ___forwarding___ (in CoreFoundation)
4 0x00007fff95285c88 _CF_forwarding_prep_0 (in CoreFoundation)
5 0x000000011175717e -[XCProjectReferenceInfo _synchronizeWithReferencedProjectIfNeeded] (in DevToolsCore)
6 0x0000000111757dc2 -[XCProjectReferenceInfo archivableInfoDictionary] (in DevToolsCore)
7 0x000000010dfd3c47 -[NSArray(DVTFoundationClassAdditions) dvt_arrayByApplyingSelector:] (in DVTFoundation)
8 0x000000011166057d -[PBXProject _projectReferences] (in DevToolsCore)
9 0x000000011164912a -[PBXArchivingBinding writeValueForObject:toPListArchiver:] (in DevToolsCore)
10 0x0000000111648158 -[PBXObject _archiveValuesForArchiveMask:toPListArchiver:] (in DevToolsCore)
11 0x0000000111672997 -[PBXPListArchiver _archiveObject:asWeakReference:] (in DevToolsCore)
12 0x00000001116734e6 -[PBXPListArchiver initWithRootObject:delegate:role:] (in DevToolsCore)
13 0x0000000111650018 -[PBXProject writeToFile:projectFile:userFile:outResultNotification:] (in DevToolsCore)
14 0x00000001116505a4 -[PBXProject _writeToFileSystemProjectFile:userFile:checkNeedsRevert:] (in DevToolsCore)
15 0x0000000111650655 -[PBXProject writeToFileSystemProjectFile:userFile:checkNeedsRevert:] (in DevToolsCore)
16 0x00000001117ee0bb -[Xcode3Project writeToFilePath:forceWrite:error:] (in DevToolsCore)
17 0x000000010e68cf2d -[IDEContainer _saveContainerForAction:error:] (in IDEFoundation)
18 0x00007fff920caf64 __NSFireTimer (in Foundation)
19 0x00007fff9524dc24 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ (in CoreFoundation)
20 0x00007fff9524d776 __CFRunLoopDoTimer (in CoreFoundation)
21 0x00007fff9522e001 __CFRunLoopRun (in CoreFoundation)
22 0x00007fff9522d676 CFRunLoopRunSpecific (in CoreFoundation)
23 0x00007fff965d331f RunCurrentEventLoopInMode (in HIToolbox)
24 0x00007fff965da51b ReceiveNextEventCommon (in HIToolbox)
25 0x00007fff965da456 BlockUntilNextEventMatchingListInMode (in HIToolbox)
26 0x00007fff91411f5d _DPSNextEvent (in AppKit)
27 0x00007fff91411861 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
28 0x00007fff9140e19d -[NSApplication run] (in AppKit)
29 0x00007fff9168cb88 NSApplicationMain (in AppKit)
30 0x000000010df8aeec (in Xcode)
Some Additional Informations i found:
I tried this on a different computer - same effect. But, and this might be important: It only occurs after I do a real iPhone build. If i do a build for the simulator - everything works just fine and no crashes occur. As soon as I did a 'real' iOS build (debug or release) - it will crash if I do any project changes.
Ok - that does help a bit more. It appears to be how you have your targets set up. Note that version number, and the Bundle Identifier and all those "iOS Application Target" values don't get stored in the project.pbxproj file, but rather get written to the "MyApp-Info.plist" file. I'd check that file exists and correlates correctly to the value set in the INFOPLIST_FILE build setting for that target.
I'd also check that the main project file itself is "Project Format" is set to "XCode 3.2-compatible", not 3.1-compatible.

Xcode Crash each as soon as I open my project

Everything worked fine yesterday but this morning XCode crash as soon as I open my project.
Any suggestions??
The crash dialog says
Internal error
Xcode encountered an internal logic error. Choose "Continue" to
continue running Xcode in an inconsistent state. Choose "Crash" to
halt Xcode and file a bug with Crash Reporter. Choosing "Crash" will
result in the loss of all unsaved data.
and if I click on "show details" the following info is shown
ASSERTION FAILURE in
/SourceCache/IDEFoundation/IDEFoundation-287/Framework/Classes/Model/SourceControl/IDESourceControlTree.m:2548
Details: (addedItem) should not be nil. Object:
Method:
-mergeStatusOperationResults:forLocalStatusOnly: Thread: {name = (null), num = 11} Hints: None Backtrace: 0
0x0000000100949773 -[IDEAssertionHandler
handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:]
(in IDEKit) 1 0x000000010006d394 _DVTAssertionFailureHandler (in
DVTFoundation) 2 0x000000010055e1c1
__78-[IDESourceControlWorkingTree
mergeStatusOperationResults:forLocalStatusOnly:]_block_invoke_0 (in
IDEFoundation) 3 0x0000000100005fdc __38-[DVTDispatchLock
performLockedBlock:]_block_invoke_0 (in DVTFoundation) 4
0x00007fff87886fbb dispatch_barrier_sync_f (in libSystem.B.dylib) 5
0x0000000100005f83 -[DVTDispatchLock performLockedBlock:] (in
DVTFoundation) 6 0x000000010055ccd3 -[IDESourceControlWorkingTree
mergeStatusOperationResults:forLocalStatusOnly:] (in IDEFoundation)
7 0x00000001005db64c __77-[IDESourceControlWorkingTree
updateLocalStatusForDirectory:completionBlock:]_block_invoke_01137 (in
IDEFoundation) 8 0x00007fff8788dd64
_dispatch_call_block_and_release (in libSystem.B.dylib) 9
0x00007fff8786c8d2 _dispatch_queue_drain (in libSystem.B.dylib) 10
0x00007fff8786c734 _dispatch_queue_invoke (in libSystem.B.dylib) 11
0x00007fff8786c2de _dispatch_worker_thread2 (in libSystem.B.dylib) 12
0x00007fff8786bc08 _pthread_wqthread (in libSystem.B.dylib) 13
0x00007fff8786baa5 start_wqthread (in libSystem.B.dylib)
You probably have duplicate entries for the source code repository for this project. Go under Organizer and remove the duplicate and see if fixes the issue. Unfortunately, there are still a lot of bugs in the SCM tooling in XCode 4.

Resources