Xcode 8.3.1 crashing at launch after adding unit tests - crash

Suddenly Xcode has begun to crash at launch when I simply added a few unit tests. It works and runs fine in App Code. I've cleared derived data as well as the xcuserdata directories within the project. Any other ideas?
Process: Xcode [26423]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 8.3.1 (12170)
Build Info: IDEFrameworks-12170000000000000~7
App Item ID: 497799835
App External ID: 821611362
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [26423]
User ID: 501
Date/Time: 2017-04-12 00:40:23.567 +0400
OS Version: Mac OS X 10.12.4 (16E195)
Report Version: 12
Anonymous UUID: A61178D2-CCD8-EB05-35BC-2919E1453F0A
Sleep/Wake UUID: 0957325A-2586-4141-9E55-27CBC55A7323
Time Awake Since Boot: 60000 seconds
Time Since Wake: 3000 seconds
System Integrity Protection: enabled
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:
MainQueue: -[Xcode3TargetEntitlementsCoordinator syncPerformEntitlementsInteractionBlock:]_block_invoke
ProductBuildVersion: 8E1000a
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[__NSCFString allKeys]: unrecognized selector sent to instance 0x7ff3db72d8c0
UserInfo: (null)
Hints:
Backtrace:
0 __exceptionPreprocess (in CoreFoundation)
1 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 objc_exception_throw (in libobjc.A.dylib)
3 -[NSObject(NSObject) doesNotRecognizeSelector:] (in CoreFoundation)
4 ___forwarding___ (in CoreFoundation)
5 _CF_forwarding_prep_0 (in CoreFoundation)
6 -[Xcode3TargetEntitlementsCoordinatorToken allEntitlementKeys] (in DevToolsCore)
7 __94-[Xcode3TargetCapabilitiesContext _appIDFeatureStateIncludingEntitlements:buildConfiguration:]_block_invoke (in DevToolsCore)
8 DVTSyncPerformBlock (in DVTFoundation)
9 -[Xcode3TargetEntitlementsCoordinator syncPerformEntitlementsInteractionBlock:] (in DevToolsCore)
10 -[Xcode3TargetCapabilitiesContext _appIDFeatureStateIncludingEntitlements:buildConfiguration:] (in DevToolsCore)
11 -[Xcode3Target appIDFeaturesForConfigurationNamed:] (in DevToolsCore)
12 +[IDEProvisionableSnapshot snapshotFromProvisionable:overrides:] (in IDEFoundation)
13 __72-[IDEProvisionableManager _evaluateStatusWithStatusEvaluator:overrides:]_block_invoke_2 (in IDEFoundation)
14 -[_DVTTimeSlicedMainThreadOrderedNonUniquingWorkQueue _processWorkItemsWithDeadline:] (in DVTFoundation)
15 -[DVTTimeSlicedMainThreadWorkQueue _processWithDeadline:] (in DVTFoundation)
16 -[_DVTTimeSlicedMainThreadActiveWorkQueues _processWorkQueuesOnDeadline] (in DVTFoundation)
17 __NSFireDelayedPerform (in Foundation)
18 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ (in CoreFoundation)
19 __CFRunLoopDoTimer (in CoreFoundation)
20 __CFRunLoopDoTimers (in CoreFoundation)
21 __CFRunLoopRun (in CoreFoundation)
22 CFRunLoopRunSpecific (in CoreFoundation)
23 RunCurrentEventLoopInMode (in HIToolbox)
24 ReceiveNextEventCommon (in HIToolbox)
25 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
26 _DPSNextEvent (in AppKit)
27 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
28 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
29 -[NSApplication run] (in AppKit)
30 NSApplicationMain (in AppKit)
31 start (in libdyld.dylib)

It was the entitlements file. Accidentally it had some invalid entries and somehow that seems to have been the cause of the crash. Will file a radar.

Related

Crash on Apple Review - iOS

I had submit application several time to review.
But every time Apple tester said the application crash.
I test on my application in environment IPV4.
Totally no crash, but Apple tester said crash when launch as below.
It's the problem about IPV6? I can't test in environment IPV6.
Thank you for your resubmission. We were unable to review your app as
it crashed on launch. We have attached detailed crash logs to help
troubleshoot this issue.
Steps to reproduce:
1) Start the app on a device 2) the app attempts to launch and crashes
Next Steps
Please revise your app and test it on a device while connected to an
IPv6 network (all apps must support IPv6) to ensure it will launch
without crashing.
Date/Time: 2016-10-25 13:02:41.6759 -0700
Launch Time: 2016-10-25 13:02:40.6012 -0700
OS Version: iPhone OS 10.0.2 (14A456)
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000010014c3fc
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 BBBApps 0x000000010014c3fc 0x1000e4000 + 427004
1 BBBApps 0x0000000100149420 0x1000e4000 + 414752
2 UIKit 0x000000018d0a342c 0x18d021000 + 533548
3 UIKit 0x000000018d2b3b70 0x18d021000 + 2698096
4 UIKit 0x000000018d2b98e0 0x18d021000 + 2722016
5 UIKit 0x000000018d2ce080 0x18d021000 + 2805888
6 UIKit 0x000000018d2b68c4 0x18d021000 + 2709700
7 FrontBoardServices 0x0000000188d898bc 0x188d4f000 + 239804
8 FrontBoardServices 0x0000000188d89728 0x188d4f000 + 239400
9 FrontBoardServices 0x0000000188d89ad0 0x188d4f000 + 240336
10 CoreFoundation 0x0000000187196278 0x1870b9000 + 905848
11 CoreFoundation 0x0000000187195bc0 0x1870b9000 + 904128
12 CoreFoundation 0x00000001871937c0 0x1870b9000 + 894912
13 CoreFoundation 0x00000001870c2048 0x1870b9000 + 36936
14 UIKit 0x000000018d09c5dc 0x18d021000 + 505308
15 UIKit 0x000000018d097360 0x18d021000 + 484192
16 BBBApps 0x00000001000ea5e4 0x1000e4000 + 26084
17 libdyld.dylib 0x00000001860a45b8 0x1860a0000 + 17848
Here the crash report from Crashlytics:
#0. Crashed: com.apple.main-thread
0 BBBApps 0x10009183c specialized AppDelegate.application(UIApplication, didFinishLaunchingWithOptions : [NSObject : AnyObject]?) -> Bool (AppDelegate.swift:39)
1 BBBApps 0x10008ecbc #objc AppDelegate.application(UIApplication, didFinishLaunchingWithOptions : [NSObject : AnyObject]?) -> Bool (AppDelegate.swift)
2 UIKit 0x19235b42c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 400
3 UIKit 0x19256bb70 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3524
4 UIKit 0x1925718e0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1656
5 UIKit 0x192586080 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke.3134 + 48
6 UIKit 0x19256e8c4 -[UIApplication workspaceDidEndTransaction:] + 168
7 FrontBoardServices 0x18e0418bc __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
8 FrontBoardServices 0x18e041728 -[FBSSerialQueue _performNext] + 176
9 FrontBoardServices 0x18e041ad0 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
10 CoreFoundation 0x18c44e278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
11 CoreFoundation 0x18c44dbc0 __CFRunLoopDoSources0 + 524
12 CoreFoundation 0x18c44b7c0 __CFRunLoopRun + 804
13 CoreFoundation 0x18c37a048 CFRunLoopRunSpecific + 444
14 UIKit 0x1923545dc -[UIApplication _run] + 608
15 UIKit 0x19234f360 UIApplicationMain + 208
16 BBBApps 0x10008f9d4 main (AppDelegate.swift:17)
17 libdispatch.dylib 0x18b35c5b8 (Missing)
You can use your mac to share an IPV6 network.
Open System Preferences
Option-click on the Sharing preference pane
Option-click on Internet Sharing
A Create IPv6 Only Network checkbox will appear
Check Create IPv6 Only Network (this may also be labeled Create NAT64 Network)
Select the interface to share out over (usually this will be WiFi, to allow iOS devices to connect.)
Check the box to start internet sharing
Source
Trace/BPT trap 5 is usually related to the missing shared libraries (.dylib files).
In your case the following line suggests you which one is missing:
17 libdispatch.dylib 0x18b35c5b8 (Missing)
Make sure your app has proper access to it (compiled with it) or you have included it correctly along with your app.
You can use otool (-L) command-line tool to check more details about missing dependencies.

