React Native - NSInvalidArgumentException - ios

I am using react-native-piechart to render a single chart. I have added ART.xcodeprojto my Libraries. I also added libART.a to my Build Phases > Link Binary With Libraries.
When I render the chart, my application crashes. When running react-native log-ios I get the following stack trace
Apr 13 16:37:30 Dan-MBP mycpd[52875] <Error>: -[__NSArrayI length]: unrecognized selector sent to instance 0x6080000e8b80
Apr 13 16:37:30 Dan-MBP mycpd[52875] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI length]: unrecognized selector sent to instance 0x6080000e8b80'
*** First throw call stack:
(
0 CoreFoundation 0x0000000105159d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000103fdd21e objc_exception_throw + 48
2 CoreFoundation 0x00000001051c9f04 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00000001050df005 ___forwarding___ + 1013
4 CoreFoundation 0x00000001050deb88 _CF_forwarding_prep_0 + 120
5 mycpd 0x0000000100cd0f77 -[RNSVGPathParser initWithPathString:] + 295
6 mycpd 0x0000000100cce0a0 +[RCTConvert(RNSVG) CGPath:] + 80
7 mycpd 0x0000000100c1ac0a __49-[RCTComponentData propBlockForKey:inDictionary:]_block_invoke.223 + 282
8 mycpd 0x0000000100c1b840 __49-[RCTComponentData propBlockForKey:inDictionary:]_block_invoke.259 + 720
9 mycpd 0x0000000100c1bbb8 __49-[RCTComponentData propBlockForKey:inDictionary:]_block_invoke_2.272 + 40
10 mycpd 0x0000000100bb6dd3 RCTPerformBlockWithLogFunction + 483
11 mycpd 0x0000000100bb6f8f RCTPerformBlockWithLogPrefix + 239
12 mycpd 0x0000000100c1bb1d __49-[RCTComponentData propBlockForKey:inDictionary:]_block_invoke.267 + 445
13 mycpd 0x0000000100c1c015 __37-[RCTComponentData setProps:forView:]_block_invoke + 181
14 CoreFoundation 0x00000001050ea2a5 __65-[__NSDictionaryI enumerateKeysAndObjectsWithOptions:usingBlock:]_block_invoke + 85
15 CoreFoundation 0x00000001050ea1ba -[__NSDictionaryI enumerateKeysAndObjectsWithOptions:usingBlock:] + 250
16 mycpd 0x0000000100c1be7f -[RCTComponentData setProps:forView:] + 223
17 mycpd 0x0000000100c01f02 __50-[RCTUIManager createView:viewName:rootTag:props:]_block_invoke + 162
18 libdispatch.dylib 0x0000000107804808 _dispatch_call_block_and_release + 12
19 libdispatch.dylib 0x000000010782612e _dispatch_client_callout + 8
20 libdispatch.dylib 0x000000010780d4fb _dispatch_main_queue_callback_4CF + 1054
21 CoreFoundation 0x000000010511de49 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
22 CoreFoundation 0x00000001050e337d __CFRunLoopRun + 2205
23 CoreFoundation 0x00000001050e2884 CFRunLoopRunSpecific + 420
24 GraphicsServices 0x0000000109cd2a6f GSEventRunModal + 161
25 UIKit 0x0000000102161c68 UIApplicationMain + 159
26 mycpd 0x0000000100a08ddf main + 111
27 libdyld.dylib 0x000000010786f68d start + 1
28 ??? 0x0000000000000001 0x0 + 1
)
Apr 13 16:37:30 Dan-MBP SpringBoard[50607] <Error>: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus
Apr 13 16:37:30 Dan-MBP com.apple.CoreSimulator.SimDevice.D55EDF21-DD38-4727-9408-2ED7C7D3E93F.launchd_sim[50590] (UIKitApplication:com.thinkdigital.mycpd[0xb38b][52875]) <Notice>: Service exited due to Abort trap: 6
Apr 13 16:37:30 Dan-MBP backboardd[50608] <Error>: [Common] Unable to get short BSD proc info for 52875: No such process
Apr 13 16:37:30 Dan-MBP backboardd[50608] <Error>: [Common] Unable to get proc info for 52875: No such process
Apr 13 16:37:30 Dan-MBP assertiond[50611] <Warning>: notify_suspend_pid() failed with error 7
What I have tried
Removing the package via yarn, and removing ART.xcodeproj and libART.a from Xcode and then reinstalling.
I have tried multiple chart libraries - this problem persists.
I created a fresh project to test the libraries were not causing the issue, they worked absolutely fine.

