尝试将 LinkedIn 集成到 iPhone 应用程序中
我已从 https://github.com/ResultsDirect/LinkedIn-iPhone 下载源代码。演示工作正常,并尝试在我的应用程序中使用。
我已按照 post 中提到的所有步骤进行操作...
但是我收到错误
"_OBJC_CLASS_$_RDLinkedInEngine", referenced from:
"_OBJC_CLASS_$_RDLinkedInAuthorizationController", referenced from:
当我评论 RDLinkedInEngine 和 RDLinkedInAuthorizationController 的行时,错误将被删除
- (void)loadView {
[super loadView];
// rdEngine = [[RDLinkedInEngine engineWithConsumerKey:kOAuthConsumerKey consumerSecret:kOAuthConsumerSecret delegate:self] retain];
}
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
// if( !rdHasAppeared ) {
// UIViewController* controller = [RDLinkedInAuthorizationController authorizationControllerWithEngine:rdEngine delegate:self];
// if( controller ) {
// [self presentModalViewController:controller animated:YES];
// rdHasAppeared = YES;
// }
// else {
// NSLog(@"Already authenticated");
// }
// }
}
我的应用程序我已经从源集成了 MGTwitterEngine https://github.com/bengotlieb/Twitter-OAuth-iPhone 工作正常。
阿米特·巴坦
I have download the source from https://github.com/ResultsDirect/LinkedIn-iPhone . Demo working fine, and try to use in my application.
I have followed all the steps already whatever required as mention here in post ...
But I have getting the error
"_OBJC_CLASS_$_RDLinkedInEngine", referenced from:
"_OBJC_CLASS_$_RDLinkedInAuthorizationController", referenced from:
When I comment the lines of RDLinkedInEngine and RDLinkedInAuthorizationController then error are removed
- (void)loadView {
[super loadView];
// rdEngine = [[RDLinkedInEngine engineWithConsumerKey:kOAuthConsumerKey consumerSecret:kOAuthConsumerSecret delegate:self] retain];
}
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
// if( !rdHasAppeared ) {
// UIViewController* controller = [RDLinkedInAuthorizationController authorizationControllerWithEngine:rdEngine delegate:self];
// if( controller ) {
// [self presentModalViewController:controller animated:YES];
// rdHasAppeared = YES;
// }
// else {
// NSLog(@"Already authenticated");
// }
// }
}
I my application I have already integrated MGTwitterEngine from source https://github.com/bengottlieb/Twitter-OAuth-iPhone Which is wokring ok.
Amit Battan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
最有可能的是,您需要添加一些静态库(.a 文件)...或来自 linkedIn 源的 src 文件夹本身...
most probably you need to add some static library (.a file)... or src folder itself from linkedIn source...
我也经历过同样的问题。可以通过设置Library Dependency来解决。选择项目目标,然后选择常规。在那里您将找到直接依赖项。从 LinkedInClientLibrary.xcodeProject 添加 LinkedInLibrary
I have gone through the same issue. It can be solved by setting Library Dependency. Select project target and then select general. There you will find Direct dependencies. Add LinkedInLibrary from LinkedInClientLibrary.xcodeProject
@米希尔
@mihir