testflight crashlog on launch - ios

I am creating a build using the command 'eas build -p ios' and when launching on testflight it crashes immediately. This is the crashlog testflight gives me. I have added a portion of it below. If more of it is needed let me know.
Update 1: I have added thread 2 considering thats where the crash is coming from.
Update 2: I have also tried using hermes as my js engine.
Update 3: Here are the logs I got from running npx expo start --no-dev --minify: https://easyupload.io/a0q426
Update 4: I found the answer after deconstructing my app and repeatedly submitting builds to testflight. react-native-snap-carousel is the issue. I posted the answer below. I also am including some lines from the crash for keywords on google searches to help others.
__exceptionPreprocess + 164 (NSException.m:202)
objc_exception_throw + 60 (objc-exception.mm:356)
How can I debug this?
Incident Identifier: D852C7FE-DF24-4B5C-9D9C-E3CCD8E00734
Hardware Model: iPhone12,1
Process: AppName [9237]
Path: /private/var/containers/Bundle/Application/C015CF31-46C4-4B23-BE7F-7B91E29F1DC7/AppName.app/AppName
Identifier: io.AppNameapp
Version: 1.0.0 (1)
AppStoreTools: 14C17
AppVariant: 1:iPhone12,1:16
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: io.AppNameapp [1630]
Date/Time: 2023-01-21 14:33:46.3007 -0500
Launch Time: 2023-01-21 14:33:44.9342 -0500
OS Version: iPhone OS 16.2 (20C65)
Release Type: User
Baseband Version: 4.00.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 2
Last Exception Backtrace:
0 CoreFoundation 0x1b042de48 __exceptionPreprocess + 164 (NSException.m:202)
1 libobjc.A.dylib 0x1a97038d8 objc_exception_throw + 60 (objc-exception.mm:356)
2 AppName 0x104ad7040 RCTFatal + 668 (RCTAssert.m:147)
3 AppName 0x104b57398 -[RCTExceptionsManager reportFatal:stack:exceptionId:extraDataAsJSON:] + 532 (RCTExceptionsManager.mm:77)
4 AppName 0x104b57cd8 -[RCTExceptionsManager reportException:] + 1476 (RCTExceptionsManager.mm:147)
5 CoreFoundation 0x1b04986c4 __invoking___ + 148 (:-1)
6 CoreFoundation 0x1b0444b2c -[NSInvocation invoke] + 428 (NSForwarding.m:3377)
7 CoreFoundation 0x1b0444544 -[NSInvocation invokeWithTarget:] + 64 (NSForwarding.m:3474)
8 AppName 0x104b097e4 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 460 (RCTModuleMethod.mm:584)
9 AppName 0x104b0bdd0 facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext) + 536 (RCTNativeModule.mm:183)
10 AppName 0x104b0ba04 operator() + 68 (RCTNativeModule.mm:104)
11 AppName 0x104b0ba04 invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 112 (RCTNativeModule.mm:95)
12 libdispatch.dylib 0x1b7a3f4b4 _dispatch_call_block_and_release + 32 (init.c:1518)
13 libdispatch.dylib 0x1b7a40fdc _dispatch_client_callout + 20 (object.m:560)
14 libdispatch.dylib 0x1b7a48694 _dispatch_lane_serial_drain + 672 (inline_internal.h:2632)
15 libdispatch.dylib 0x1b7a491e0 _dispatch_lane_invoke + 384 (queue.c:3940)
16 libdispatch.dylib 0x1b7a53e10 _dispatch_workloop_worker_thread + 652 (queue.c:6846)
17 libsystem_pthread.dylib 0x1fe4b5df8 _pthread_wqthread + 288 (pthread.c:2618)
18 libsystem_pthread.dylib 0x1fe4b5b98 start_wqthread + 8 (:-1)
...
Thread 2 name:
Thread 2 Crashed:
0 libsystem_kernel.dylib 0x00000001edd9f160 __pthread_kill + 8 (:-1)
1 libsystem_pthread.dylib 0x00000001fe4bc1ac pthread_kill + 268 (pthread.c:1670)
2 libsystem_c.dylib 0x00000001b7aa4c8c abort + 180 (abort.c:118)
3 libc++abi.dylib 0x00000001fe3fbb8c abort_message + 132 (abort_message.cpp:78)
4 libc++abi.dylib 0x00000001fe3eba80 demangling_terminate_handler() + 336 (cxa_default_handlers.cpp:71)
5 libobjc.A.dylib 0x00000001a9709d3c _objc_terminate() + 144 (objc-exception.mm:498)
6 libc++abi.dylib 0x00000001fe3faf28 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
7 libc++abi.dylib 0x00000001fe3faec4 std::terminate() + 56 (cxa_handlers.cpp:88)
8 libdispatch.dylib 0x00000001b7a40ff0 _dispatch_client_callout + 40 (object.m:563)
9 libdispatch.dylib 0x00000001b7a48694 _dispatch_lane_serial_drain + 672 (inline_internal.h:2632)
10 libdispatch.dylib 0x00000001b7a491e0 _dispatch_lane_invoke + 384 (queue.c:3940)
11 libdispatch.dylib 0x00000001b7a53e10 _dispatch_workloop_worker_thread + 652 (queue.c:6846)
12 libsystem_pthread.dylib 0x00000001fe4b5df8 _pthread_wqthread + 288 (pthread.c:2618)
13 libsystem_pthread.dylib 0x00000001fe4b5b98 start_wqthread + 8 (:-1)

