Xcode Errors in Setup

Asked on June 23, 2017 in Technical.

I am getting stuck on step 3 here:

https://dev.branch.io/getting-started/sdk-integration-guide/guide/ios/

I installed with CocoaPods. I already have a bridging header file and brought in branch like this:

#import <Branch/Branch.h>

I added an import to the top of AppDelegate.swift:

import Branch

And when I add the code to didFinishLaunchingWithOptions, I get this error:

Cannot use optional chaining on non-optional value of type ‘Branch’

Xcode wants to help me. So if i make this change:

Xcode Errors in Setup

 

And then make this change:

Xcode Errors in Setup

I wind up here and I am not sure what to do (or even if the prior changes where right):

Xcode Errors in Setup

MinuteHand — Other
2 Answer(s)
Answered on June 26, 2017.

Hi – I am sorry that you are facing issues with the setup.

Can you please write to our integrations team here with your case details? Thanks!

Developer
Answered on June 28, 2017.

done.

MinuteHand — Other