Xcode 7.3 archiving ends but crashes Xcode with error : bundleIdentifier should be a non-empty string, but it's an empty string

An enterprise app written in swift and having dependencies on libraries and frameworks(swift or objc) archives successfully and gives ipa successfully when archived using Xcode 7.2.1 but on Xcode 7.3 the archiving succeeds but crashes without giving an ipa with following error message,
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: 7D175
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-10183.3/IDEProducts/DVTProducts/DVTProducts/DVTProducts/DVTProductVersion.m:44
Details: bundleIdentifier should be a non-empty string, but it's an empty string
Object: <DVTProductVersion: 0x7ff47b18ac40>
Method: -initWithBundleIdentifier:version:buildNumber:name:childProducts:productCategory:
Thread: <NSThread: 0x7ff471c18210>{number = 1, name = main}
Hints: None
Backtrace:
0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 -[DVTProductVersion initWithBundleIdentifier:version:buildNumber:name:childProducts:productCategory:] (in DVTProducts)
4 +[DVTProductVersion productVersionFromArchive:withError:] (in DVTProducts)
5 -[DVTArchiveProductSource _productsFromArchives:coordinator:] (in DVTProducts)
6 __58-[DVTArchiveProductSource updateArchivesDelayedInvocation]_block_invoke (in DVTProducts)
7 -[DVTDelayedInvocation runBlock:] (in DVTFoundation)
8 -[DVTDelayedInvocation invokeIfNeeded] (in DVTFoundation)
9 -[DVTArchiveProductSource refreshProducts] (in DVTProducts)
10 +[IDEArchivesViewController revealArchive:] (in IDEProductsUI)
11 +[IDEArchivesViewController revealArchiveNotification:] (in IDEProductsUI)
12 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ (in CoreFoundation)
13 ___CFXRegistrationPost_block_invoke (in CoreFoundation)
14 _CFXRegistrationPost (in CoreFoundation)
15 ___CFXNotificationPost_block_invoke (in CoreFoundation)
16 -[_CFXNotificationRegistrar find:object:observer:enumerator:] (in CoreFoundation)
17 _CFXNotificationPost (in CoreFoundation)
18 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
19 -[NSNotificationCenter(DVTNSNotificationCenterAdditions) _dvt_postNotificationName:object:userInfo:] (in DVTFoundation)
20 __42-[IDEArchiveManager _revealArchiveAtPath:]_block_invoke (in IDEFoundation)
21 ___DVTAsyncPerformBlockOnMainRunLoop_block_invoke (in DVTFoundation)
22 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
23 __CFRunLoopDoBlocks (in CoreFoundation)
24 __CFRunLoopRun (in CoreFoundation)
25 CFRunLoopRunSpecific (in CoreFoundation)
26 RunCurrentEventLoopInMode (in HIToolbox)
27 ReceiveNextEventCommon (in HIToolbox)
28 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
29 _DPSNextEvent (in AppKit)
30 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
31 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
32 -[NSApplication run] (in AppKit)
33 NSApplicationMain (in AppKit)
34 0x000000010028b39b (in Xcode)
35 start (in libdyld.dylib)
abort() called
Any help is appreciated :)
A workaround was given to this bug by apple(as copy pasted below), and was fixed in Xcode 7.3.1
Hi rgh,
This is a courtesy email regarding Bug ID# 25849118.
Engineering has provided the following feedback regarding this issue:
You can workaround this issue by following these steps:
Close Xcode.
Move ~/Library/Developer/Xcode/Products to a different location.
Reopen Xcode. Attempt rearchiving.
You should then be able to put back your product directory. If the
crash still occurs, please let us know.
THE INFORMATION CONTAINED IN THIS MESSAGE IS UNDER NON-DISCLOSURE
Bug ID #: 25849118 Bug Title: Xcode 7.3 succeeds archiving but crashes
before creation of ipa
Summary: Currently archiving with Xcode
7.2.1 without any issues. As the log suggests i have gone through all libraries, bundles and frameworks which are included as dependencies
if any of has missed setting bundle identifier. After confirming
nothing is missing it still crashes with the same issue.
Steps to Reproduce:
1. Start archiving.
2. After build succeeds and just before creation of ipa, crash.
Expected Results: IPA
Actual Results: Crash
Version: Xcode 7.3 OSX El Capitan 10.11.4 (15E65)
Notes: Tried deleting all derived data. Did try after setting missing
bundle identifier for all included dependencies(frameworks, bundles,
libraries).
Configuration: xcode 7.2.1 on the same machine succeeds.
Attachments: 'Xcode_2016-04-19-140323_Raghavendras-MacBook-Pro.crash'
was successfully uploaded.