The cause of my crash was caused by the library react-native-snap-carousel. After upgrading from 3.9.1 to 4.0.0-beta.6, the crashing stopped.
Before
"react-native-snap-carousel": "3.9.1",
After
"react-native-snap-carousel": "4.0.0-beta.6",

Copying/expanding on my comment on your other question:
Since you got the app to build but not run, I think your next step would be to try to find a way to access the device logs - or probably easier, try running in development with the flags --no-dev --minify to make the DEV code run more like your PROD code.
The Expo docs encourage using production mode for:
Production mode is most useful for two things:
Testing your app's performance, as Development slows your app down considerably.
Catching bugs that only show up in production.
I'd also try building Android to see if it also fails - and if so then your issue is much more likely to be something in the JS than any native dependency.
If all else fails, you might be able to find some help on the Expo Discord server.

Related

iOS Production build (EAS, Expo) crashes directly after opening the App

I have a problem with the IOS part of my ReactNative App. The Android part works fine. When I create an development build (eas build --profile development --platform ios) there is no problem. But the preview and production builds crash directly after opening the App. The EAS build pipelines have no problems except for one message
fatal error: module 'React' in AST file '/Users/expo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/1XDLP1ZNNJOAB/React-ISQBUSD1JGEA.pcm' (imported by AST file '/Users/expo/Library/Developer/Xcode/DerivedData/MY_APP_NAME-hkvdfgprzzhwypayqwweanuiqofc/Build/Intermediates.noindex/ArchiveIntermediates/MY_APP_NAME/PrecompiledHeaders/MY_APP_NAME-Bridging-Header-swift_3BATV8FO0GBUP-clang_1XDLP1ZNNJOAB.pch') is not defined in any loaded module map file; maybe you need to load '/Users/expo/workingdir/build/ios/Pods/Headers/Public/React-Core/React/React-Core.modulemap'?
I’m not sure if the this is related to my problem because it doesn’t lead to a build failure and the dev Build has the same error message but doesn’t crash.
The App is already published to TestFlight. Therefore, I have the crash reports from the device.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 13
…
Thread 13 name:
Thread 13 Crashed:
0 libsystem_kernel.dylib 0x00000001e5b5a200 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001f5d971ac pthread_kill + 268 (pthread.c:1670)
2 libsystem_c.dylib 0x00000001b0951ca0 abort + 180 (abort.c:118)
3 libsystem_c.dylib 0x00000001b09a8890 __assert_rtn + 272 (assert.c:96)
4 MY_APP_NAME 0x000000010487f8d4 facebook::jsc::JSCRuntime::~JSCRuntime() + 136 (JSCRuntime.cpp:393)
5 MY_APP_NAME 0x000000010487f97c ~JSCRuntime + 4 (JSCRuntime.cpp:383)
6 MY_APP_NAME 0x000000010487f97c facebook::jsc::JSCRuntime::~JSCRuntime() + 12 (JSCRuntime.cpp:383)
7 MY_APP_NAME 0x00000001046d88f0 __release_shared + 40 (shared_ptr.h:177)
8 MY_APP_NAME 0x00000001046d88f0 __release_shared + 40 (shared_ptr.h:219)
9 MY_APP_NAME 0x00000001046d88f0 std::__1::shared_ptrfacebook::react::CallInvoker::~shared_ptr() + 64 (shared_ptr.h:959)
10 MY_APP_NAME 0x000000010488cea4 ~shared_ptr + 4 (shared_ptr.h:957)
11 MY_APP_NAME 0x000000010488cea4 facebook::react::JSIExecutor::~JSIExecutor() + 268 (JSIExecutor.h:71)
12 MY_APP_NAME 0x000000010488cd90 ~JSIExecutor + 4 (JSIExecutor.h:71)
13 MY_APP_NAME 0x000000010488cd90 facebook::react::JSIExecutor::~JSIExecutor() + 12 (JSIExecutor.h:71)
14 MY_APP_NAME 0x00000001047c9d64 operator() + 20 (function.h:505)
15 MY_APP_NAME 0x00000001047c9d64 operator() + 20 (function.h:1182)
16 MY_APP_NAME 0x00000001047c9d64 facebook::react::tryAndReturnError(std::__1::function<void ()> const&) + 32 (RCTCxxUtils.mm:74)
17 MY_APP_NAME 0x00000001047d61ec facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&) + 24 (RCTMessageThread.mm:69)
18 MY_APP_NAME 0x00000001047d694c operator() + 20 (function.h:505)
19 MY_APP_NAME 0x00000001047d694c operator() + 20 (function.h:1182)
20 MY_APP_NAME 0x00000001047d694c operator() + 24 (RCTMessageThread.mm:61)
21 MY_APP_NAME 0x00000001047d694c __invoke<(lambda at /Users/expo/workingdir/build/node_modules/react-native/React/CxxBridge/RCTMessageThread.mm:60:12) &> + 24 (type_traits:3918)
22 MY_APP_NAME 0x00000001047d694c __call<(lambda at /Users/expo/workingdir/build/node_modules/react-native/React/CxxBridge/RCTMessageThread.mm:60:12) &> + 24 (invoke.h:61)
23 MY_APP_NAME 0x00000001047d694c operator() + 24 (function.h:178)
24 MY_APP_NAME 0x00000001047d694c std::__1::__function::__func<facebook::react::RCTMessageThread::runSync(std::__1::function<void ()>)::$_0, std::__1::allocator<facebook::react::RCTMessageThread::runSync(std::__1::function<void ()>… + 40 (function.h:352)
25 MY_APP_NAME 0x00000001047d5fa0 operator() + 20 (function.h:505)
26 MY_APP_NAME 0x00000001047d5fa0 operator() + 20 (function.h:1182)
27 MY_APP_NAME 0x00000001047d5fa0 invocation function for block in facebook::react::RCTMessageThread::runAsync(std::__1::function<void ()>) + 44 (RCTMessageThread.mm:45)
28 CoreFoundation 0x00000001a94ab924 CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 28 (CFRunLoop.c:1822)
29 CoreFoundation 0x00000001a95140ac __CFRunLoopDoBlocks + 368 (CFRunLoop.c:1864)
30 CoreFoundation 0x00000001a94e4508 __CFRunLoopRun + 2452 (CFRunLoop.c:3218)
31 CoreFoundation 0x00000001a94e91e4 CFRunLoopRunSpecific + 612 (CFRunLoop.c:3390)
32 MY_APP_NAME 0x00000001047bf398 +[RCTCxxBridge runRunLoop] + 264 (RCTCxxBridge.mm:378)
33 Foundation 0x00000001a3912ce8 NSThread__start + 716 (NSThread.m:968)
34 libsystem_pthread.dylib 0x00000001f5d916cc _pthread_start + 148 (pthread.c:893)
35 libsystem_pthread.dylib 0x00000001f5d90ba4 thread_start + 8
…
Expo: 45
Workflow: bare
eas-cli: 2.5.1
During search I tried to replace a lot of code in the AppDelegate.mm I found for this problem. Also from a freshly created and ejected Expo 45 example project.
When replacing almost the entire code from the App.tsx with a simple Text it works.
Furthermore, expo run:ios and npx expo start --no-dev --minify have also no problems.
I hope some of you have an idea how to solve this. I’m stuck on this Issue for some time now. If you need additional information, ask in the comments.
The problem was solved by enabling hermes in the Podfile with :hermes_enabled => true

Flutter Application crashes on ios when changing tab of DefaultTabBarController

MY application consist of both bottom and upper tabs, I am calling a network request on each tab but sometimes it crash application on iOS and don't know the reason for this.
Below are logs i got on crashlytics.
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x199a9b180 __exceptionPreprocess
1 libobjc.A.dylib 0x198c739f8 objc_exception_throw
2 CoreFoundation 0x1999b488c +[_CFXNotificationTokenRegistration keyCallbacks]
3 Foundation 0x19a478b38 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4 Flutter 0x1014953ec (Missing)
5 Runner 0x101062c30 +[GeneratedPluginRegistrant registerWithRegistry:] + 88 (GeneratedPluginRegistrant.m:88)
6 flutter_downloader 0x101f77404 (Missing)
7 flutter_downloader 0x101f7a850 (Missing)
8 flutter_downloader 0x101f7d218 (Missing)
9 Flutter 0x101517768 (Missing)
10 Flutter 0x1014b2240 (Missing)
11 Flutter 0x101508398 (Missing)
12 Flutter 0x1014c1fd0 (Missing)
13 Flutter 0x1014c3c48 (Missing)
14 CoreFoundation 0x199a2d554 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
15 CoreFoundation 0x199a2d284 __CFRunLoopDoTimer
16 CoreFoundation 0x199a2cab8 __CFRunLoopDoTimers
17 CoreFoundation 0x199a27a08 __CFRunLoopRun
18 CoreFoundation 0x199a26fb4 CFRunLoopRunSpecific
19 GraphicsServices 0x19bc2879c GSEventRunModal
20 UIKitCore 0x1c6288c38 UIApplicationMain
21 Runner 0x1010633bc main + 8 (AppDelegate.swift:8)
22 libdyld.dylib 0x1994ea8e0 start
Crashed: com.twitter.crashlytics.ios.exception
0 Runner 0x10107cc20 CLSProcessRecordAllThreads + 4308732960
1 Runner 0x10107d008 CLSProcessRecordAllThreads + 4308733960
2 Runner 0x10106c874 CLSHandler + 4308666484
3 Runner 0x10107b218 __CLSExceptionRecord_block_invoke + 4308726296
4 libdispatch.dylib 0x1994d97d4 _dispatch_client_callout + 16
5 libdispatch.dylib 0x199487c1c _dispatch_lane_barrier_sync_invoke_and_complete + 56
6 Runner 0x10107ac84 CLSExceptionRecord + 4308724868
7 Runner 0x10107aab0 CLSExceptionRecordNSException + 4308724400
8 Runner 0x10107a6a4 CLSTerminateHandler() + 4308723364
9 libc++abi.dylib 0x198c68838 std::__terminate(void (*)()) + 16
10 libc++abi.dylib 0x198c68434 __cxa_rethrow + 144
11 libobjc.A.dylib 0x198c73bc8 objc_exception_rethrow + 44
12 CoreFoundation 0x199a27020 CFRunLoopRunSpecific + 544
13 GraphicsServices 0x19bc2879c GSEventRunModal + 104
14 UIKitCore 0x1c6288c38 UIApplicationMain + 212
15 Runner 0x1010633bc main + 8 (AppDelegate.swift:8)
16 libdyld.dylib 0x1994ea8e0 start + 4
I am stuck at this and couldn't find any reason or solution.
Thanks in advance
What version of crashlytics are you running? If you are running iOS 13 you should upgrade to 3.14.0. as it will give you better detailed information about the crash.

OpenGL rendering crash during Flutter app startup on IOS

I have an app developed in Flutter, I track its crashes by Firebase Crashlytics.
According to it in 99% of the time it is crash free, but during 1% of the sessions on IOS I have a strange crash at startup of the app.
OpenGL rendering while app in background state
keyboard_arrow_up
Crashed: io.flutter.1.gpu
0 libGPUSupportMercury.dylib 0x2374b2fe4 gpus_ReturnNotPermittedKillClient + 12
1 AGXGLDriver 0x23b9fcec8 gldUpdateDispatch + 7184
2 libGPUSupportMercury.dylib 0x2374b3fac gpusSubmitDataBuffers + 176
3 AGXGLDriver 0x23b9fe3f4 gldUpdateDispatch + 12604
4 GLEngine 0x23cb95234 gliPresentViewES_Exec + 184
5 OpenGLES 0x21e8ddaa4 -[EAGLContext presentRenderbuffer:] + 80
6 Flutter 0x100a54e84 (Missing)
7 Flutter 0x100da8e18 (Missing)
8 Flutter 0x100aad2d8 (Missing)
9 Flutter 0x100a9dcf0 (Missing)
10 Flutter 0x100a9e15c (Missing)
11 Flutter 0x100a9e868 (Missing)
12 Flutter 0x100a9dfe4 (Missing)
13 Flutter 0x100aa2d94 (Missing)
14 Flutter 0x100a63098 (Missing)
15 Flutter 0x100a6448c (Missing)
16 CoreFoundation 0x21b66a8f4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
17 CoreFoundation 0x21b66a624 __CFRunLoopDoTimer + 864
18 CoreFoundation 0x21b669e58 __CFRunLoopDoTimers + 248
19 CoreFoundation 0x21b664da8 __CFRunLoopRun + 1844
20 CoreFoundation 0x21b664354 CFRunLoopRunSpecific + 436
21 Flutter 0x100a64318 (Missing)
22 Flutter 0x100a63be8 (Missing)
23 libsystem_pthread.dylib 0x21b2f82c0 _pthread_body + 128
24 libsystem_pthread.dylib 0x21b2f8220 _pthread_start + 44
25 libsystem_pthread.dylib 0x21b2fbcdc thread_start + 4
Do you have similar experiences? Is there any way to fix it?
Thanks a lot!

Xcode 7.3.1 crashes on MacOS Sierra Beta 5

Note: I have been using Xcode7.x with MacOS Sierra since Beta 1 or 2. It's worked just fine. I haven't touched Xcode 8 on this machine.
Since beta 5, suddenly I can't do anything with Xcode 7. I start it up and open my workspace and as soon as I change the view to another file or project or assets or anything, it crashes with the following error:
Process: Xcode [869]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 7.3.1 (10188.1)
Build Info: IDEFrameworks-10188001000000000~3
App Item ID: 497799835
App External ID: 817226719
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [869]
User ID: 501
Date/Time: 2016-08-11 11:21:13.167 -0700
OS Version: Mac OS X 10.12 (16A286a)
Report Version: 12
Anonymous UUID: BC13DBAB-4D04-3E83-CF4A-4F1FFB581BCE
Time Awake Since Boot: 250 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000020
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x20:
-->
__TEXT 000000010ce99000-000000010ce9d000 [ 16K] r-x/rwx SM=COW /Applications/Xcode.app/Contents/MacOS/Xcode
Application Specific Information:
ProductBuildVersion: 7D1014
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff8ce08a31 objc_retain + 33
1 com.apple.dt.DVTKit 0x000000010d73838a __38-[DVTSourceTextView setTextContainer:]_block_invoke + 28
2 com.apple.dt.DVTFoundation 0x000000010d0e5e88 __95-[NSObject(DVTObservingConvenience) _dvt_newObserverForKeyPath:options:owner:withHandlerBlock:]_block_invoke + 91
3 com.apple.dt.DVTFoundation 0x000000010d0e4d2e __73-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:]_block_invoke.195 + 83
4 com.apple.dt.DVTFoundation 0x000000010d00b911 DVTInvokeWithStrongOwnership + 75
5 com.apple.dt.DVTFoundation 0x000000010d0e48c6 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] + 336
6 com.apple.Foundation 0x00007fff7a0e9dbd NSKeyValueNotifyObserver + 350
7 com.apple.Foundation 0x00007fff7a0e9654 NSKeyValueDidChange + 486
8 com.apple.Foundation 0x00007fff7a2282d7 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:usingBlock:] + 944
9 com.apple.Foundation 0x00007fff7a0ad3c9 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 60
10 com.apple.Foundation 0x00007fff7a115c3b _NSSetObjectValueAndNotify + 261
11 com.apple.CoreFoundation 0x00007fff786cfde7 -[NSArray makeObjectsPerformSelector:withObject:] + 279
12 com.apple.UIFoundation 0x00007fff8ac9282b -[NSLayoutManager setTextStorage:] + 912
13 com.apple.dt.DVTKit 0x000000010d6ad401 -[DVTFoldingLayoutManager setTextStorage:] + 154
14 com.apple.UIFoundation 0x00007fff8ace6515 -[NSTextStorage dealloc] + 117
15 com.apple.dt.DVTKit 0x000000010d64647e -[DVTTextStorage dealloc] + 911
16 com.apple.Foundation 0x00007fff7a11dcbd NSKVODeallocate + 94
17 com.apple.AppKit 0x00007fff76627281 -[NSTextView dealloc] + 813
18 com.apple.dt.DVTKit 0x000000010d803030 -[DVTCompletingTextView dealloc] + 120
19 com.apple.AppKit 0x00007fff76427a96 -[NSTextView release] + 464
20 libsystem_blocks.dylib 0x00007fff8d728952 _Block_release + 102
21 libsystem_blocks.dylib 0x00007fff8d728952 _Block_release + 102
22 libdispatch.dylib 0x00007fff8d6d9c6f _dispatch_source_handler_dispose + 23
23 libdispatch.dylib 0x00007fff8d6c9da3 _dispatch_source_cancel_callout + 90
24 libdispatch.dylib 0x00007fff8d6c0a6e _dispatch_source_invoke + 1512
25 libdispatch.dylib 0x00007fff8d6cba0f _dispatch_main_queue_callback_4CF + 505
26 com.apple.CoreFoundation 0x00007fff7870bd39 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
27 com.apple.CoreFoundation 0x00007fff786cd15d __CFRunLoopRun + 2205
28 com.apple.CoreFoundation 0x00007fff786cc664 CFRunLoopRunSpecific + 420
29 com.apple.HIToolbox 0x00007fff77c6ef7c RunCurrentEventLoopInMode + 240
30 com.apple.HIToolbox 0x00007fff77c6edb1 ReceiveNextEventCommon + 432
31 com.apple.HIToolbox 0x00007fff77c6ebe6 _BlockUntilNextEventMatchingListInModeWithFilter + 71
32 com.apple.AppKit 0x00007fff76365c41 _DPSNextEvent + 1093
33 com.apple.AppKit 0x00007fff76a75693 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1637
34 com.apple.dt.DVTKit 0x000000010d601439 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 396
35 com.apple.AppKit 0x00007fff7635a610 -[NSApplication run] + 926
36 com.apple.AppKit 0x00007fff763250e2 NSApplicationMain + 1237
37 com.apple.dt.Xcode 0x000000010ce9a39b 0x10ce99000 + 5019
38 libdyld.dylib 0x00007fff8d6f4255 start + 1
Anyone else come across this in beta 5?
From macOS Sierra beta 5 release notes:
Xcode
Xcode 7.3.1 is not compatible with macOS Sierra.
Workaround: Use Xcode 8.0 beta or later when running on macOS Sierra.
It should be possible to use swift 2.3 in xcode 8. From beta 6 notes:
For developers on macOS Sierra it is recommended that you move to Xcode 8. You can continue to develop with the Swift 2.x release with the included Swift 2.3 compiler until you are ready to migrate to Swift 3. Xcode 7.3.1 is not supported on macOS Sierra. (27224895)
With a stable Mac OS X Sierra (v10.12), Xcode 7.3.1 started to work on third launch. Everything seems to work fine, no problems with emulator or anything!
Don't lose hope if Xcode doesn't work on the first launch :)
I've been able to recreate this same particular issue (DVTSourceTextView setTextContainer) in Mac OS Sierra (non beta) for xcode 7.3.1. Oddly, I found it somehow attributed to my Cocoapods implementation. I was able to open up the project but not the workspace. I deleted my workspace and Pods directory then did a pod install to redo it.
The issue was fixed then. Lost a couple days of work researching, hoping this helps someone.

