我从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");
// }
// }
}
我的应用程序我已经从源https://github.com/bengottlieb/Twitter-OAuth-iPhone集成了MGTwitterEngine,这是好的。
Amit Battan
答案 0 :(得分:3)
最有可能你需要从linkedIn源添加一些静态库(.a文件)...或src文件夹...
答案 1 :(得分:1)
我遇到了同样的问题。可以通过设置Library Dependency来解决。选择项目目标,然后选择常规。在那里你会发现直接依赖。从LinkedInClientLibrary.xcodeProject
添加LinkedInLibrary答案 2 :(得分:0)
@mihir
Build butterfli of project butterfli with configuration Debug
CompileC build/butterfli.build/Debug-iphonesimulator/butterfli.build/Objects-normal/i386/butterfliViewController.o /Users/pratgupta/Desktop/butterfli/Classes/butterfliViewController.m normal i386 objective-c com.apple.compilers.gcc.4_2
cd /Users/pratgupta/Desktop/butterfli
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -fexceptions -fvisibility=hidden -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_REQUIRED=40100 -iquote /Users/pratgupta/Desktop/butterfli/build/butterfli.build/Debug-iphonesimulator/butterfli.build/butterfli-generated-files.hmap -I/Users/pratgupta/Desktop/butterfli/build/butterfli.build/Debug-iphonesimulator/butterfli.build/butterfli-own-target-headers.hmap -I/Users/pratgupta/Desktop/butterfli/build/butterfli.build/Debug-iphonesimulator/butterfli.build/butterfli-all-target-headers.hmap -iquote /Users/pratgupta/Desktop/butterfli/build/butterfli.build/Debug-iphonesimulator/butterfli.build/butterfli-project-headers.hmap -F/Users/pratgupta/Desktop/butterfli/build/Debug-iphonesimulator -iquote/Users/pratgupta/Desktop/butterfli/LinkedInClientLibrary -I/Users/pratgupta/Desktop/butterfli/build/Debug-iphonesimulator/include -I/Users/pratgupta/Desktop/butterfli/OAuthConsumeriPhoneLib -I/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/usr/include/libxml2 -I/Users/pratgupta/Desktop/butterfli/build/butterfli.build/Debug-iphonesimulator/butterfli.build/DerivedSources/i386 -I/Users/pratgupta/Desktop/butterfli/build/butterfli.build/Debug-iphonesimulator/butterfli.build/DerivedSources -include /var/folders/RE/RE2wCP+eEqaZg4J2Og3nmE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/butterfli_Prefix-aeetprdcvcynktfkafjmijthtlhp/butterfli_Prefix.pch -c /Users/pratgupta/Desktop/butterfli/Classes/butterfliViewController.m -o /Users/pratgupta/Desktop/butterfli/build/butterfli.build/Debug-iphonesimulator/butterfli.build/Objects-normal/i386/butterfliViewController.o
/Users/pratgupta/Desktop/butterfli/Classes/butterfliViewController.m:321: warning: property 'fbPermissions' requires method '-fbPermissions' to be defined - use @synthesize, @dynamic or provide a method implementation
Ld build/Debug-iphonesimulator/butterfli.app/butterfli normal i386
cd /Users/pratgupta/Desktop/butterfli
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -L/Users/pratgupta/Desktop/butterfli/build/Debug-iphonesimulator "-L/Users/pratgupta/Desktop/butterfli/Twitter+OAuth/Libraries & Headers" -F/Users/pratgupta/Desktop/butterfli/build/Debug-iphonesimulator -filelist /Users/pratgupta/Desktop/butterfli/build/butterfli.build/Debug-iphonesimulator/butterfli.build/Objects-normal/i386/butterfli.LinkFileList -mmacosx-version-min=10.6 -all_load -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -lOAuth -lxml2 /Users/pratgupta/Desktop/butterfli/LinkedInClientLibrary/build/Debug-iphonesimulator/libLinkedInClientLibrary.a -o /Users/pratgupta/Desktop/butterfli/build/Debug-iphonesimulator/butterfli.app/butterfli
ld: duplicate symbol _EstimateBas64EncodedDataSize in /Users/pratgupta/Desktop/butterfli/LinkedInClientLibrary/build/Debug-iphonesimulator/libLinkedInClientLibrary.a(Base64Transcoder.o) and /Users/pratgupta/Desktop/butterfli/Twitter+OAuth/Libraries & Headers/libOAuth.a(Base64Transcoder.o)
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1