Crash Log - SIGTRAP - iPhone Simulator Using XCode 4.2

I have this crash issue after I upgrade using XCode 4.2. It never happened when I use 4.0.2 before. The strangest thing is that it happened intermittently, as it sometime happened and sometime it didn't. Please help me figuring out what the cause of the crash from the log below :
Interval Since Last Report: 627313 sec
Crashes Since Last Report: 59
Per-App Crashes Since Last Report: 14
Anonymous UUID: FF7C9791-6E3A-4A0C-AB83-35DE0C08166B
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Application Specific Information:
iPhone Simulator 272, iPhone OS 4.3.2 (iPhone/8H7)
iPhone Simulator 272, iPhone OS 4.3.2 (iPhone/8H7)
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x9639baa2 __semwait_signal + 10
1 libSystem.B.dylib 0x963c79c5 nanosleep$UNIX2003 + 188
2 libSystem.B.dylib 0x963c7903 usleep$UNIX2003 + 61
3 QuartzCore 0x0168549d CABackingStoreCollectBlocking + 209
4 UIKit 0x00f27e98 -[UIApplication _handleApplicationSuspend:eventInfo:] + 1719
5 UIKit 0x00f31039 -[UIApplication handleEvent:withNewEvent:] + 4127
6 UIKit 0x00f28abf -[UIApplication sendEvent:] + 71
7 UIKit 0x00f2df2e _UIApplicationHandleEvent + 7576
8 GraphicsServices 0x027f5992 PurpleEventCallback + 1550
9 CoreFoundation 0x01b9f944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
10 CoreFoundation 0x01affcf7 __CFRunLoopDoSource1 + 215
11 CoreFoundation 0x01afcf83 __CFRunLoopRun + 979
12 CoreFoundation 0x01afc840 CFRunLoopRunSpecific + 208
13 CoreFoundation 0x01afc761 CFRunLoopRunInMode + 97
14 GraphicsServices 0x027f41c4 GSEventRunModal + 217
15 GraphicsServices 0x027f4289 GSEventRun + 115
16 UIKit 0x00f31c93 UIApplicationMain + 1160
17 XXXXXXXXXXXXXX 0x00184f69 main + 121 (main.m:14)
18 XXXXXXXXXXXXXX 0x00002af5 start + 53
There's always these little problems in certain projects whenever xcode updates. There may be a solution to this problem that doesn't involve my solution, so I would wait for other answers before using mine.
I would always just copy/paste all of my important code, organized in text documents so that I can tell what everything used to be, then I would Un-Install (after uninstalling, delete every subfolder and all leftovers of the previous version. All projects and classes) then Re-install, create new projects and copy/paste your old code. This SHOULD fix the problem, but as I said this is a hassle so see if anyone else cam come with a more specific answer to your problem.

