问题
Earlier,I have created 32 bit xcode app,that include twitter API,but now,due to Apple's new requirement of an app to be 64 bit,I updated xcode to xcode 6.1 and ios 8.1 version,and made changes in the build settings...
Architectures:Standard Architecture(arm7,arm64)
Valid Architectures:armv7 armv7s arm64
But,now the error arises i.e.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_OAConsumer", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
"_OBJC_CLASS_$_OADataFetcher", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
"_OBJC_CLASS_$_OAMutableURLRequest", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
"_OBJC_CLASS_$_OARequestParameter", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
"_OBJC_CLASS_$_OAToken", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.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 think,the above error means I'll have to update the twitter API as 64 bit support.But,I am not getting latest version of twitter API.
Can,anyone tell I will have update twitter API or will have to do another thing...??Where I can find the latest version of twitter API,and how to update 32 bit frameworks and API into 64 bit.
Thanks.
回答1:
Try adding i386 x86_64 to your valid architectures.
Valid Architectures : armv7 armv7s arm64 i386 x86_64
i386 -> 32 bit simulator
x86_64 -> 64/32 bit simulator
来源:https://stackoverflow.com/questions/28406316/64-bit-twitter-framework-for-the-app-developed-in-xcode