I had the same issue when using react-native-progress. A similar crash was reported here
To fix I removed references to react-native-svg, then ran:
npm install react-native-svg --save
react-native link react-native-svg

Related

Crash when set CAMetalLayer.presentsWithTransaction=true in background thread

When set metalLayer.presentsWithTransaction = true, and when I call nextDrawable.present() in bg thread (our rendering thread is not main thread), the app sometimes will crash with:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread.'
Expected: App will not crash....The rendering should be ok.
Stack trace:
Fatal Exception: NSInternalInconsistencyException
Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread.
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x1aa30a5ac __exceptionPreprocess
1 libobjc.A.dylib 0x1be38442c objc_exception_throw
2 CoreAutoLayout 0x1be60ad4c -[NSISEngine tryToOptimizeReturningMutuallyExclusiveConstraints]
3 CoreAutoLayout 0x1be60aa20 -[NSISEngine _optimizeWithoutRebuilding]
4 CoreAutoLayout 0x1be60a4f8 -[NSISEngine optimize]
5 CoreAutoLayout 0x1be605b34 -[NSISEngine performPendingChangeNotifications]
6 UIKitCore 0x1ad13eef4 -[UIView(Hierarchy) layoutSubviews]
7 UIKitCore 0x1ad151dd4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
8 QuartzCore 0x1ad65b280 -[CALayer layoutSublayers]
9 QuartzCore 0x1ad65b73c CA::Layer::layout_if_needed(CA::Transaction*)
10 QuartzCore 0x1ad66fb64 CA::Layer::layout_and_display_if_needed(CA::Transaction*)
11 QuartzCore 0x1ad5b7114 CA::Context::commit_transaction(CA::Transaction*, double, double*)
12 QuartzCore 0x1ad5e2418 CA::Transaction::commit()
13 Flutter 0x1032e4778 (Missing)
14 Flutter 0x1035b85ec (Missing)
15 Flutter 0x1035b9094 (Missing)
16 Flutter 0x1035b88b0 (Missing)
17 Flutter 0x1035bedb0 (Missing)
18 Flutter 0x1032ef46c (Missing)
19 Flutter 0x1032f13e0 (Missing)
20 CoreFoundation 0x1aa288050 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
21 CoreFoundation 0x1aa287c50 __CFRunLoopDoTimer
22 CoreFoundation 0x1aa2870c4 __CFRunLoopDoTimers
23 CoreFoundation 0x1aa281178 __CFRunLoopRun
24 CoreFoundation 0x1aa2804bc CFRunLoopRunSpecific
25 Flutter 0x1032f12bc (Missing)
26 Flutter 0x1032f0c44 (Missing)
27 libsystem_pthread.dylib 0x1f185aca8 _pthread_start
28 libsystem_pthread.dylib 0x1f1863788 thread_start
Any solution for this?

Flutter IOS Firebase Crashlytics Fatal Exception: NSInternalInconsistencyException

I am not sure what causes this error? I've been trying to work it out for days. Any suggestions?
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x186a7186c __exceptionPreprocess
1 libobjc.A.dylib 0x19ba8dc50 objc_exception_throw
2 CoreFoundation 0x186977000 -[CFPrefsSearchListSource addManagedSourceForIdentifier:user:]
3 Foundation 0x187d0b91c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4 Flutter 0x1051f8868 (Missing)
5 Flutter 0x1051f560c (Missing)
6 Flutter 0x104ef2028 (Missing)
7 Flutter 0x10520e540 (Missing)
8 Flutter 0x1051aa7a8 (Missing)
9 Flutter 0x1051ac608 (Missing)
10 CoreFoundation 0x1869edfa0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
11 CoreFoundation 0x1869edba0 __CFRunLoopDoTimer
12 CoreFoundation 0x1869ecffc __CFRunLoopDoTimers
13 CoreFoundation 0x1869e6ee4 __CFRunLoopRun
14 CoreFoundation 0x1869e621c CFRunLoopRunSpecific
15 GraphicsServices 0x19e5b3784 GSEventRunModal
16 UIKitCore 0x189426ee8 -[UIApplication _run]
17 UIKitCore 0x18942c75c UIApplicationMain
18 MYAPP 0x1005b1b0c main + 7 (AppDelegate.swift:7)
19 libdyld.dylib 0x1866a66b0 start

