Crash on startup using Xcode 5.1.1 or Xcode6-Beta5
Posted: 06 Aug 2014, 09:53
I tried to integrate SFS2X with Swift and I was getting this crash on startup. I guessed it is something with iOS8 SDK. Same thing is happening with iOS 7.1 SDK with Objective-C. Some clues will be appreciated.
I saw this viewtopic.php?t=9773 But it leads to missing symbols in link time.
Log:
2014-08-06 11:30:07.338 Test2[8585:60b] Cannot find executable for CFBundle 0x8c614b0 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
2014-08-06 11:30:07.425 Test2[8585:60b] +[NSStream getStreamsToHostNamed:port:inputStream:outputStream:]: unrecognized selector sent to class 0x1e882b0
2014-08-06 11:30:07.430 Test2[8585:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSStream getStreamsToHostNamed:port:inputStream:outputStream:]: unrecognized selector sent to class 0x1e882b0'
*** First throw call stack:
(
0 CoreFoundation 0x01d431e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x01ac28e5 objc_exception_throw + 44
2 CoreFoundation 0x01de00e3 +[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x01d3350b ___forwarding___ + 1019
4 CoreFoundation 0x01d330ee _CF_forwarding_prep_0 + 14
5 Test2 0x0000742b main + 19691
6 Test2 0x0002ae0b CreateDispatchTimer + 93085
7 Test2 0x0002aa74 CreateDispatchTimer + 92166
8 Test2 0x00009ac1 main + 29569
9 Test2 0x0002af1d CreateDispatchTimer + 93359
10 Test2 0x00002206 -[AppDelegate application:didFinishLaunchingWithOptions:] + 278
11 UIKit 0x006be14f -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 309
12 UIKit 0x006beaa1 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1810
13 UIKit 0x006c3667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
14 UIKit 0x006d7f92 -[UIApplication handleEvent:withNewEvent:] + 3517
15 UIKit 0x006d8555 -[UIApplication sendEvent:] + 85
16 UIKit 0x006c5250 _UIApplicationHandleEvent + 683
17 GraphicsServices 0x0385af02 _PurpleEventCallback + 776
18 GraphicsServices 0x0385aa0d PurpleEventCallback + 46
19 CoreFoundation 0x01cbeca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
20 CoreFoundation 0x01cbe9db __CFRunLoopDoSource1 + 523
21 CoreFoundation 0x01ce968c __CFRunLoopRun + 2156
22 CoreFoundation 0x01ce89d3 CFRunLoopRunSpecific + 467
23 CoreFoundation 0x01ce87eb CFRunLoopRunInMode + 123
24 UIKit 0x006c2d9c -[UIApplication _run] + 840
25 UIKit 0x006c4f9b UIApplicationMain + 1225
26 Test2 0x000027cd main + 141
27 libdyld.dylib 0x0238a701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I saw this viewtopic.php?t=9773 But it leads to missing symbols in link time.
Log:
2014-08-06 11:30:07.338 Test2[8585:60b] Cannot find executable for CFBundle 0x8c614b0 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
2014-08-06 11:30:07.425 Test2[8585:60b] +[NSStream getStreamsToHostNamed:port:inputStream:outputStream:]: unrecognized selector sent to class 0x1e882b0
2014-08-06 11:30:07.430 Test2[8585:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSStream getStreamsToHostNamed:port:inputStream:outputStream:]: unrecognized selector sent to class 0x1e882b0'
*** First throw call stack:
(
0 CoreFoundation 0x01d431e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x01ac28e5 objc_exception_throw + 44
2 CoreFoundation 0x01de00e3 +[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x01d3350b ___forwarding___ + 1019
4 CoreFoundation 0x01d330ee _CF_forwarding_prep_0 + 14
5 Test2 0x0000742b main + 19691
6 Test2 0x0002ae0b CreateDispatchTimer + 93085
7 Test2 0x0002aa74 CreateDispatchTimer + 92166
8 Test2 0x00009ac1 main + 29569
9 Test2 0x0002af1d CreateDispatchTimer + 93359
10 Test2 0x00002206 -[AppDelegate application:didFinishLaunchingWithOptions:] + 278
11 UIKit 0x006be14f -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 309
12 UIKit 0x006beaa1 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1810
13 UIKit 0x006c3667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
14 UIKit 0x006d7f92 -[UIApplication handleEvent:withNewEvent:] + 3517
15 UIKit 0x006d8555 -[UIApplication sendEvent:] + 85
16 UIKit 0x006c5250 _UIApplicationHandleEvent + 683
17 GraphicsServices 0x0385af02 _PurpleEventCallback + 776
18 GraphicsServices 0x0385aa0d PurpleEventCallback + 46
19 CoreFoundation 0x01cbeca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
20 CoreFoundation 0x01cbe9db __CFRunLoopDoSource1 + 523
21 CoreFoundation 0x01ce968c __CFRunLoopRun + 2156
22 CoreFoundation 0x01ce89d3 CFRunLoopRunSpecific + 467
23 CoreFoundation 0x01ce87eb CFRunLoopRunInMode + 123
24 UIKit 0x006c2d9c -[UIApplication _run] + 840
25 UIKit 0x006c4f9b UIApplicationMain + 1225
26 Test2 0x000027cd main + 141
27 libdyld.dylib 0x0238a701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException