Rich-text Reply

iOS app crashing after adding optimizely.

chaithrhVeeres 11-28-14

iOS app crashing after adding optimizely.

Terminating app due to uncaught exception 'OptimizelyInstall', reason: 'Invalid Optimizely Token'

*** First throw call stack:

(

0   CoreFoundation                      0x000000010b0f5f35 __exceptionPreprocess + 165

1   libobjc.A.dylib                     0x000000010ad8ebb7 objc_exception_throw + 45

2   ABTesting                           0x000000010878a9c7 -[Optimizely registerExisitingViews] + 0

3   ABTesting                           0x000000010878adbd -[Optimizely startOptimizelyWithToken:launchOptions:experimentsLoadedCallback:] + 209

4   ABTesting                           0x000000010878a2a9 +[Optimizely startOptimizelyWithAPIToken:launchOptions:experimentsLoadedCallback:] + 122

5   ABTesting                           0x000000010878a222 +[Optimizely startOptimizelyWithAPIToken:launchOptions:] + 51

6   ABTesting                           0x0000000108767d1b -[AppDelegate application:didFinishLaunchingWithOptions:] + 139

7   UIKit                               0x0000000109ad1475 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 234

8   UIKit                               0x0000000109ad1fbc -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2463

9   UIKit                               0x0000000109ad4d2c -[UIApplication _runWithMainScene:transitionContext:completion:] + 1350

10  UIKit                               0x0000000109ad3bf2 -[UIApplication workspaceDidEndTransaction:] + 179

11  FrontBoardServices                  0x000000010ec6e2a3 __31-[FBSSerialQueue performAsync:]_block_invoke + 16

12  CoreFoundation                      0x000000010b02b53c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12

13  CoreFoundation                      0x000000010b021285 __CFRunLoopDoBlocks + 341

14  CoreFoundation                      0x000000010b021045 __CFRunLoopRun + 2389

15  CoreFoundation                      0x000000010b020486 CFRunLoopRunSpecific + 470

16  UIKit                               0x0000000109ad3669 -[UIApplication _run] + 413

17  UIKit                               0x0000000109ad6420 UIApplicationMain + 1282

18  ABTesting                           0x0000000108768123 main + 115

19  libdyld.dylib                       0x000000010b962145 start + 1

20  ???                                 0x0000000000000001 0x0 + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException

 

how to resolve this issue? im new to this ABTesting 

MartijnSch 11-28-14
 

Re: iOS app crashing after adding optimizely.

Have you followed the steps listed here: http://developers.optimizely.com/ios/ ? It seems like that you've entered the wrong API token or that's it's still completely missing as you get such an error at the top of your log.

Re: iOS app crashing after adding optimizely.

Thanks for your help, @MartijnSch, I think you're spot on.
 
@chaithrhVeeres, could you try that out and let us know if Martijn's proposed solution worked for you. I also sent you an email via our support channel if you'd like to take the troubleshooting offline. Looking forward to helping get everything running smoothly for you!