XCODE fail to load platform - iphone

I am trying to learn iphone programming and I have just upgraded xcode to version 3.2.4 (and to iOS 4.1).
When I create a new project I get the "Internal error" seen below. What is wrong? (by the way, I can't see any message in the console)
Internal Error
File: /SourceCache/DevToolsBase/DevToolsBase-1705/pbxcore/Target.subproj/PBXTarget.m
Line: 1603
Object: <PBXNativeTarget:0x20088e7c0>
Method: createPropertyExpansionContextWithBuildState:
Platform failed to completely load. Examine Console Log for error messages.

The same happened to me, and I fixed in the same way. Reinstaling from the same dowload image.

The first thing you need to do is follow the directive in the error message and check the console log. To do so, choose Run -> Console (or press Shift-Command-R). Read any displayed error messages. If you can't get to the root of the problem from there, post the console log, and I'll take a look.

I am also getting the exact same message with the version of the SDK that I downloaded yesterday. Here's what I get in the console. I verified that /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS Build System Support.xcplugin exists, so I'm not sure what the problem is.
There were about 20 copies of the first message, I only pasted in one.
11/14/10 9:12:14 AM Xcode[8973] WARNING: Failed to load plugin at: /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS Build System Support.xcplugin, skipping. Could not load bundle.
11/14/10 9:12:14 AM Xcode[8973] Platform validation failed for Class 'XCiPhoneOSCodeSignContext'
11/14/10 9:12:14 AM Xcode[8973] [MT] File: /SourceCache/DevToolsBase/DevToolsBase-1705/pbxcore/Target.subproj/PBXTarget.m
Line: 1603
Object:
Method: createPropertyExpansionContextWithBuildState:
Platform failed to completely load. Examine Console Log for error messages.
Backtrace:
0 0x000000010099fe19 -[PBXAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsInterface)
1 0x00000001002dab1f _XCAssertionFailureHandler (in DevToolsCore)
2 0x00000001000e9ca1 -[PBXTarget createPropertyExpansionContextWithBuildState:] (in DevToolsCore)
3 0x00000001000e9212 -[PBXTarget createPropertyExpansionContextWithBuildAction:configurationName:] (in DevToolsCore)
4 0x00000001000e8ca2 -[PBXTarget cachedPropertyExpansionContextForConfigurationNamed:] (in DevToolsCore)
5 0x00000001000e8b33 -[PBXTarget expandedValueForString:forConfigurationNamed:] (in DevToolsCore)
6 0x00000001000f8c79 -[PBXProject _validArchsMayHaveChanged:] (in DevToolsCore)
7 0x00000001000f69a0 -[PBXProject _unarchiverDidFinishUnarchiving:] (in DevToolsCore)
8 0x00007fff819f8a66 _nsnote_callback (in Foundation)
9 0x00007fff87d7e000 __CFXNotificationPost (in CoreFoundation)
10 0x00007fff87d6a578 _CFXNotificationPostNotification (in CoreFoundation)
11 0x00007fff819ef9ce -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
12 0x00000001000d2cbb -[PBXPListUnarchiver decodeRootObject] (in DevToolsCore)
13 0x00000001000d0da4 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
14 0x00000001000d0003 +[PBXProject projectWithFile:errorHandler:] (in DevToolsCore)
15 0x0000000100963460 -[PBXProjectTemplateClonerWizard _instantiateASCIIMacroTemplateWithContext:] (in DevToolsInterface)
16 0x00000001009634f7 -[PBXProjectTemplateClonerWizard _instantiateTemplateWithContext:] (in DevToolsInterface)
17 0x00000001009d29d6 -[PBXFileCopyingWizard _finishCopyingTemplate:filesToPreserve:] (in DevToolsInterface)
18 0x00000001009d2895 -[PBXFileCopyingWizard _checkForOverwritingFiles:] (in DevToolsInterface)
19 0x00000001009400f1 -[PBXProjectWizard finish] (in DevToolsInterface)
20 0x000000010093be24 -[PBXProjectWizardChooserWizard sheetDidEndWithReturnCode:fileSystemLocations:contextInfo:] (in DevToolsInterface)
21 0x00000001008e3fda +[PBXOpenSavePanelHelper sheetDidEnd:returnCode:contextInfo:] (in DevToolsInterface)
22 0x00007fff86bd9946 -[NSSavePanel _didEndSheet:returnCode:contextInfo:] (in AppKit)
23 0x00007fff8697fbd1 -[NSApplication endSheet:returnCode:] (in AppKit)
24 0x00007fff86891e9a -[NSApplication sendAction:to:from:] (in AppKit)
25 0x00007fff86891df9 -[NSControl sendAction:to:] (in AppKit)
26 0x00007fff8691d76b -[NSCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
27 0x00007fff8694e2aa -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
28 0x00007fff8691c215 -[NSControl mouseDown:] (in AppKit)
29 0x00007fff8683634f -[NSWindow sendEvent:] (in AppKit)
30 0x00007fff8676ba86 -[NSApplication sendEvent:] (in AppKit)
31 0x00000001007fc21c -[PBXExtendedApplication sendEvent:] (in DevToolsInterface)
32 0x00007fff867024da -[NSApplication run] (in AppKit)
33 0x00007fff866fb1a8 NSApplicationMain (in AppKit)
34 0x00000001000017b4

Related

Runtime AXRuntimeCommon error when dismissing custom keyboard

I'm working on a bluetooth project, and getting a runtime error when dismissing our custom keyboard.
The development environment is based on M1 chip, Xcode version is 13.4.1, deployment target is iOS 13.0, and this issue happens on iOS 14.6, iOS 15.6.1 with iPhone7, XR, iPad mini and iPad Pro.
I've check this post: Xcode runtime error for iOS iPhone 8 - [AXRuntimeCommon]
Instead of Google Cloud Platform, we're using these pods:
RealmSwift, R.Swift, IQKeyboard, JGProgressHUD, SwiftCSVExport and Toast-Swift
At this moment, the AXRuntimeCommon issue not causing app crash or leaking, performance issue, or maybe just not been triggered yet :p
Still, I really want to figure it out, if you have any idea would be very helpful !
2022-10-19 17:31:22.651723+0800 AppName[91990:3536656] [AXRuntimeCommon] AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:91992 (
0 AXRuntime 0x00000001b0213a8c CDC17371-8478-3982-936D-2AA23E6C61DC + 326284
1 AXRuntime 0x00000001b01c8d5c _AXGetPortFromCache + 704
2 AXRuntime 0x00000001b01ca688 AXUIElementPerformFencedActionWithValue + 564
3 UIKit 0x00000001fb2ad240 1E08AD1F-8154-3B7B-98BE-C064E7670933 + 934464
4 libdispatch.dylib 0x0000000105b08c70 _dispatch_call_block_and_release + 32
5 libdispatch.dylib 0x0000000105b0a7c0 _dispatch_client_callout + 20
6 libdispatch.dylib 0x0000000105b128a4 _dispatch_lane_serial_drain + 984
7 libdispatch.dylib 0x0000000105b135e0 _dispatch_lane_invoke + 428
8 libdispatch.dylib 0x0000000105b20168 _dispatch_workloop_worker_thread + 908
9 libsystem_pthread.dylib 0x00000001faf7d0bc _pthread_wqthread + 288
10 libsystem_pthread.dylib 0x00000001faf7ce5c start_wqthread + 8
)

Crashing with Xcode 4.2 when I click on XIB files

I have been using Xcode 4.2 for the past month without incident. Two days ago I went back into my project to add some navbars to my app. When I clicked on .XIB (Either one) xcode came crashing down.
I tried launching a new project but it ended up with the same exact result. I sudo deleted xcode in its entirety and did a fresh installation. Still the problem persists unfortunately I cannot upgrade to the latest Xcode because the only mac I have access to is a 2006 macbook that is not compatible with Mountain Lion.
Below is my error message when Xcode launches.
It seems to be a cocoa issue but I am at a loss.
ASSERTION FAILURE in
/SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-933/IBPlugin/Utilities/IBObjectMarshalling.m:179
Details: Interface Builder encountered an error communicating with
the iOS Simulator. "Interface Builder Cocoa Touch Tool" (431) failed
to launch and exited with status (null), signal 5. Please check
Console.app for crash reports for "Interface Builder Cocoa Touch Tool"
for further information. Function:
NSDistantObject
*IBAttachToCocoaTouchTool(IBCocoaTouchTargetRuntime *) Thread: {name = (null), num = 1} Hints: None Backtrace:
0 0x00000000008c184b -[IDEAssertionHandler
handleFailureInFunction:fileName:lineNumber:messageFormat:arguments:]
(in IDEKit) 1 0x0000000000061728 _DVTAssertionHandler (in
DVTFoundation) 2 0x00000000000746db _DVTAssertionFailureHandler (in
DVTFoundation) 3 0x000000001cfb7871 IBAttachToCocoaTouchTool (in
IDEInterfaceBuilderCocoaTouchIntegration) 4 0x000000001cfb7332
IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshallerWithContext
(in IDEInterfaceBuilderCocoaTouchIntegration) 5 0x000000001cfb7118
IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshallerWithContext
(in IDEInterfaceBuilderCocoaTouchIntegration) 6 0x000000001cfb7087
IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshaller (in
IDEInterfaceBuilderCocoaTouchIntegration) 7 0x000000001cfb6b57
IBUserPresentableStringForTargetedDeviceFamily (in
IDEInterfaceBuilderCocoaTouchIntegration) 8 0x000000001cfe5ace
IBIPhoneOSSdkToDeploymentTargetMapping (in
IDEInterfaceBuilderCocoaTouchIntegration) 9 0x000000001cfe5b22
IBIPhoneOSSdkToDeploymentTargetMapping (in
IDEInterfaceBuilderCocoaTouchIntegration) 10 0x000000001cfec7cf
IBUIControlEventTypeToUIControlEventMask (in
IDEInterfaceBuilderCocoaTouchIntegration) 11 0x000000001ca4f44d
-[NSView(IBViewIntegration) ibWarnings:forDocument:withComputationContext:] (in
IDEInterfaceBuilderKit) 12 0x000000001cdec864
-[NSView(IBAppKitViewIntegration) ibSwizzledNSViewWarnings:forDocument:withComputationContext:] (in
IDEInterfaceBuilderCocoaIntegration) 13 0x000000001d00fbb2
IBUIViewSizeToFillView (in IDEInterfaceBuilderCocoaTouchIntegration)
14 0x000000001d01a451 IBMakeBarButtonItemFromPasteboardView (in
IDEInterfaceBuilderCocoaTouchIntegration) 15 0x000000001c9efb44
-[IBDocument rebuildWarnings] (in IDEInterfaceBuilderKit) 16 0x000000001c9efd4a -[IBDocument buildWarningsIfNeeded] (in
IDEInterfaceBuilderKit) 17 0x000000001c9efdae -[IBDocument warnings]
(in IDEInterfaceBuilderKit) 18 0x000000001caa305e -[IBIssueProvider
updateWarningsForOpenDocument:filePath:] (in IDEInterfaceBuilderKit)
19 0x000000001c9c93e7 -[IBIssueProvider updateOpenDocuments] (in
IDEInterfaceBuilderKit) 20 0x000000001caa2e85 __50-[IBIssueProvider
initWithIssueManager:extension:]_block_invoke_051 (in
IDEInterfaceBuilderKit) 21 0x00000000000210de
-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
22 0x0000000096fe5acb NSKeyValueDidChange (in Foundation) 23
0x0000000096fca2b6 -[NSObject(NSKeyValueObserverNotification)
didChangeValueForKey:] (in Foundation) 24 0x00000000007ec026
-[IDEDocumentController addDocument:] (in IDEKit) 25 0x000000000081104d +[IDEDocumentController retainEditorDocument:] (in
IDEKit) 26 0x0000000000a00375 +[IDEDocumentController
_retainedNewEditorDocumentWithClass:forURL:withContentsOfURL:ofType:extension:error:]
(in IDEKit) 27 0x000000000081f0d0 +[IDEDocumentController
_retainedEditorDocumentForURL:type:error:] (in IDEKit) 28 0x000000000081ef25 +[IDEDocumentController
retainedEditorDocumentForNavigableItem:forUseWithWorkspaceDocument:error:]
(in IDEKit) 29 0x0000000000910acd
IDEUtilitySliceRetainedDocumentsForNavigableItems (in IDEKit) 30
0x00000000007e3cb6 -[IDEUtilityArea _rebuildStackWithNavigableItems:]
(in IDEKit) 31 0x00000000007e30d0 -[IDEUtilityArea
_rebuildCategoriesAndStack] (in IDEKit) 32 0x00000000007e2e23 __41-[IDEUtilityArea initWithNibName:bundle:]_block_invoke_0 (in IDEKit) 33 0x00000000001e7a55 -[DVTDelayedValidator doValidation:]
(in DVTKit) 34 0x0000000096fff86c __NSFirePerformWithOrder (in
Foundation) 35 0x0000000093db2dd2 __CFRunLoopDoObservers (in
CoreFoundation) 36 0x0000000093d6eced __CFRunLoopRun (in
CoreFoundation) 37 0x0000000093d6e3c4 CFRunLoopRunSpecific (in
CoreFoundation) 38 0x0000000093d6e1f1 CFRunLoopRunInMode (in
CoreFoundation) 39 0x0000000090447e04 RunCurrentEventLoopInMode (in
HIToolbox) 40 0x0000000090447af5 ReceiveNextEventCommon (in
HIToolbox) 41 0x0000000090447a3e
BlockUntilNextEventMatchingListInMode (in HIToolbox) 42
0x00000000987c6595 _DPSNextEvent (in AppKit) 43 0x00000000987c5dd6
-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit) 44 0x00000000987881f3 -[NSApplication run] (in AppKit) 45
0x0000000098780289 NSApplicationMain (in AppKit) 46
0x0000000000001f3d 47 0x0000000000000002
If you really can't upgrade to xCode 4.4...
Do you use TimeMachine?
Try to rewind your complete system...

iPhone app breaks in Release version not in Debug

I have a project in XCode 4.3.1 written for ARC so I do not mess with retain counts at all.
When I run the project either in the simulator or on the device, it runs fine. If I run it under the profiler for allocations and leaks, it runs fine.
However, if I archive the project and distribute it for Ad Hoc and load the .ipa file, the app will crash with console messages:
<Notice>: Quilters_AppP(1812,0x3f85cd98) malloc: *** error for object 0x1109a910: pointer being freed was not allocated
<Notice>: *** set a breakpoint in malloc_error_break to debug
I set a breakpoint in malloc_error_debug but since the error occurs in the released version, I never see the debugger.
Here's where it gets really weird: Now that I have added some NSLog statements, the problem will not reproduce.
Here is the log:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x34f5432c __pthread_kill + 8
1 libsystem_c.dylib 0x36e50208 pthread_kill + 48
2 libsystem_c.dylib 0x36e49298 abort + 88
3 libsystem_c.dylib 0x36e0437a free + 374
4 libobjc.A.dylib 0x36583d72 object_dispose + 14
5 CoreFoundation 0x350b6618 -[NSObject dealloc] + 76
6 CoreFoundation 0x350b6736 -[__NSArrayI dealloc] + 162
7 libobjc.A.dylib 0x3658316e _objc_rootRelease + 30
8 libobjc.A.dylib 0x36584e50 objc_release + 32
9 libobjc.A.dylib 0x36583ea6 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 218
10 libobjc.A.dylib 0x36583dc2 _objc_autoreleasePoolPop + 6
11 CoreFoundation 0x350b0cf8 _CFAutoreleasePoolPop + 12
12 UIKit 0x3218ee34 _wrapRunLoopWithAutoreleasePoolHandler + 36
13 CoreFoundation 0x35134b14 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 12
14 CoreFoundation 0x35132d50 __CFRunLoopDoObservers + 252
15 CoreFoundation 0x351330aa __CFRunLoopRun + 754
16 CoreFoundation 0x350b649e CFRunLoopRunSpecific + 294
17 CoreFoundation 0x350b6366 CFRunLoopRunInMode + 98
18 GraphicsServices 0x363b2432 GSEventRunModal + 130
19 UIKit 0x321ace76 UIApplicationMain + 1074
20 Quilters_AppP 0x0003505c main (main.m:17)
21 Quilters_AppP 0x00034af4 0x33000 + 6900
Please help me catch this elusive bug. The app is targeted for 4.3/armv7.
You can set breakpoints and debug an iOS app using the Project's Release Build settings (which are often quite different from the Debug Build settings). Just modify either your Build settings or your Run/Test Schemes to do so. Then clean, build and device debug.
I had a similar problem. Your double loop described mine exactly. I had an array being defined nested between two while loops. In debug mode it was fine but when built for release it crashed with the exact same error.
Turns out that in Xcode 4.x.x you can add -O0 to the compiler flag of the file that is giving you problems (Under your project settings -> build phases -> compile sources) and it will turn off compiler optimization just for that single file. Worked like a charm for me.
Drew
It seems that the problem was not in the application code but in the compiler code. The error must be either in the ARC pre-compiler or the compiler itself.
This is a compiler error; specifically in optimization. Code for testing is not optimized and code for release is optimized for "fastest, smallest". When I removed optimization for the release version, the problem went away.
The application code that triggered this is a managed object context access...
- (NSArray *) fetchForGroup:(Group *)group
{
NSArray *array = [group.polygons allObjects];
return array;
}
which is performed inside a double loop. When a condition is met in the inner loop, the function is exited via "return". The array from this call is double-freed. - Dan

Xcode, Objective C, IOS. Thread 1: Program received signal: "SIGABRT". What have i done wrong

I continue to get this problem in my application even when i added all of the frameworks and code to another Xcode app. It happens even before the view loads.
this is my error message:
[Switching to process 11523 thread 0x2d03]
[Switching to process 11523 thread 0x2d03]
warning: No copy of <No file name> found locally, reading from memory on remote device. This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device. This may slow down the debug session.
sharedlibrary apply-load-rules all
warning: No copy of <No file name> found locally, reading from memory on remote device. This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device. This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device. This may slow down the debug session.
warning: Unable to read symbols for /Users/admin/Library/Developer/Xcode/iOS DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).
warning: No copy of dns.so found locally, reading from memory on remote device. This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device. This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device. This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device. This may slow down the debug session.
2012-04-17 09:33:30.166 Little Birds! - iPhone[7445:307] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x1129f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key HighScoresPodium.'
*** Call stack at first throw:
(
0 CoreFoundation 0x35f08c7b __exceptionPreprocess + 114
1 libobjc.A.dylib 0x30186ee8 objc_exception_throw + 40
2 CoreFoundation 0x35f08a01 -[NSException dealloc] + 0
3 Foundation 0x34018bbf -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 186
4 Foundation 0x34018051 _NSSetUsingKeyValueSetter + 92
5 Foundation 0x34019ef3 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 178
6 Foundation 0x33fcb805 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 144
7 UIKit 0x33aacf20 -[UIRuntimeOutletConnection connect] + 96
8 CoreFoundation 0x35ea9a8b -[NSObject(NSObject) performSelector:] + 18
9 CoreFoundation 0x35eb273b -[NSArray makeObjectsPerformSelector:] + 366
10 UIKit 0x33aab7a0 -[UINib instantiateWithOwner:options:] + 868
11 UIKit 0x33aad640 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 140
12 UIKit 0x3386cb18 -[UIApplication _loadMainNibFile] + 144
13 UIKit 0x338669ec -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 256
14 UIKit 0x338202e4 -[UIApplication handleEvent:withNewEvent:] + 1476
15 UIKit 0x3381fb1c -[UIApplication sendEvent:] + 68
16 UIKit 0x3381f3b4 _UIApplicationHandleEvent + 6824
17 GraphicsServices 0x35262c88 PurpleEventCallback + 1048
18 CoreFoundation 0x35e9a5cb __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 28
19 CoreFoundation 0x35e9a589 __CFRunLoopDoSource1 + 164
20 CoreFoundation 0x35e8c835 __CFRunLoopRun + 580
21 CoreFoundation 0x35e8c50b CFRunLoopRunSpecific + 226
22 CoreFoundation 0x35e8c419 CFRunLoopRunInMode + 60
23 UIKit 0x33865554 -[UIApplication _run] + 548
24 UIKit 0x33862558 UIApplicationMain + 972
25 Little Birds! - iPhone 0x0000248f main + 106
26 Little Birds! - iPhone 0x00002420 start + 40
)
terminate called after throwing an instance of 'NSException'
warning: No copy of <No file name> found locally, reading from memory on remote device. This may slow down the debug session.
(gdb)
Looks like a dead outlet connection to me. An object in a XIB is connected to an outlet that has been deleted from the owner class.
Can you check all connection in interface builder for XIB? try with recreating XIB. I found issue when by mistake i delete a label from IB and call setText on label.
It looks like your problem is around "HighScoresPodium". You may have mis-assigned something to that variable. Check for where you would be interacting with that property and you should be close to the problem. AS others have said, the problem may be hiding out in the XIB connections.

