Rich-text Reply

Installing optimizely sdk for iOS

bluelinecoding 07-31-15
Accepted Solution

Installing optimizely sdk for iOS

Hi, I have followed the steps to install Optimizely for A/B testing. I have added to cocopods, included the header and added the below lines to my appdelegate in the places the docs specified (with my token) and the URL type. [Optimizely startOptimizelyWithAPIToken:@"MY TOKEN' launchOptions:launchOptions]; if([Optimizely handleOpenURL:url]) { return YES; } BUT it crashes straight away with: 10 CoreFoundation 0x0000000107083366 CFRunLoopRunSpecific + 470 11 Foundation 0x0000000104290f92 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 275 12 AppName 0x00000001023797d8 -[Optimizely waitForNetworkWithTimeout:condition:] + 453 13 AppName 0x000000010237953d -[Optimizely waitForNetworkWithTimeout] + 204 14 AppName 0x000000010237897e -[Optimizely startOptimizelyWithToken:launchOptions:experimentsLoadedCallback:] + 1632 15 AppName 0x000000010237423f +[Optimizely startOptimizelyWithAPIToken:launchOptions:experimentsLoadedCallback:] + 169 16 AppName 0x0000000102374189 +[Optimizely startOptimizelyWithAPIToken:launchOptions:] + 51 17 AppName 0x0000000101f5e7c5 -[ApplicationDelegate application:didFinishLaunchingWithOptions:] + 117 Any thoughts?
Pam 08-01-15
 

Re: Installing optimizely sdk for iOS

Hi @bluelinecoding!  Thanks for sending over the crash report.  I'll be following up over e-mail so that we can further dig into this issue looking for information around:

  • How your app is built
  • Other SDKs that you have included in your app

Thanks!

Pam
Optimizely
sagariosdev 03-06-17
 

Re: Installing optimizely sdk for iOS

I have an just installed Optimizely with fabric and I got following crash

[__NSSingleObjectArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]

Fatal Exception: NSRangeException
0 CoreFoundation 0x1115d8d33 (Missing)
1 libobjc.A.dylib 0x11101121e (Missing)
2 CoreFoundation 0x111631c2f (Missing)
3 App 0x10ab82f81 -[Optimizely startOptimizelyWithToken:launchOptions:experimentsLoadedCallback:] (Optimizely.m:1210)
4 App 0x10ab7d445 +[Optimizely startOptimizelyWithAPIToken:launchOptions:experimentsLoadedCallback:] (Optimizely.m:217)
5 App 0x10ab7d38a +[Optimizely startOptimizelyWithAPIToken:launchOptions:] (Optimizely.m:210)
6 App 0x10a66eab5 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:90)
7 UIKit 0x10d47c3c2 (Missing)
8 UIKit 0x10d47dd47 (Missing)
9 UIKit 0x10d4840ed (Missing)
10 UIKit 0x10d48126d (Missing)
11 FrontBoardServices 0x11324f6cb (Missing)
12 FrontBoardServices 0x11324f544 (Missing)
13 FrontBoardServices 0x11324f8cd (Missing)
14 CoreFoundation 0x11157d761 (Missing)
15 CoreFoundation 0x11156298c (Missing)
16 CoreFoundation 0x111561e76 (Missing)
17 CoreFoundation 0x111561884 (Missing)
18 UIKit 0x10d47faea (Missing)
19 UIKit 0x10d485c68 (Missing)
20 App 0x10a74d3af main (main.m:14)
21 CoreAudio 0x1135be68d (Missing)
22 ??? 0x1 (Missing)
sagariosdev 03-07-17
 

Re: Installing optimizely sdk for iOS

Hi, I'm just run my app in real device or simulator it crash on initialising Optimezely SDK.
App is running with objective-c and SDK is included using cocoapods
sagariosdev 03-08-17
 

Re: Installing optimizely sdk for iOS

Who has mark this question is solved as problem is still there?
JasonDahlin 03-08-17
 

Re: Installing optimizely sdk for iOS

Hi @sagariosdev.  The OP was @bluelinecoding and his question is resolved.

if the solution to @sagariosdev's issue does not help you, you should post your crash information as a new post so that it receives the attention it deserves.

--Jason Dahlin
Analytics and Testing Guru Smiley Happy
Experimentation Hero