iOS exception EXC_GUARD - objective-c

I had a crash on an iPhone 4 with an exception type of EXC_GUARD. I can't find any information on this particular exception via google (only 1 result) or on stackoverflow. What is it?
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-10-24 14:29:53.740 -0700
OS Version: iOS 6.0 (10A403)
Report Version: 104
Exception Type: EXC_GUARD
Exception Codes: 0x0000000100000010, 0x08fd4dbfade2dead
Crashed Thread: 0
Thread 0 name: MAIN Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x32f25294 close + 8
1 Twine 0x00230b8e close_file + 10
2 Twine 0x00218774 -[TFAirTrafficController startSession] + 752
3 Twine 0x002169fa +[TestFlight takeOff:] + 122

https://devforums.apple.com/message/713606
It's a bug in TestFlight causing a close on a duff file handle. This causes that crash.

Related

Version 6.0 (6A313) crash when refreshing provisioning profiles

Refreshing provisioning profile in Xcode 6 worked for me for a while and xcode 6 crashes today when I refresh it .
Any one can help?
I saw there is a ticket on stackoverflow and it does not help in my case.
"Xcode crash when refreshing provisioning profiles"
Xcode crash when refreshing provisioning profiles
Thanks in advance.
Process: Xcode [979]
Path: /Applications/Xcode 2.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.0 (6299)
Build Info: IDEFrameworks-6299000000000000~8
Code Type: X86-64 (Native)
Parent Process: launchd [357]
Responsible: Xcode [979]
User ID: 501
Date/Time: 2014-11-14 11:14:00.919 -0800
OS Version: Mac OS X 10.9.5 (13F34)
Report Version: 11
Anonymous UUID: 13628E65-2AA7-5BA1-59E1-B82B3CC26059
Crashed Thread: 15 Dispatch queue: NSManagedObjectContext Queue
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6A313
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[NSNull longLongValue]: unrecognized selector sent to instance 0x7fff7c4ba240
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff93a58244 exceptionPreprocess (in CoreFoundation)
1 0x000000010c119184 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 0x00007fff963ffe75 objc_exception_throw (in libobjc.A.dylib)
3 0x00007fff93a5b12d -[NSObject(NSObject) doesNotRecognizeSelector:] (in CoreFoundation)
4 0x00007fff939b6272 ___forwarding_ (in CoreFoundation)
5 0x00007fff939b5df8 _CF_forwarding_prep_0 (in CoreFoundation)
6 0x00007fff93eb952b -[NSSQLiteConnection execute] (in CoreData)
7 0x00007fff93ed3fd0 newFetchedRowsForFetchPlan_MT (in CoreData)
8 0x00007fff93ec085f -[NSSQLCore objectsForFetchRequest:inContext:] (in CoreData)
9 0x00007fff93ec0397 -[NSSQLCore executeRequest:withContext:error:] (in CoreData)
10 0x00007fff93ebfe63 -[NSPersistentStoreCoordinator executeRequest:withContext:error:] (in
abort() called
This is part of crash log.
Looks like this problem is temporary and nothing to do with your Xcode or developer account.... most probably with apple servers/APIs that deals with prov/dev account. I am also getting same crash for last couple of hours. I tried many things - clean derived data, cache. Restarted machine etc but all in vain.
UPDATE: Try this on 'Terminal' app... [My issue probably resolved due to this !]
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
Thanks for putting up this question here so I know there are others facing this problem. No useful info on google.
The crash log that I get when I click Xcode project > Target > Team pop up -
Process: Xcode [5047]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.1 (6604)
Build Info: IDEFrameworks-6604000000000000~2
App Item ID: 497799835
App External ID: 752282650
Code Type: X86-64 (Native)
Parent Process: launchd [367]
Responsible: Xcode [5047]
User ID: 501
Date/Time: 2014-11-14 15:17:59.448 -0500
OS Version: Mac OS X 10.9.5 (13F34)
Report Version: 11
Anonymous UUID: 7950E54F-D23B-CF06-2654-85C6536B1DB5
Crashed Thread: 13 Dispatch queue: NSManagedObjectContext Queue
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6A1052d
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[NSNull longLongValue]: unrecognized selector sent to instance 0x7fff7c399240
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff8ffad244 __exceptionPreprocess (in CoreFoundation)
1 0x0000000105c4e2f4 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 0x00007fff91ce1e75 objc_exception_throw (in libobjc.A.dylib)
3 0x00007fff8ffb012d -[NSObject(NSObject) doesNotRecognizeSelector:] (in CoreFoundation)
4 0x00007fff8ff0b272 ___forwarding___ (in CoreFoundation)
5 0x00007fff8ff0adf8 _CF_forwarding_prep_0 (in CoreFoundation)
6 0x00007fff9119152b -[NSSQLiteConnection execute] (in CoreData)
7 0x00007fff911abfd0 newFetchedRowsForFetchPlan_MT (in CoreData)
8 0x00007fff9119885f -[NSSQLCore objectsForFetchRequest:inContext:] (in CoreData)
9 0x00007fff91198397 -[NSSQLCore executeRequest:withContext:error:] (in CoreData)
10 0x00007fff91197e63 -[NSPersistentStoreCoordinator executeRequest:withContext:error:] (in CoreData)
11 0x00007fff91195c1b -[NSManagedObjectContext executeFetchRequest:error:] (in CoreData)
12 0x0000000105b573e5 __80+[DVTDeveloperPortalDatabase objectsWithEntityName:matchingPredicate:inContext:]_block_invoke (in DVTFoundation)
I need to know the answer to this as well. Getting same thing - only solution found so far is related to Xcode 4. I did discover that it is somehow related to derived data...
Reference to this thread:
Xcode crashing when fetching team list
In case you want to export an ipa:
xcodebuild archive -project $projectname.xcodeproj -scheme $schemename -archivePath projectname.xcarchive
xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile “Provisioning Profile Name”
Not a good solution but I was able to upgrade to Yosemite and it resolved these issues.
It works later without any change. It may be caused by developer center issue.
Thanks for comments.

Xcode6 can't archive my project to ipa

Today I upgrade my Xcode to version 6.0.1, and I want to archive my project as an ipa file.
My process is Product -> Archive -> Export -> Save for Ad Hoc Deployment.
all are normal until I select my Development team,So I clicked the button"choose":
And then the Accident happened:
Process: Xcode [11022]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.0.1 (6528)
Build Info: IDEFrameworks-6528000000000000~2
App Item ID: 497799835
App External ID: 712682811
Code Type: X86-64 (Native)
Parent Process: launchd [286]
Responsible: Xcode [11022]
User ID: 501
Date/Time: 2014-09-23 21:51:40.939 +0800
OS Version: Mac OS X 10.9.5 (13F34)
Report Version: 11
Anonymous UUID: 689CEB1C-6C4F-C95D-8EB2-728905589271
Sleep/Wake UUID: 2F8703C9-8479-4E8A-B4BA-D4B067562EA5
Crashed Thread: 16 Dispatch queue: com.apple.root.default-priority
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6A317
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff90624244 __exceptionPreprocess (in CoreFoundation)
1 0x0000000104aa8184 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 0x00007fff97920e75 objc_exception_throw (in libobjc.A.dylib)
3 0x00007fff90523dd1 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] (in CoreFoundation)
4 0x00007fff90539ad9 +[NSDictionary dictionaryWithObjects:forKeys:count:] (in CoreFoundation)
5 0x0000000105f6a535 __85-[IDEDistributionSigningAssetsStepViewController _attemptToResolveProvisioningError:]_block_invoke_2 (in IDEKit)
6 0x0000000104adebac __DVTDispatchAsync_block_invoke (in DVTFoundation)
7 0x00007fff8b85f1bb _dispatch_call_block_and_release (in libdispatch.dylib)
8 0x00007fff8b85c28d _dispatch_client_callout (in libdispatch.dylib)
9 0x00007fff8b85e082 _dispatch_root_queue_drain (in libdispatch.dylib)
10 0x00007fff8b85f177 _dispatch_worker_thread2 (in libdispatch.dylib)
11 0x00007fff973ecef8 _pthread_wqthread (in libsystem_pthread.dylib)
12 0x00007fff973effb9 start_wqthread (in libsystem_pthread.dylib)
abort() called
Application Specific Signatures:
NSInvalidArgumentException
My certificate is $99.Every is ok when I used Xcode5 yesterday.Please help me solving this problem.Thanks a lot.
Figured it out !
You have to go into your developer account (https://developer.apple.com/membercenter/index.action) and accept the new terms and conditions
Then Xcode6 stops crashing

Version 6.0 (6A313) crashing whenever i try to "Save for enterprise deployment"

Is anyone experiencing this?
Xcode will crash and throw the error below:
Process: Xcode [1208]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.0 (6299)
Build Info: IDEFrameworks-6299000000000000~8
Code Type: X86-64 (Native)
Parent Process: launchd [227]
Responsible: Xcode [1208]
User ID: 505
Date/Time: 2014-09-18 11:37:28.745 +0800
OS Version: Mac OS X 10.9.4 (13E28)
Report Version: 11
Anonymous UUID: A819F892-0B04-883D-E5AC-30EB917E651C
Crashed Thread: 11 Dispatch queue: com.apple.root.default-priority
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Getting very fustrating.

XCode6 keeps crashing when I try to export ad-hoc build

[UPDATE]
Problem has been solved after going Apple dev site and accept new Term and Condition agreement, this is the most strange problem I ever seen.
I am able to build and run app without any problem until create ad-hoc build, Xcode6 (version 6.0.1) will always crash after choosing account and team and throw below exception:
Process: Xcode [1861]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.0.1 (6528)
Build Info: IDEFrameworks-6528000000000000~2
App Item ID: 497799835
App External ID: 712682811
Code Type: X86-64 (Native)
Parent Process: launchd [258]
Responsible: Xcode [1861]
User ID: 501
Date/Time: 2014-09-26 13:07:23.360 +0700
OS Version: Mac OS X 10.9.5 (13F34)
Report Version: 11
Anonymous UUID: E2DD7234-2A56-B169-B657-56CFED90D316
Crashed Thread: 10 Dispatch queue: com.apple.root.default-priority
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6A317
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]
UserInfo: (null)
Hints: None
Is anyone experiencing this? please help.
Note: I already choose team in Target config.

