开发者

Try to integrate LinkedIn in iPhone application

开发者 https://www.devze.com 2023-02-16 11:21 出处:网络
I have download the source from https://github.com/ResultsDirect/LinkedIn-iPhone . Demo working fine, and try to use in my application.

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:

Try to integrate LinkedIn in iPhone application

When I comment the lines o开发者_StackOverflow社区f 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


most probably you need to add some static library (.a file)... or src folder itself from linkedIn source...


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

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
0

精彩评论

暂无评论...
验证码 换一张
取 消