Xcode archive error: Command actool failed with exit code 255

I got this error when archive app after upgrade to Xcode 9.3.
Here are some investigate result:
Archive existing project, compile xcassets error
Remove all image in xcassets, archive success
Create new project and add image to xcassets, archive error
Do anyone has solution for this error? Thank you so much.
Error logs
CompileAssetCatalog /Users/nhuanvd/Library/Developer/Xcode/DerivedData/hello-ahgsmtroieexmqahdahktbcsrozj/Build/Intermediates.noindex/ArchiveIntermediates/hello/InstallationBuildProductsLocation/Applications/hello.app hello/Assets.xcassets
cd /Users/nhuanvd/Desktop/hello
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/nhuanvd/Library/Developer/Xcode/DerivedData/hello-ahgsmtroieexmqahdahktbcsrozj/Build/Intermediates.noindex/ArchiveIntermediates/hello/IntermediateBuildFilesPath/hello.build/Release-iphoneos/hello.build/assetcatalog_dependencies --output-partial-info-plist /Users/nhuanvd/Library/Developer/Xcode/DerivedData/hello-ahgsmtroieexmqahdahktbcsrozj/Build/Intermediates.noindex/ArchiveIntermediates/hello/IntermediateBuildFilesPath/hello.build/Release-iphoneos/hello.build/assetcatalog_generated_info.plist --app-icon AppIcon --compress-pngs --enable-on-demand-resources YES --sticker-pack-identifier-prefix com.nhuanvd.hello.sticker-pack. --target-device iphone --target-device ipad --minimum-deployment-target 11.3 --platform iphoneos --product-type com.apple.product-type.application --compile /Users/nhuanvd/Library/Developer/Xcode/DerivedData/hello-ahgsmtroieexmqahdahktbcsrozj/Build/Intermediates.noindex/ArchiveIntermediates/hello/InstallationBuildProductsLocation/Applications/hello.app /Users/nhuanvd/Desktop/hello/hello/Assets.xcassets
Command /Applications/Xcode.app/Contents/Developer/usr/bin/actool failed with exit code 255
Some time, i get more error log with stack trace.
2018-05-14 05:16:42.164 IBCocoaTouchImageCatalogTool[17346:326934] *** NSForwarding: warning: selector (0x1170e3c00) for message '' does not match selector known to Objective C runtime (0x7f86da381f60)-- abort
2018-05-14 05:16:50.258 ibtoold[16210:319259] *** Terminating app due to uncaught exception 'IBPlatformToolFailureException', reason: 'The tool closed the connection
Last command:
_ON_QUEUE_sendMessage:toChannelReturningError:during:
Backtrace of last command:
0 -[IBAbstractPlatformToolProxy _ON_QUEUE_sendMessage:toChannelReturningError:during:] (in IDEInterfaceBuilderKit)
1 __74-[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:]_block_invoke (in IDEInterfaceBuilderKit)
2 _dispatch_client_callout (in libdispatch.dylib)
3 _dispatch_queue_barrier_sync_invoke_and_complete (in libdispatch.dylib)
4 DVTDispatchSync (in DVTFoundation)
5 -[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:] (in IDEInterfaceBuilderKit)
6 -[IBCocoaTouchImageCatalogToolProxy compileItemsWithCatalogRelativeIdentifierPaths:tagSolutionSpace:andStickerPacksWithCatalogRelativeIdentifierPaths:options:] (in IDEInterfaceBuilderCocoaTouchIntegration)
7 -[IBAbstractCocoaTouchPlatformAdapter compileCARItems:tagSolutionSpace:options:queue:completionHandler:] (in IDEInterfaceBuilderCocoaTouchIntegration)
8 __84-[IBICAbstractPlatformAdapter compileSelectedItems:options:queue:completionHandler:]_block_invoke (in IDEInterfaceBuilderKit)
9 __DVTDispatchAsync_block_invoke (in DVTFoundation)
10 _dispatch_call_block_and_release (in libdispatch.dylib)
11 _dispatch_client_callout (in libdispatch.dylib)
12 _dispatch_main_queue_callback_4CF (in libdispatch.dylib)
13 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation)
14 __CFRunLoopRun (in CoreFoundation)
15 CFRunLoopRunSpecific (in CoreFoundation)
16 -[NSRunLoop(DVTNSRunLoopAdditions) dvt_spinRunLoopInMode:whileBlockExecutesConcurrently:] (in DVTFoundation)
17 -[NSRunLoop(DVTNSRunLoopAdditions) dvt_spinRunLoopInMode:waitingForSemaphore:] (in DVTFoundation)
18 -[IBCLIImageCatalogToolPersona compileCatalogCollection:withPlatformAdapter:arguments:outputDictionary:] (in ibtoold)
19 -[IBCLIImageCatalogToolPersona invokeArguments:outputDictionary:] (in ibtoold)
20 -[IBCLIImageCatalogToolPersona runSingleInvocation:outputtingToFileHandle:andVerifyingEnvironment:] (in ibtoold)
21 IBCLIServerRunSingleInvocation (in ibtoold)
22 __IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess_block_invoke_2 (in ibtoold)
23 __IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess_block_invoke (in ibtoold)
24 -[IBCLIErrorForwarder forwardErrorOutputToDescriptor:whileInvokingBlock:] (in ibtoold)
25 IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess (in ibtoold)
26 main (in ibtoold)
27 start (in libdyld.dylib)
'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff3b64a6bb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff62d56942 objc_exception_throw + 48
2 CoreFoundation 0x00007fff3b64a609 -[NSException raise] + 9
3 IDEInterfaceBuilderKit 0x000000010b1e260b -[IBAbstractPlatformToolProxy _errorByAddingAdditionalCrashInformationToError:orRaiseIfNeededOnFailure:shouldRaiseOnFailures:waitForCrashLog:] + 1509
4 IDEInterfaceBuilderKit 0x000000010b1e1ffc -[IBAbstractPlatformToolProxy errorByAddingAdditionalCrashInformationToError:orRaiseIfNeededOnFailure:] + 94
5 IDEInterfaceBuilderKit 0x000000010b1e3475 -[IBAbstractPlatformToolProxy _ON_QUEUE_sendMessage:toChannelReturningError:during:] + 221
6 IDEInterfaceBuilderKit 0x000000010b1e32b0 __74-[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:]_block_invoke + 38
7 libdispatch.dylib 0x00007fff63933e08 _dispatch_client_callout + 8
8 libdispatch.dylib 0x00007fff63947231 _dispatch_queue_barrier_sync_invoke_and_complete + 60
9 DVTFoundation 0x000000010bc07ae7 DVTDispatchSync + 208
10 IDEInterfaceBuilderKit 0x000000010b1e31d5 -[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:] + 245
11 IDEInterfaceBuilderCocoaTouchIntegration 0x0000000119df6b6b -[IBCocoaTouchImageCatalogToolProxy compileItemsWithCatalogRelativeIdentifierPaths:tagSolutionSpace:andStickerPacksWithCatalogRelativeIdentifierPaths:options:] + 220
12 IDEInterfaceBuilderCocoaTouchIntegration 0x0000000119dddbc7 -[IBAbstractCocoaTouchPlatformAdapter compileCARItems:tagSolutionSpace:options:queue:completionHandler:] + 940
13 IDEInterfaceBuilderKit 0x000000010b137a80 __84-[IBICAbstractPlatformAdapter compileSelectedItems:options:queue:completionHandler:]_block_invoke + 228
14 DVTFoundation 0x000000010bc07b68 __DVTDispatchAsync_block_invoke + 97
15 libdispatch.dylib 0x00007fff6393b64a _dispatch_call_block_and_release + 12
16 libdispatch.dylib 0x00007fff63933e08 _dispatch_client_callout + 8
17 libdispatch.dylib 0x00007fff6393f3e5 _dispatch_main_queue_callback_4CF + 1148
18 CoreFoundation 0x00007fff3b603ea9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
19 CoreFoundation 0x00007fff3b5c66ba __CFRunLoopRun + 2586
20 CoreFoundation 0x00007fff3b5c5a07 CFRunLoopRunSpecific + 487
21 DVTFoundation 0x000000010baab6f2 -[NSRunLoop(DVTNSRunLoopAdditions) dvt_spinRunLoopInMode:whileBlockExecutesConcurrently:] + 457
22 DVTFoundation 0x000000010baabb9a -[NSRunLoop(DVTNSRunLoopAdditions) dvt_spinRunLoopInMode:waitingForSemaphore:] + 128
23 ibtoold 0x000000010aeb2f37 -[IBCLIImageCatalogToolPersona compileCatalogCollection:withPlatformAdapter:arguments:outputDictionary:] + 1601
24 ibtoold 0x000000010aeb475d -[IBCLIImageCatalogToolPersona invokeArguments:outputDictionary:] + 1756
25 ibtoold 0x000000010aeb4bc6 -[IBCLIImageCatalogToolPersona runSingleInvocation:outputtingToFileHandle:andVerifyingEnvironment:] + 709
26 ibtoold 0x000000010aec21ed IBCLIServerRunSingleInvocation + 520
27 ibtoold 0x000000010aec2849 __IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess_block_invoke_2 + 34
28 ibtoold 0x000000010aec2719 __IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess_block_invoke + 864
29 ibtoold 0x000000010aeb1aef -[IBCLIErrorForwarder forwardErrorOutputToDescriptor:whileInvokingBlock:] + 110
30 ibtoold 0x000000010aec1da5 IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess + 589
31 ibtoold 0x000000010aec0bec main + 2638
32 libdyld.dylib 0x00007fff6396d015 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I fixed issue by upgrading to Xcode 9.3.1. This might be Xcode issue.
I had to select the installed version under Xcode > Preferences > Locations > Command Line Tools as recommended in this thread. It was blank before.
Had same problem with Xcode 9.4. Solved it by reinstalling Xcode.