App crashes when launching after updating app via HockeyApp

Here's the CrashReporter information:
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x347c2848 __kill + 8
1 [My Application] 0x0002ec44 fatal_signal_handler (PLCrashSignalHandler.m:98)
2 libsystem_c.dylib 0x37518522 _sigtramp + 42
3 [My Application] 0x0003040a uncaught_exception_handler (PLCrashReporter.m:136)
4 CoreFoundation 0x37663984 __handleUncaughtException + 68
5 libobjc.A.dylib 0x334082ca _objc_terminate + 122
6 libc++abi.dylib 0x37f473be safe_handler_caller(void (*)()) + 70
7 libc++abi.dylib 0x37f4744a std::terminate() + 14
8 libc++abi.dylib 0x37f4881e __cxa_rethrow + 82
9 libobjc.A.dylib 0x3340822e objc_exception_rethrow + 6
10 CoreFoundation 0x375b9556 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x375b93b6 CFRunLoopRunInMode + 98
12 UIKit 0x3354dda4 -[UIApplication _run] + 544
13 UIKit 0x3354b05a UIApplicationMain + 1074
14 [My Application] 0x00002a9a main (main.m:54)
15 [My Application] 0x00002a58 0x1000 + 6744
If I delete the app and then download the updated version from scratch it works fine...
This is caused by an Objective-C exception being thrown, caught by the runloop, and re-thrown, resulting in the backtrace being lost.
To debug this without changes in PLCrashReporter/HockeyApp, you could register your own exception handler via NSSetUncaughtExceptionHandler(), and log the provided stack trace via (see [-NSException callStackReturnAddresses]). You'll need to symbolicate the results manually.
As a more general solution for this class of bug, you may be able to get the original exception backtrace by using PLCrashReporter trunk, which will record the exceptions' original backtrace separately in the crash report.
However, the HockeyApp client would need to be minimally modified to support recording the extra stack trace. The text formatter included with PLCrashReporter can be used as an example -- it will format this additional stack trace as an additional named pseudo-thread.

Xcodebuild throws assert failures after successful build?