How to remove last selected file in Xcode 5 project navigator

My Xcode 5 is crashing continuously for one project when i am changing project navigator selection from xib file to any other file. so how to reset Xcode 5 preferences in mavericks?
Process: Xcode [11348]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0 (3332.22)
Build Info: IDEApplication-3332022000000000~2
Code Type: X86-64 (Native)
Parent Process: launchd [476]
Responsible: Xcode [11348]
User ID: 501
Date/Time: 2013-11-19 20:17:51.222 +0530
OS Version: Mac OS X 10.9 (13A603)
Report Version: 11
Anonymous UUID: 7CAA04DB-9AE5-4DB6-4EA0-12DF215191FF
Sleep/Wake UUID: BC5C337A-14F4-4375-8EF4-397D0F2DB159
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 5A1412
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-4510/CocoaIntegration/ResourceManagement/IBCocoaResourceManager.m:73
Details: result should be an instance inheriting from NSImage, but it is IBCIImage
Object: <IBCocoaResourceManager: 0x7f85f54072a0>
Method: -placeholderResourceContentForMediaType:originalValue:
Thread: <NSThread: 0x7f85f0c150e0>{name = (null), num = 1}
Hints: None
Go to your .xcodeproj in Finder, and right click, select show package contents. Then select the project.xcworkspace file within and show package contents on that as well, then open the xcuserdata folder, open the yourusername.xcuserdatad folder. You will see a UserInterfaceState.xcuserstate file. Delete it. Then open back up your .xcodeproj file.