I can't run my react-native app on ios Xcode

I'm having a real issue with running my react-native ios app. I installed Xcode (version 8.3.3) and all the other basic dependencies needed, all I did was:
react-native init AwesomeProject
cd AwesomeProject
react-native run-ios
And what happens is the AwesomeProject app opens for a second then closes. I also tried running it through xcode and get the same problem, although it is atleast reporting an error of:
2017-09-04 20:38:11.369 [info][tid:main][RCTCxxBridge.mm:188]
Initializing <RCTCxxBridge: 0x6000001a0540> (parent: <RCTBridge: 0x6000000a9a20>, executor: (null))
2017-09-04 20:38:11.390 [warn][tid:main][RCTBridge.m:114] Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2017-09-04 20:38:11.404 [info][tid:main][RCTRootView.m:301] Running application AwesomeProject ({
initialProps = {
};
rootTag = 1;
})
2017-09-04 20:38:11.467 AwesomeProject[10363:1261593] -[NSTaggedPointerString unsignedIntValue]: unrecognized selector sent to instance 0xa383534303930327
2017-09-04 20:38:11.509 AwesomeProject[10363:1261593] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString unsignedIntValue]: unrecognized selector sent to instance 0xa383534303930327'
*** First throw call stack:
(
0 CoreFoundation 0x000000010e4f4b0b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010d3aa141 objc_exception_throw + 48
2 CoreFoundation 0x000000010e564134 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x000000010e47b840 ___forwarding___ + 1024
4 CoreFoundation 0x000000010e47b3b8 _CF_forwarding_prep_0 + 120
5 AwesomeProject 0x000000010c7653f4 -[RCTMultipartStreamReader emitProgress:contentLength:final:callback:] + 244
6 AwesomeProject 0x000000010c765bea -[RCTMultipartStreamReader readAllPartsWithCompletionCallback:progressCallback:] + 1610
7 AwesomeProject 0x000000010c7b551c -[RCTMultipartDataTask URLSession:streamTask:didBecomeInputStream:outputStream:] + 444
8 CFNetwork 0x000000010df54c51 __88-[NSURLSession delegate_streamTask:didBecomeInputStream:outputStream:completionHandler:]_block_invoke + 51
9 Foundation 0x000000010ceb43b7 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
10 Foundation 0x000000010ceb40bb -[NSBlockOperation main] + 101
11 Foundation 0x000000010ceb2877 -[__NSOperationInternal _start:] + 627
12 Foundation 0x000000010ceae5fc __NSOQSchedule_f + 198
13 libdispatch.dylib 0x00000001121d605c _dispatch_client_callout + 8
14 libdispatch.dylib 0x00000001121b494f _dispatch_queue_serial_drain + 221
15 libdispatch.dylib 0x00000001121b5669 _dispatch_queue_invoke + 1084
16 libdispatch.dylib 0x00000001121b7ec4 _dispatch_root_queue_drain + 634
17 libdispatch.dylib 0x00000001121b7bef _dispatch_worker_thread3 + 123
18 libsystem_pthread.dylib 0x000000011256d5a2 _pthread_wqthread + 1299
19 libsystem_pthread.dylib 0x000000011256d07d start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
And I then get brought to this page with the following Thread 8: signal SIGABRT error:
-> 0x112538d42 <+10>: jae 0x112538d4c ; <+20>
I have googled a lot with regards to the NSEXCEPTION yet I still cannot seem to even run my app. Any help would be much appreciated
Apparently there's an issue with react-native 0.48.0.
You can follow the thread below, it should be fixed with 0.48.1.
https://github.com/facebook/react-native/issues/15768
Edit: I can confirm 0.48.1 works fine. Update using:
npm install -g react-native-git-upgrade
react-native-git-upgrade

Firebase Analytics is not available

I did a manually install of the Firebase SDK to my iOS project. Following the instruction from README.md
I included all the files from the Analytics folder:
FirebaseAnalytics.framework
FirebaseInstanceID.framework
GoogleInterchangeUtilities.framework
GoogleSymbolUtilities.framework
GoogleUtilities.framework
And I included "import FirebaseAnalytics" to my AppDelegate. and then I called:
FIRApp.configure()
But Xcode is still telling me this:
*** Terminating app due to uncaught exception 'com.firebase.core', reason: '[FIRApp configure] Firebase Analytics is not available.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000104178d85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000106761deb objc_exception_throw + 48
2 CoreFoundation 0x0000000104178cbd +[NSException raise:format:] + 205
3 helloworld 0x0000000103f17190 -[FIRApp configureCore] + 325
4 helloworld 0x0000000103f16bb1 +[FIRApp addAppToAppDictionary:] + 100
5 helloworld 0x0000000103f162e2 +[FIRApp configureDefaultAppWithOptions:sendingNotifications:] + 268
6 helloworld 0x0000000103f16027 +[FIRApp configure] + 302
7 helloworld 0x0000000103ee9d81 _TFC6mognet11AppDelegate11applicationfTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVs10DictionaryCSo8NSObjectPs9AnyObject____Sb + 97
8 helloworld 0x0000000103ee9ea4 _TToFC6mognet11AppDelegate11applicationfTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVs10DictionaryCSo8NSObjectPs9AnyObject____Sb + 180
9 UIKit 0x00000001051a49ac -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 272
10 UIKit 0x00000001051a5c0d -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3415
11 UIKit 0x00000001051ac568 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1769
12 UIKit 0x00000001051a9714 -[UIApplication workspaceDidEndTransaction:] + 188
13 FrontBoardServices 0x00000001091bd8c8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
14 FrontBoardServices 0x00000001091bd741 -[FBSSerialQueue _performNext] + 178
15 FrontBoardServices 0x00000001091bdaca -[FBSSerialQueue _performNextFromRunLoopSource] + 45
16 CoreFoundation 0x000000010409e301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
17 CoreFoundation 0x000000010409422c __CFRunLoopDoSources0 + 556
18 CoreFoundation 0x00000001040936e3 __CFRunLoopRun + 867
19 CoreFoundation 0x00000001040930f8 CFRunLoopRunSpecific + 488
20 UIKit 0x00000001051a8f21 -[UIApplication _run] + 402
21 UIKit 0x00000001051adf09 UIApplicationMain + 171
22 helloworld 0x0000000103eea832 main + 114
23 libdyld.dylib 0x000000010722592d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
What am I doing wrong here? FYI. I am running Xcode Version 7.3.1 and I have the latest SDK.
Did you add the -ObjC flag in "Other Linking Flags" setting? When I did this in my Objective-C project, the app stopped crashing when trying to load Firebase. I also included all the Firebase files, used the Firebase.h header and [FIRApp configure] to call Firebase.
I am running Xcode 8.

Resources