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.
Related
I'm looking at a crash report provided by Apple
Hardware Model: iPhone4,1
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-11-18 16:03:44.951 -0600
OS Version: iOS 6.0.1 (10A523)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x51fe5264
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x352925b0 objc_msgSend + 16
1 MYAPP 0x0006573a -[MyViewController(Images) didReceiveImage:context:etag:expires:] + 42
2 MYAPP 0x0004fb26 -[MyImageTask didReceiveImage:] + 98
3 Foundation 0x361ac8e8 __NSThreadPerformPerform
4 CoreFoundation 0x3b37d680 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
5 CoreFoundation 0x3b37cee4 __CFRunLoopDoSources0
6 CoreFoundation 0x3b37bcb2 __CFRunLoopRun
7 CoreFoundation 0x3b2eeeb8 CFRunLoopRunSpecific
8 CoreFoundation 0x3b2eed44 CFRunLoopRunInMode
9 GraphicsServices 0x396bc2e6 GSEventRunModal
10 UIKit 0x3452e2f4 UIApplicationMain
11 MYAPP 0x0004934a main + 70
12 MYAPP 0x000492fc start + 36
The funny thing is when I use atos to lookup the line of code that corresponds to address locations 0x0006573a and 0x0004fb26 I get completely different match. The atos output is not even from the same class that's mentioned in the crash log (MyViewController, MyImageTask). Instead atos points me to totally benign lines of code in a completely unrelated class. I verified again that I'm working with the exact dSYM and IPA that I submitted to Apple.
My atos command
/Applications/Xcode.app/Contents/Developer/usr/bin/atos -arch armv7 -o MYAPP.app/MYAPP 0x0004fb26
Same result with /usr/bin/atos and for armv7s.
Has anyone else experienced this issue? Can you please advise? Thanks.
A simpler alternative: you can use the atos -l flag to make it do the maths for you.
Say you've got the following line in your crash log that you want to symbolicate:
5 MyApp 0x0044e89a 0x29000 + 4348058
The first hex number is the stack address, and the second hex number is the load address. You can ignore the last number. You don't need to worry about slide addresses either.
To symbolicate, do the following:
atos -o MyApp.app/MyApp -arch armv7 -l 0x29000 0x0044e89a
If you can't find your MyApp.app/MyApp file, rename your '.ipa' file to a '.zip', unzip it, and it'll be in the Payload folder.
And if you're not sure which architecture to use (for example, armv7 or armv7s), scroll to the 'Binary Images' part of the crash file and you can find it in there.
Cheers
You have to calculate the address to use with atos, you can't just use the one in the stacktrace.
symbol address = slide + stack address - load address
The slide value is the value of vmaddr in LC_SEGMENT cmd (Mostly this is 0x1000). Run the following to get it:
otool -arch ARCHITECTURE -l "APP_BUNDLE/APP_EXECUTABLE" | grep -B 3 -A 8 -m 2 "__TEXT"
Replace ARCHITECTURE with the actual architecture the crash report shows, e.g. armv7.
Replace APP_BUNDLE/APP_EXECUTABLE with the path to the actual executable.
The stack address is the hex value from the crash report.
The load address can be is the first address showing in the Binary Images section at the very front of the line which contains your executable. (Usually the first entry).
Since in the past value of the slide was equal to value of the load address this always worked. But since Apple introduced Address space layout randomization beginning with iOS 4.3 (in different variations), the apps loading address is randomized for security reasons.
Simply use dwarfdump:
dwarfdump --arch armv7 myApp.dSYM --lookup 0xaabbccdd | grep 'Line table'
No need to do any calculations at all.
(From Get symbol by address (symbolicating binary, iOS build)).
For whom that certain times doesn't have the value for Load Address like this:
Jan 14 11:02:39 Dennins-iPhone AppName[584] <Critical>: Stack Trace: (
0 CoreFoundation 0x2c3084b7 <redacted> + 150
1 libobjc.A.dylib 0x39abec8b objc_exception_throw + 38
2 CoreFoundation 0x2c21cc35 CFRunLoopRemoveTimer + 0
3 AppName 0x0005a7db AppName + 272347
I've created a simple bash to help me debug:
#! /bin/bash
read -p "[Path] [App Name] [Stack Address] [DecimalSum] " path appName stackAddress decimalSum
loadAddress=`echo "obase=16;ibase=10;$((stackAddress-decimalSum))" | bc`
atos -o $path/Payload/$appName.app/$appName -l $loadAddress $stackAddress -arch armv7
It just reads the path for the app, the app name, the stack address, and the value after "+" signal (the decimal value) and then find the value for load address to run atos command.
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...
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
In my app i got crash report
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000
Crashed Thread: 7
In Thread 7 :
Thread 7 Crashed:
0 CoreFoundation 0x3728ba96 0x37278000 + 80534
1 CFNetwork 0x36617b84 0x36616000 + 7044
2 CFNetwork 0x36617af6 0x36616000 + 6902
3 MusicBandApp 0x0000bbfc 0x1000 + 44028
4 MusicBandApp 0x0000b740 0x1000 + 42816
5 Foundation 0x33b88382 0x33b6b000 + 119682
6 Foundation 0x33bfa5c6 0x33b6b000 + 587206
7 libsystem_c.dylib 0x3579530a 0x35762000 + 209674
8 libsystem_c.dylib 0x35796bb4 0x35762000 + 215988
but can"t show particular crash file name & line number.
How can sybolicate this crash report.
We need a file called symbolitecrash to process this file. This file can be located in /Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources
Open the Terminal.
Copy symbolitecrash file to the default location shown when the terminal is opened.
eg. Terminal window :-
Last login: Wed Jun 22 15:28:21 on ttys000
UserMM:~ user$
Here, the default location is the directory "user".
Running this script with the -h option provides the minimal help:
UserMM:~ user$ symbolitecrash -h
usage:
/usr/local/bin/symbolicatecrash [-Ah] [-o ] LOGFILE [SYMBOL_PATH ...]
Symbolicates a crashdump LOGFILE which may be "-" to refer to stdin. By default,
all heuristics will be employed in an attempt to symbolicate all addresses.
Additional symbol files can be found under specified directories.
Options:
-A Only symbolicate the application, not libraries
-o If specified, the symbolicated log will be written to OUTPUT_FILE (defaults to stdout)
-h Display this message
-v Verbose
Place the .crash file in the same location where symbolitecrash file is copied.
To add symbols to the crash log you need the dSYM file generated by the linker when you compiled your application for AppStore. In other words, when you build for AppStore you should keep the dSYM package in a safe place backed up by Time Machine. This is very important. You should keep a copy of the dSYM for each version of your application ever shipped. If you have the package, translating code offsets to function names with line numbers has never been easier:
$ symbolicatecrash MiMo_2011-06-22-143801_Anands-Ipod.crash myApp.app.dSYM > myApp_2011-06-22-143801_Anands-Ipod1.crash
myApp_2011-06-22-143801_Anands-Ipod1.crash is the new crash file generated in the same location.
Here is the result:
Thread 0 Crashed:
0 libobjc.A.dylib 0x300c87ec objc_msgSend + 20
1 myApp 0x00006434 -[BoardView setSelectedPiece:] (BoardView.m :321)
I also described how to do this step by step in this post
It worked fine for me:
Crash Symbolized http://k.minus.com/jk4X2obwZMI7j.png
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