简体   繁体   English

Linkedin SDK架构问题在swift中

[英]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: 我正在尝试使用Linkedin SDK在我的iOS应用程序中进行身份验证,但是当我构建它时,我遇到了这个错误:

Undefined symbols for architecture x86_64: 架构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) “_OBJC_CLASS _ $ _ LISDKCallbackHandler”,引用自:AppDelegate.o中的__ObjC.LISDKCallbackHandler的类型元数据访问器ld:找不到架构x86_64 clang的符号:错误:链接器命令失败,退出代码为1(使用-v查看调用)

I'm using a bridging header where I'm importing the SDK to swift 我正在使用桥接头,我将SDK导入swift

#import <linkedin-sdk/LISDK.h>

and in my AppDelegate I have: 在我的AppDelegate中,我有:

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. 我忘了为Framework软件包设置目标成员资格。 setting the Target Membership 设定目标会员

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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