I'me getting the following after building from he command line using xcodebuild, ay ideas what might be wrong?
** BUILD SUCCEEDED **
2010-06-06 20:20:12.916 xcodebuild[8267:80b] [MT] ASSERTION FAILURE in
/SourceCache/DevToolsBase/DevToolsBase-1648/pbxcore/Target.subproj/PBXTarget.m:597
Details: Assertion failed: (nil == _buildContext) || (nil == [_buildContext target])
Object: <PBXLegacyTarget:0x104b97370>
Method: -dealloc
Thread: <NSThread: 0x100b141a0>{name = (null), num = 1}
Backtrace:
0 0x000000010035feaf -[XCAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsCore)
1 0x000000010035fc1a _XCAssertionFailureHandler (in DevToolsCore)
2 0x00000001002790d1 -[PBXTarget dealloc] (in DevToolsCore)
3 0x00000001002911e8 -[PBXLegacyTarget dealloc] (in DevToolsCore)
4 0x00000001002c5b16 -[PBXTargetBookmark dealloc] (in DevToolsCore)
5 0x00007fff8224ff71 __CFBasicHashStandardCallback (in CoreFoundation)
6 0x00007fff82250931 __CFBasicHashDrain (in CoreFoundation)
7 0x00007fff822396b3 _CFRelease (in CoreFoundation)
8 0x0000000100254171 -[PBXProject dealloc] (in DevToolsCore)
9 0x00007fff82262d56 _CFAutoreleasePoolPop (in CoreFoundation)
10 0x00007fff841b530c -[NSAutoreleasePool drain] (in Foundation)
11 0x000000010000c60d
12 0x00000001000014f4
** INTERNAL ERROR: Uncaught Exception **
Exception: ASSERTION FAILURE in /SourceCache/DevToolsBase/DevToolsBase-1648/pbxcore/Target.subproj/PBXTarget.m:597
Details: Assertion failed: (nil == _buildContext) || (nil == [_buildContext target])
Object: <PBXLegacyTarget:0x104b97370>
Method: -dealloc
Thread: <NSThread: 0x100b141a0>{name = (null), num = 1}
Backtrace:
0 0x000000010035feaf -[XCAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsCore)
1 0x000000010035fc1a _XCAssertionFailureHandler (in DevToolsCore)
2 0x00000001002790d1 -[PBXTarget dealloc] (in DevToolsCore)
3 0x00000001002911e8 -[PBXLegacyTarget dealloc] (in DevToolsCore)
4 0x00000001002c5b16 -[PBXTargetBookmark dealloc] (in DevToolsCore)
5 0x00007fff8224ff71 __CFBasicHashStandardCallback (in CoreFoundation)
6 0x00007fff82250931 __CFBasicHashDrain (in CoreFoundation)
7 0x00007fff822396b3 _CFRelease (in CoreFoundation)
8 0x0000000100254171 -[PBXProject dealloc] (in DevToolsCore)
9 0x00007fff82262d56 _CFAutoreleasePoolPop (in CoreFoundation)
10 0x00007fff841b530c -[NSAutoreleasePool drain] (in Foundation)
11 0x000000010000c60d
12 0x00000001000014f4
Stack:
0 0x00007fff822ded06 __exceptionPreprocess (in CoreFoundation)
1 0x00007fff832470f3 objc_exception_throw (in libobjc.A.dylib)
2 0x00007fff823369b9 -[NSException raise] (in CoreFoundation)
3 0x000000010035ff6a -[XCAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsCore)
4 0x000000010035fc1a _XCAssertionFailureHandler (in DevToolsCore)
5 0x00000001002790d1 -[PBXTarget dealloc] (in DevToolsCore)
6 0x00000001002911e8 -[PBXLegacyTarget dealloc] (in DevToolsCore)
7 0x00000001002c5b16 -[PBXTargetBookmark dealloc] (in DevToolsCore)
8 0x00007fff8224ff71 __CFBasicHashStandardCallback (in CoreFoundation)
9 0x00007fff82250931 __CFBasicHashDrain (in CoreFoundation)
10 0x00007fff822396b3 _CFRelease (in CoreFoundation)
11 0x0000000100254171 -[PBXProject dealloc] (in DevToolsCore)
12 0x00007fff82262d56 _CFAutoreleasePoolPop (in CoreFoundation)
13 0x00007fff841b530c -[NSAutoreleasePool drain] (in Foundation)
14 0x000000010000c60d
15 0x00000001000014f4
Abort trap
I have the exact same symptoms... and no clue. It use to work fine with my projects. I drastically changed my build settings and now it does this???
Even if build settings are wrong XCode should not crash.
For me it still generate the valid binaries at the end. Sounds like XCode crashing when closing the project and deallocating something.
However it seems that I have found a way of getting rid of the errors by deleting all the .pbxuser and the .perspectivev3 file inside the xcode project package.
If you are like me and you have a ton of Xcode projects you might want to run the following command at the root of your code base:
find . -type f -name "*.pbxuser" -exec rm -f {} \;
find . -type f -name "*.perspectivev3" -exec rm -f {} \;
I also had this fix my problem where I was unable to open an XCode project when starting the XCode application. I had installed an older version of XCode as well as an older version of the iOS SDK.
Please be careful with Steph solution as it can cause havoc. This is a similar question and answer: xcode Assertion failed
If people are generally looking for a Assert failure trouble shooting.