简体   繁体   中英

Linkedin SDK architecture issue in swift

I'm trying to use Linkedin SDK to auth in my iOS application, but when I build it i got this error:

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_LISDKCallbackHandler", referenced from: type metadata accessor for __ObjC.LISDKCallbackHandler in AppDelegate.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm using a bridging header where I'm importing the SDK to swift

#import <linkedin-sdk/LISDK.h>

and in my AppDelegate I have:

func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool {


        FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation)

        if LISDKCallbackHandler.shouldHandleUrl(url) {
            LISDKCallbackHandler.application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation)
        }

        return true
    }

I got the solution.

I forgot to set the Target Membership for the Framework package. setting the Target Membership

Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM