I'm dealing with some legacy code, won't compile on anything later than SDK 10.5 due to randomly abolished APIs, so I have good reason to stick with old compilers. I've been using Xcode 4.6.3; I recently clean-installed from OS X 10.7 to 10.9.
A new problem arises: Xcode reliably crashes on the Run command. I can build my applications just fine; they run successfully if I double-click the built product. But if I try to run directly from Xcode, Xcode crashes. The nature of the app doesn't seem to matter; I have tried this both with commandline and GUI apps. Selfsame result. Any insights?
From the crash report, in case it helps:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4H1503
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[__NSCFString alloc]: unrecognized selector sent to instance 0x400c22b60
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff8f224244 __exceptionPreprocess (in CoreFoundation)
1 0x00007fff91ebae75 objc_exception_throw (in libobjc.A.dylib)
2 0x00007fff8f22712d -[NSObject(NSObject) doesNotRecognizeSelector:] (in CoreFoundation)
3 0x00007fff8f182272 ___forwarding___ (in CoreFoundation)
4 0x00007fff8f181df8 _CF_forwarding_prep_0 (in CoreFoundation)
5 0x00000001107070a6 -[DBGLLDBDebugLocalService operationWorkerWithLaunchSession:error:] (in DebuggerLLDBService)
6 0x0000000110707593 -[DBGLLDBRunLocalService operationWorkerWithLaunchSession:error:] (in DebuggerLLDBService)
7 0x000000010b1bf8e7 -[IDERunDestination runOperationForLaunchSession:error:] (in IDEFoundation)
8 0x000000010b1be557 -[IDELaunchSchemeAction
Related
I am not able to start up XCode. Whenever it starts it just crashes with this error:
Application Specific Information:
ProductBuildVersion: 8E3004b
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-12175.1/IDEKit/Application/IDEDocumentController.m:2136
Details: There can only be one document registered with a given URL. newDocument:<IDEWorkspaceDocument: 0x7ff6612d6cd0>( 0 -[IDEWorkspaceDocument init] (in IDEKit)
1 -[NSDocument initForURL:withContentsOfURL:ofType:error:] (in AppKit)
2 -[IDEWorkspaceDocument initForURL:withContentsOfURL:ofType:error:] (in IDEKit)
3 -[NSDocumentController makeDocumentForURL:withContentsOfURL:ofType:error:] (in AppKit)
4 __104-[NSDocumentController makeDocumentForURL:withContentsOfURL:alternateContents:ofType:completionHandler:]_block_invoke (in AppKit)
5 -[NSDocumentController makeDocumentForURL:withContentsOfURL:alternateContents:ofType:completionHandler:] (in AppKit)
6 __89-[NSDocumentController reopenDocumentForURL:withContentsOfURL:display:completionHandler:]_block_invoke (in AppKit)
How can I get Xcode start again?
EDIT:
Version of the xcode is 8.3.3
For me, the solution was to remove all custom color pickers in:
~/Library/ColorPickers/
Remove this folder
/Users/<your user name>/Library/Saved\ Application\ State/com.apple.dt.Xcode.savedState
Today I uploaded my first build of first app successfully to App Store for beta testing. After making a few changes, when I tried to submit the new archive again Xcode crashed, and still crashes.
It's the log:
Process: Xcode [36810]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.3.2 (7718)
Build Info: IDEFrameworks-7718000000000000~2
App Item ID: 497799835
App External ID: 812404257
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [36810]
User ID: 501
Date/Time: 2015-06-17 21:59:26.432 +0430
OS Version: Mac OS X 10.10.3 (14D136)
Report Version: 11
Anonymous UUID: A70B5585-6ADF-B647-C184-94420293DB9F
Sleep/Wake UUID: 536542A5-38C8-405F-8A5E-28DBE775C033
Time Awake Since Boot: 110000 seconds
Time Since Wake: 18000 seconds
Crashed Thread: 14 Dispatch queue: NSOperationQueue 0x7fdb9771af00 :: NSOperation 0x7fdb97679160 (QOS: USER_INITIATED)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6D2105
ASSERTION FAILURE in /SourceCache/IDEFrameworks/IDEFrameworks-7718/IDEFoundation/Issues/IDEIssueManager.m:457
Details: This method must only be called on the main thread
Object: <IDEIssueManager>
Method: +_issueProviderInfo
Thread: <NSThread: 0x7fdb971db920>{number = 80, name = (null)}
Hints: None
Backtrace:
0 0x0000000102e28b6a -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 0x0000000101b765df _DVTAssertionHandler (in DVTFoundation)
2 0x0000000101b768ce _DVTAssertionFailureHandler (in DVTFoundation)
3 0x00000001024f248e +[IDEIssueManager _issueProviderInfo] (in IDEFoundation)
4 0x00000001024f1b0d -[IDEIssueManager _updateIssueProviders] (in IDEFoundation)
5 0x0000000101b893de __73-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:]_block_invoke (in DVTFoundation)
6 0x0000000101afed5c DVTInvokeWithStrongOwnership (in DVTFoundation)
7 0x00000001019b03e4 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
8 0x00007fff8a8af0f3 NSKeyValueNotifyObserver (in Foundation)
9 0x00007fff8a8bbd68 NSKeyValueDidChange (in Foundation)
10 0x00007fff8a87497d -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] (in Foundation)
11 0x00007fff8befddaf doSetValuesInSourceWithKVO (in CoreFoundation)
12 0x00007fff8befdc46 _CFXPreferencesReplaceValuesInNamedVolatileSource (in CoreFoundation)
13 0x00007fff8aa4b027 -[NSUserDefaults(NSUserDefaults) setVolatileDomain:forName:] (in Foundation)
14 0x0000000119e34a13 -[NSUserDefaults(ITunesConnectFoundationExtensions) REPLACEMENT_setVolatileDomain:forName:] (in ITunesConnectFoundation)
15 0x0000000119e34f87 -[NSUserDefaults(ITunesConnectFoundationExtensions) synchronizeRegistrationDomains] (in ITunesConnectFoundation)
16 0x0000000119e34d5d -[NSUserDefaults(ITunesConnectFoundationExtensions) registerPriorityDefaults:] (in ITunesConnectFoundation)
17 0x0000000119e2669e -[MZJSONServiceClient processApplicationSettings:] (in ITunesConnectFoundation)
18 0x0000000119e26d7d -[MZJSONServiceClient connectionDidFinishLoading:] (in ITunesConnectFoundation)
19 0x00007fff8846d24d __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke (in CFNetwork)
20 0x00007fff8846d0b1 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] (in CFNetwork)
21 0x00007fff8846cfb7 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] (in CFNetwork)
22 0x00007fff8846df74 ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke (in CFNetwork)
23 0x00007fff88521703 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 (in CFNetwork)
24 0x00007fff883c2cec RunloopBlockContext::_invoke_block(void const*, void*) (in CFNetwork)
25 0x00007fff8bf0e664 CFArrayApplyFunction (in CoreFoundation)
26 0x00007fff883c2bad RunloopBlockContext::perform() (in CFNetwork)
27 0x00007fff883c2998 MultiplexerSource::perform() (in CFNetwork)
28 0x00007fff883c27ba MultiplexerSource::_perform(void*) (in CFNetwork)
29 0x00007fff8bf42a01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ (in CoreFoundation)
30 0x00007fff8bf34b8d __CFRunLoopDoSources0 (in CoreFoundation)
31 0x00007fff8bf341bf __CFRunLoopRun (in CoreFoundation)
32 0x00007fff8bf33bd8 CFRunLoopRunSpecific (in CoreFoundation)
33 0x00007fff8a8fda59 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in Foundation)
34 0x00007fff8a91bcce -[NSRunLoop(NSRunLoop) runUntilDate:] (in Foundation)
35 0x0000000119e25d00 -[MZJSONServiceClient getResultDictionary] (in ITunesConnectFoundation)
36 0x0000000119e28eb3 -[MZLabelServiceClient invokeSOAPCall] (in ITunesConnectFoundation)
37 0x0000000119e3097d -[MZWebServiceOperationWorker execute] (in ITunesConnectFoundation)
38 0x0000000119e30e11 -[MZWebServiceWorker run] (in ITunesConnectFoundation)
39 0x0000000119df854d -[MZWorkItem main] (in ITunesConnectFoundation)
40 0x00007fff8a8c6a6c -[__NSOperationInternal _start:] (in Foundation)
41 0x00007fff8a8c6543 __NSOQSchedule_f (in Foundation)
42 0x00007fff89468c13 _dispatch_client_callout (in libdispatch.dylib)
43 0x00007fff8946c365 _dispatch_queue_drain (in libdispatch.dylib)
44 0x00007fff8946decc _dispatch_queue_invoke (in libdispatch.dylib)
45 0x00007fff8946b6b7 _dispatch_root_queue_drain (in libdispatch.dylib)
46 0x00007fff89479fe4 _dispatch_worker_thread3 (in libdispatch.dylib)
47 0x00007fff86f91637 _pthread_wqthread (in libsystem_pthread.dylib)
48 0x00007fff86f8f40d start_wqthread (in libsystem_pthread.dylib)
Note: I can validate the Archive without error.
Will re-installing XCode help me to fix it?
Close any projects or workspace windows you have open in Xcode but leave Organizer window open and re-submit worked for me.
Just got this problem. Seems to work if you close all other Xcode windows but keep the organizer window open.
Had the same problem - uploaded my .ipa through the Application Loader.
The original question is: "Will re-installing XCode help me to fix it?"
The answer is: "No." Re-installation does not help the problem. The bug is pretty serious though, since submitting an app is central to app development. A fix should be in the App Store asap. Hence updating later may help.
Following steps worked for me:
Archive the project.
Open Organizer
Press the top-left cross button of XCode which will close all projects without quiting XCode and Organiser will be opened
Now resubmit the archive from organiser.
Had this problem today. I was only able to successfully upload the Archive when the organizer window was open and all Xcode projects were closed.
I created an .ipa file using the Export utility in Organizer, then ran Application Loader. Selected the 'Deliver Your App' button. Choose the new created ipa file and the file appeared in iTuneConnect under the pre-release tab as expected for TestFlight distribution.
Had the same problem today. Problem turned out I still had the Reveal Framework included in my project. Make sure you don't have any non-public API usage in your archive.
I encountered similar situation. However, my solution was somehow different.
Noticing that you are trying to submit next build, please make sure your previous build is excluded from App Store submit form before uploading new build.
I'm not sure why this has to be an issue, but it seems like that the submit form should be cleared before receiving new build.
You might need to accept some new user agreements, try going to Apple Developer Member Center and see if they're any new agreements you need to accept.
If that doesn't work try this: open Xcode and go to [ Preferences ] -> [ Accounts ], select your Apple ID and click on [ View Details... ]. Once you do that click on the refresh icon at the bottom left. If you're missing anything it will let you know.
If both of those don't work go back to the archive window in XCode and click on export on the right-hand side underneath the submit button. Save it where ever you want but remember the location. Once exported go back to XCode and go to [ Open Developer Tools ] -> [ Application Loader ]. You can submit your new version of your app through that.
If none of those work then I have no idea, maybe someone else knows.
I had the same issue at June 17 night. I reinstalled my Xcode, and had the same issue. Looks like Apple updated something at that day, since I noticed the website of Member Center, the MAC certificate is also there. (YES!!! apple only charge once for iPhone and Mac)
If that doesn't work, than it could also be that the used Certificate has expired. So check if your Certificate is still valid.
Archive using Xcode 6.4, submit using Xcode 7. Submission successful
Today I uploaded my first build of first app successfully to App Store for beta testing. After making a few changes, when I tried to submit the new archive again Xcode crashed, and still crashes.
It's the log:
Process: Xcode [36810]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.3.2 (7718)
Build Info: IDEFrameworks-7718000000000000~2
App Item ID: 497799835
App External ID: 812404257
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [36810]
User ID: 501
Date/Time: 2015-06-17 21:59:26.432 +0430
OS Version: Mac OS X 10.10.3 (14D136)
Report Version: 11
Anonymous UUID: A70B5585-6ADF-B647-C184-94420293DB9F
Sleep/Wake UUID: 536542A5-38C8-405F-8A5E-28DBE775C033
Time Awake Since Boot: 110000 seconds
Time Since Wake: 18000 seconds
Crashed Thread: 14 Dispatch queue: NSOperationQueue 0x7fdb9771af00 :: NSOperation 0x7fdb97679160 (QOS: USER_INITIATED)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6D2105
ASSERTION FAILURE in /SourceCache/IDEFrameworks/IDEFrameworks-7718/IDEFoundation/Issues/IDEIssueManager.m:457
Details: This method must only be called on the main thread
Object: <IDEIssueManager>
Method: +_issueProviderInfo
Thread: <NSThread: 0x7fdb971db920>{number = 80, name = (null)}
Hints: None
Backtrace:
0 0x0000000102e28b6a -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 0x0000000101b765df _DVTAssertionHandler (in DVTFoundation)
2 0x0000000101b768ce _DVTAssertionFailureHandler (in DVTFoundation)
3 0x00000001024f248e +[IDEIssueManager _issueProviderInfo] (in IDEFoundation)
4 0x00000001024f1b0d -[IDEIssueManager _updateIssueProviders] (in IDEFoundation)
5 0x0000000101b893de __73-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:]_block_invoke (in DVTFoundation)
6 0x0000000101afed5c DVTInvokeWithStrongOwnership (in DVTFoundation)
7 0x00000001019b03e4 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
8 0x00007fff8a8af0f3 NSKeyValueNotifyObserver (in Foundation)
9 0x00007fff8a8bbd68 NSKeyValueDidChange (in Foundation)
10 0x00007fff8a87497d -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] (in Foundation)
11 0x00007fff8befddaf doSetValuesInSourceWithKVO (in CoreFoundation)
12 0x00007fff8befdc46 _CFXPreferencesReplaceValuesInNamedVolatileSource (in CoreFoundation)
13 0x00007fff8aa4b027 -[NSUserDefaults(NSUserDefaults) setVolatileDomain:forName:] (in Foundation)
14 0x0000000119e34a13 -[NSUserDefaults(ITunesConnectFoundationExtensions) REPLACEMENT_setVolatileDomain:forName:] (in ITunesConnectFoundation)
15 0x0000000119e34f87 -[NSUserDefaults(ITunesConnectFoundationExtensions) synchronizeRegistrationDomains] (in ITunesConnectFoundation)
16 0x0000000119e34d5d -[NSUserDefaults(ITunesConnectFoundationExtensions) registerPriorityDefaults:] (in ITunesConnectFoundation)
17 0x0000000119e2669e -[MZJSONServiceClient processApplicationSettings:] (in ITunesConnectFoundation)
18 0x0000000119e26d7d -[MZJSONServiceClient connectionDidFinishLoading:] (in ITunesConnectFoundation)
19 0x00007fff8846d24d __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke (in CFNetwork)
20 0x00007fff8846d0b1 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] (in CFNetwork)
21 0x00007fff8846cfb7 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] (in CFNetwork)
22 0x00007fff8846df74 ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke (in CFNetwork)
23 0x00007fff88521703 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 (in CFNetwork)
24 0x00007fff883c2cec RunloopBlockContext::_invoke_block(void const*, void*) (in CFNetwork)
25 0x00007fff8bf0e664 CFArrayApplyFunction (in CoreFoundation)
26 0x00007fff883c2bad RunloopBlockContext::perform() (in CFNetwork)
27 0x00007fff883c2998 MultiplexerSource::perform() (in CFNetwork)
28 0x00007fff883c27ba MultiplexerSource::_perform(void*) (in CFNetwork)
29 0x00007fff8bf42a01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ (in CoreFoundation)
30 0x00007fff8bf34b8d __CFRunLoopDoSources0 (in CoreFoundation)
31 0x00007fff8bf341bf __CFRunLoopRun (in CoreFoundation)
32 0x00007fff8bf33bd8 CFRunLoopRunSpecific (in CoreFoundation)
33 0x00007fff8a8fda59 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in Foundation)
34 0x00007fff8a91bcce -[NSRunLoop(NSRunLoop) runUntilDate:] (in Foundation)
35 0x0000000119e25d00 -[MZJSONServiceClient getResultDictionary] (in ITunesConnectFoundation)
36 0x0000000119e28eb3 -[MZLabelServiceClient invokeSOAPCall] (in ITunesConnectFoundation)
37 0x0000000119e3097d -[MZWebServiceOperationWorker execute] (in ITunesConnectFoundation)
38 0x0000000119e30e11 -[MZWebServiceWorker run] (in ITunesConnectFoundation)
39 0x0000000119df854d -[MZWorkItem main] (in ITunesConnectFoundation)
40 0x00007fff8a8c6a6c -[__NSOperationInternal _start:] (in Foundation)
41 0x00007fff8a8c6543 __NSOQSchedule_f (in Foundation)
42 0x00007fff89468c13 _dispatch_client_callout (in libdispatch.dylib)
43 0x00007fff8946c365 _dispatch_queue_drain (in libdispatch.dylib)
44 0x00007fff8946decc _dispatch_queue_invoke (in libdispatch.dylib)
45 0x00007fff8946b6b7 _dispatch_root_queue_drain (in libdispatch.dylib)
46 0x00007fff89479fe4 _dispatch_worker_thread3 (in libdispatch.dylib)
47 0x00007fff86f91637 _pthread_wqthread (in libsystem_pthread.dylib)
48 0x00007fff86f8f40d start_wqthread (in libsystem_pthread.dylib)
Note: I can validate the Archive without error.
Will re-installing XCode help me to fix it?
Close any projects or workspace windows you have open in Xcode but leave Organizer window open and re-submit worked for me.
Just got this problem. Seems to work if you close all other Xcode windows but keep the organizer window open.
Had the same problem - uploaded my .ipa through the Application Loader.
The original question is: "Will re-installing XCode help me to fix it?"
The answer is: "No." Re-installation does not help the problem. The bug is pretty serious though, since submitting an app is central to app development. A fix should be in the App Store asap. Hence updating later may help.
Following steps worked for me:
Archive the project.
Open Organizer
Press the top-left cross button of XCode which will close all projects without quiting XCode and Organiser will be opened
Now resubmit the archive from organiser.
Had this problem today. I was only able to successfully upload the Archive when the organizer window was open and all Xcode projects were closed.
I created an .ipa file using the Export utility in Organizer, then ran Application Loader. Selected the 'Deliver Your App' button. Choose the new created ipa file and the file appeared in iTuneConnect under the pre-release tab as expected for TestFlight distribution.
Had the same problem today. Problem turned out I still had the Reveal Framework included in my project. Make sure you don't have any non-public API usage in your archive.
I encountered similar situation. However, my solution was somehow different.
Noticing that you are trying to submit next build, please make sure your previous build is excluded from App Store submit form before uploading new build.
I'm not sure why this has to be an issue, but it seems like that the submit form should be cleared before receiving new build.
You might need to accept some new user agreements, try going to Apple Developer Member Center and see if they're any new agreements you need to accept.
If that doesn't work try this: open Xcode and go to [ Preferences ] -> [ Accounts ], select your Apple ID and click on [ View Details... ]. Once you do that click on the refresh icon at the bottom left. If you're missing anything it will let you know.
If both of those don't work go back to the archive window in XCode and click on export on the right-hand side underneath the submit button. Save it where ever you want but remember the location. Once exported go back to XCode and go to [ Open Developer Tools ] -> [ Application Loader ]. You can submit your new version of your app through that.
If none of those work then I have no idea, maybe someone else knows.
I had the same issue at June 17 night. I reinstalled my Xcode, and had the same issue. Looks like Apple updated something at that day, since I noticed the website of Member Center, the MAC certificate is also there. (YES!!! apple only charge once for iPhone and Mac)
If that doesn't work, than it could also be that the used Certificate has expired. So check if your Certificate is still valid.
Archive using Xcode 6.4, submit using Xcode 7. Submission successful
I have an application that was built using Xcode 4.x a while ago. Today, I tried to update the app, but Xcode gives me the following error.
"Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 255"
The problem seems to be related to MainWindow.xib because when I try to open it in Xcode, it crashes . here is the crash log:
Process: Xcode [4801]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.1 (5084)
Build Info: IDEFrameworks-5084000000000000~21
App Item ID: 497799835
App External ID: 444172641
Code Type: X86-64 (Native)
Parent Process: launchd [314]
Responsible: Xcode [4801]
User ID: 502
Date/Time: 2014-03-30 12:52:21.937 -0700
OS Version: Mac OS X 10.9.2 (13C64)
Report Version: 11
Anonymous UUID: 5F3D19A9-E9CE-6E7F-D1E6-13874A73646F
Sleep/Wake UUID: 94AB887F-E3ED-4944-92D6-E9C8274657DC
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 5B130a
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-5038/InterfaceBuilder/WidgetIntegration/SimulatedMetrics/IBUISimulatedSizeMetrics.m:33
Details: (initialTargetRuntime) should not be nil.
Object: <IBUIFixedSimulatedSizeMetrics: 0x7f890bcc9090>
Method: -initWithTargetRuntime:
Thread: <NSThread: 0x7f891bc15b90>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x0000000103275825 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 0x00000001020947a9 _DVTAssertionHandler (in DVTFoundation)
2 0x0000000102094a8f _DVTAssertionFailureHandler (in DVTFoundation)
3 0x000000010e0637c0 (in IDEInterfaceBuilderCocoaTouchIntegration)
4 0x000000010e064047 (in IDEInterfaceBuilderCocoaTouchIntegration)
5 0x000000010e06434a (in IDEInterfaceBuilderCocoaTouchIntegration)
6 0x000000010e0acc4e (in IDEInterfaceBuilderCocoaTouchIntegration)
7 0x000000010e0ac682 (in IDEInterfaceBuilderCocoaTouchIntegration)
8 0x000000010e0ad33c (in IDEInterfaceBuilderCocoaTouchIntegration)
9 0x000000010e04f3c8 (in IDEInterfaceBuilderCocoaTouchIntegration)
I have tried everything that is related to this question on stack overflow, but none of the remedies has solved my problem.
Exact same problem for me.
Latest Xcode
Xcode crashes when that particular Xib is viewed (MainWindow.xib).
I've researched around. Some mentioned custom fonts relating to multiple computer. Doesn't seem to solve my problem.
Contacted Apple about this and used one of my two free incident reports and asked for help. The response was to file a bug report!
I ended up re-creating the xib.
I cant seem to refresh my provisioning profiles in Xcode without crashes. Every time I press the refresh button in organizer it crashes and I retrieve this line from the error log:
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** setObjectForKey: object cannot be nil (key: teamId)
So I checked my teamId but dont find anything unusual. Anybody have any ideas what causing my problem? This uses to work for me every time I refreshed my profiles. Even did that this morning for like 10 times.
EDIT:
Heres the crash report if needed:
Process: Xcode [1136]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.6.1 (2067)
Build Info: IDEApplication-2067000000000000~2
App Item ID: 497799835
App External ID: 14581035
Code Type: X86-64 (Native)
Parent Process: launchd [272]
User ID: 501
Date/Time: 2013-03-15 15:21:43.906 +0100
OS Version: Mac OS X 10.8.3 (12D78)
Report Version: 10
Interval Since Last Report: 14773 sec
Crashes Since Last Report: 9
Per-App Interval Since Last Report: 14523 sec
Per-App Crashes Since Last Report: 7
Anonymous UUID: E5C08B95-3313-ABC3-6BB7-F22E76735A98
Crashed Thread: 2 Dispatch queue: NSManagedObjectContext Queue
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4H512
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** setObjectForKey: object cannot be nil (key: teamId)
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff92639aee __exceptionPreprocess (in CoreFoundation)
1 0x00007fff98d703f0 objc_exception_throw (in libobjc.A.dylib)
2 0x00007fff926c85b7 -[__NSDictionaryM setObject:forKey:] (in CoreFoundation)
3 0x0000000107d42d88 +[DTDKTeamBasedService _createRequestDictionaryForTeam:andPlatform:] (in DTDeviceKit)
4 0x0000000107d45315 +[DTDKDownloadProvisioningProfileService serviceForTeam:andPlatform:andProfileID:withError:] (in DTDeviceKit)
5 0x0000000107d6e1c0 +[DTDKDownloadProvisioningProfileService serviceForProvisioningProfileRecord:withError:] (in DTDeviceKit)
6 0x0000000107d73728 __72+[DTDKPortalDatabase _refreshFromProvisioningProfileListServices:error:]_block_invoke (in DTDeviceKit)
7 0x00007fff9429d4dc developerSubmittedBlockToNSManagedObjectContextPerform (in CoreData)
8 0x00007fff9429d40a -[NSManagedObjectContext performBlockAndWait:] (in CoreData)
9 0x0000000107d73246 +[DTDKPortalDatabase _refreshFromProvisioningProfileListServices:error:] (in DTDeviceKit)
10 0x0000000107d75816 __56+[DTDKPortalDatabase refresh:parentWindow:withCallback:]_block_invoke_5 (in DTDeviceKit)
11 0x00007fff942cd7cf developerSubmittedBlockToNSManagedObjectContextPerform_privateasync (in CoreData)
12 0x00007fff90dd20b6 _dispatch_client_callout (in libdispatch.dylib)
13 0x00007fff90dd347f _dispatch_queue_drain (in libdispatch.dylib)
14 0x00007fff90dd32f1 _dispatch_queue_invoke (in libdispatch.dylib)
15 0x00007fff90dd31c3 _dispatch_worker_thread2 (in libdispatch.dylib)
16 0x00007fff964d4d0b _pthread_wqthread (in libsystem_c.dylib)
17 0x00007fff964bf1d1 start_wqthread (in libsystem_c.dylib)
objc[1136]: garbage collection is ON
abort() called
.....
[The report itself is very large and contains much more than this]
Remove this file:
~/Library/Developer/Xcode/connect1.apple.com 4.6.1.db
before running Xcode 4.6.1.
Here is apple's official workaround:
Run this command in terminal:
mkdir ~/Library/Developer/Xcode/OldPortalDBs; mv ~/Library/Developer/Xcode/connect1.apple.com* ~/Library/Developer/Xcode/OldPortalDBs
Worked like a charm for me.
Someone had this problem at NSCoder Night this week. Cleared by removing:
~/Library/Caches/com.apple.dt.Xcode.
sqlite3 ~/Library/Caches/com.apple.dt.Xcode/PortalData/connect1.apple.com
Shows that file to be an SQLite database, with references to certificates, teams, and profiles. I suspect (but haven't tried) that removing the PortalData folder would be sufficient to clear the error.
Removing this file worked for me.
~/Library/Developer/Xcode/connect1.apple.com 4.6.1.db
Thanks!