Xcode crashing on startup "parentPath must be nil but it is not"

I'm having XCode (latest version) crash whenever I start up - can't get anything done until I resolve this - any ideas?
Error - See below
What I did prior to getting the issue
had put in a new HDD (and moved the old to the optical bay) - reinstalled XCode 4 on the new SSD - all working fine
I did rename my home directory user name on the "old" HDD to put "_OLD" at the end - just so I didn't get confused if jumping to the old HDD for files
I tried to open a test project from this old HDD area - got some issue opening it (can't remember details) - closed/restarted fromhere
Then after this every time I try to open XCode a fresh it's like it tries to open the last projects that was open including this one I had an issue with - get the below error - can't continue on using xcode have to crash out
Error:
ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-903/Framework/Classes/FilePaths/DVTFilePath.m:322
Details: fsrep is absolute (starts with tilde) ('~--814203924d469071-0000000000') parentPath must be nil but it is not ('<DVTFilePath:0x401bdf9e0:'/Volumes/Macintosh HD/Users/greg/.dvdcss'>')
Object: <DVTFilePath>
Method: +_filePathForParent:fileSystemRepresentation:length:allowCreation:
Thread: <NSThread: 0x40010a260>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x0000000103f44466 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x00000001035b3794 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x0000000103550a9e +[DVTFilePath _filePathForParent:fileSystemRepresentation:length:allowCreation:] (in DVTFoundation)
3 0x0000000103550963 +[DVTFilePath _filePathForParent:pathString:] (in DVTFoundation)
4 0x0000000103b95642 -[DVTFilePath(IDESourceControlStatus) IDESourceControl_importantSubpaths] (in IDEFoundation)
5 0x0000000103b414ac -[IDEFileReference _updateSourceControlStatusIfNeeded] (in IDEFoundation)
6 0x0000000103b37951 -[IDEWorkspace _updateSourceControlStatusIfNeeded] (in IDEFoundation)
7 0x00007fff8c2eb25a __NSFireDelayedPerform (in Foundation)
8 0x00007fff8b82df84 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ (in CoreFoundation)
9 0x00007fff8b82dad6 __CFRunLoopDoTimer (in CoreFoundation)
10 0x00007fff8b80e471 __CFRunLoopRun (in CoreFoundation)
11 0x00007fff8b80dae6 CFRunLoopRunSpecific (in CoreFoundation)
12 0x00007fff8b3633d3 RunCurrentEventLoopInMode (in HIToolbox)
13 0x00007fff8b36a63d ReceiveNextEventCommon (in HIToolbox)
14 0x00007fff8b36a4ca BlockUntilNextEventMatchingListInMode (in HIToolbox)
15 0x00007fff86bde3f1 _DPSNextEvent (in AppKit)
16 0x00007fff86bddcf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
17 0x00007fff86bda62d -[NSApplication run] (in AppKit)
18 0x00007fff86e5980c NSApplicationMain (in AppKit)
19 0x0000000103549eec (in Xcode)
20 0x0000000000000002
I had the same problem.
It was due to a file fo which the name started by ~ in the directory path given by Xcode when it crashed.
Check if you don't have such a file and delete it.
In my case, it solved the issue.
Hope this help,
Rds,
Michael
The solution that worked for me is to delete the Xcode autosave files in ~/Library/Autosave Information. Xcode then started up clean for me.
may not be best answer (?) however I had to (a) reinstall + (b) delete all the various XCode files scattered through my home directory...then it started up ok
Step 1: Copy all the code you want to keep into text files or
something like that
Step 2: Un-install
Step 3: make some coffee
Step 4: Re-install
Details: fsrep is absolute (starts with tilde) ('~--814203924d469071-0000000000') parentPath must be nil but it is not ('<DVTFilePath:0x401bdf9e0:'/Volumes/Macintosh HD/Users/greg/.dvdcss'>')
Object: <DVTFilePath>
in my case the file referenced was dropbox's cache, so the error looked like this
must be nil but it is not ('<DVTFilePath:0x401bdf9e0:'/Volumes/Macintosh HD/Users/greg/.dropbox.cache.2.25.12'>')
after some research on dropbox forums i found these cache directories can be deleted. after removal xcode worked fine.
so i would tell future people who come here to try and remove the offending file prior to reinstalling xcode. (or rename it if you cant delete it)
I deleted ~/Library/Preferences/com.apple.dt.Xcode.plist and Xcode started normally again.
In my case I was xcodebuild'ing Xcode UI Tests from command line using custom .xcconfig file:
HERE_BUILD=./Build-command-line
HERE_INTERMEDIATES=$(HERE_BUILD)/Intermediates
// Paths
// the following paths are enough to redirect everything to $HERE_BUILD
MODULE_CACHE_DIR = $(HERE_BUILD)/DerivedData/ModuleCache
OBJROOT = $(HERE_INTERMEDIATES)
SHARED_PRECOMPS_DIR = $(HERE_INTERMEDIATES)/PrecompiledHeaders
SYMROOT = $(HERE_BUILD)/Products
When I changed HERE_BUILD to have absolute path:
HERE_BUILD=$(SRCROOT)/Build-command-line
the error went away.