Xcode 5.0.2 crashes on load

I'm using Xcode 5.0.2 on os x mavericks 10.9.1 and i'm facing a strange problem as Xcode keeps loading for about 30 secs and then crashes when i opened it and do any mouse event i tried to unable the Source control as suggested in this post answer but with no mean, the problem report is as follows:
Process: Xcode [684]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0.2 (3335.32)
Build Info: IDEApplication-3335032000000000~4
Code Type: X86-64 (Native)
Parent Process: launchd [142]
Responsible: Xcode [684]
User ID: 502
Date/Time: 2014-01-19 16:18:32.647 +0200
OS Version: Mac OS X 10.9.1 (13B42)
Report Version: 11
Anonymous UUID: 04B4E5B4-74DF-8C99-FE04-776F426F8551
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Application Specific Information:
ProductBuildVersion: 5A3005
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff8d33f0e6 objc_release + 22
1 libobjc.A.dylib 0x00007fff8d33e65a (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 502
2 com.apple.CoreFoundation 0x00007fff8a716d72 _CFAutoreleasePoolPop + 50
3 com.apple.Foundation 0x00007fff8da0c6ab -[__NSOperationInternal _start:] + 913
4 com.apple.Foundation 0x00007fff8da0c23b __NSOQSchedule_f + 64
5 libdispatch.dylib 0x00007fff94c772ad _dispatch_client_callout + 8
6 libdispatch.dylib 0x00007fff94c7ef03 _dispatch_main_queue_callback_4CF + 333
7 com.apple.CoreFoundation 0x00007fff8a793839 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
8 com.apple.CoreFoundation 0x00007fff8a74eb14 __CFRunLoopRun + 1636
9 com.apple.CoreFoundation 0x00007fff8a74e275 CFRunLoopRunSpecific + 309
10 com.apple.HIToolbox 0x00007fff9518cf0d RunCurrentEventLoopInMode + 226
11 com.apple.HIToolbox 0x00007fff9518ccb7 ReceiveNextEventCommon + 479
12 com.apple.HIToolbox 0x00007fff9518cabc _BlockUntilNextEventMatchingListInModeWithFilter + 65
13 com.apple.AppKit 0x00007fff8eda828e _DPSNextEvent + 1434
14 com.apple.AppKit 0x00007fff8eda78db -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
15 com.apple.AppKit 0x00007fff8ed9b9cc -[NSApplication run] + 553
16 com.apple.AppKit 0x00007fff8ed86803 NSApplicationMain + 940
17 libdyld.dylib 0x00007fff9345a5fd start + 1
I'm working on a Mac mini mid 2010 with processor 2.4 Ghz Intel Core 2 Duo, Memory 8 GB 1067 MHz DDR3, Does anyone know how to fix this and why this is happening? thanks in advance.
You might have an autosave problem where Xcode had trouble autosaving the project that keeps crashing. Go to the following location on your Mac:
/Users/YourUsername/Library/Autosave Information
Delete anything in there related to Xcode, such as files named Unsaved Xcode Document.xcworkspace. Restart Xcode and see if that fixes it.
https://discussions.apple.com/message/23991398#23991398

Resources