Unable to add the Objective-C client library to project
229 views
Skip to first unread message
Haoyan Geng
unread,
Jun 4, 2014, 4:12:09 PM6/4/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gdata-objec...@googlegroups.com
Hello,
I was trying to use the Objective-C client library to let my iOS app interact with Google Cloud Storage. I followed the instruction on https://code.google.com/p/google-api-objectivec-client/wiki/BuildingTheLibraryto link the iOS static library to my project, but the project failed to build with error messages saying that there are undefined symbols for architecture i386. I'm under the impression that since I'm building an iOS app, the i386 architecture should not be relevant here? My project is an iOS app created using Xcode 5.1.1, and the static library (libGTLTouchStaticLib.a) was built for iOS device using the same Xcode environment. Could anyone give me some hint on what's going on?
Below is the build output:
Ld /Users/geng/Library/Developer/Xcode/DerivedData/GCEPhotoUploader2-fzbucwxgnboubxawapaovlefbvxo/Build/Products/Debug-iphonesimulator/GCEPhotoUploader2.app/GCEPhotoUploader2 normal i386
"_OBJC_CLASS_$_GTLCollectionObject", referenced from: _OBJC_CLASS_$_GTLStorageBucketAccessControls in GTLStorage_Sources.o _OBJC_CLASS_$_GTLStorageBuckets in GTLStorage_Sources.o _OBJC_CLASS_$_GTLStorageObjectAccessControls in GTLStorage_Sources.o _OBJC_CLASS_$_GTLStorageObjects in GTLStorage_Sources.o _OBJC_CLASS_$_GTLStorageObjects in GTLStorageObjects.o _OBJC_CLASS_$_GTLStorageBucketAccessControls in GTLStorageBucketAccessControls.o _OBJC_CLASS_$_GTLStorageObjectAccessControls in GTLStorageObjectAccessControls.o ...
"_OBJC_CLASS_$_GTLObject", referenced from: _OBJC_CLASS_$_GTLStorageObject in GTLStorageObject.o _OBJC_CLASS_$_GTLStorageObjectMetadata in GTLStorageObject.o _OBJC_CLASS_$_GTLStorageObjectOwner in GTLStorageObject.o _OBJC_CLASS_$_GTLStorageBucketAccessControl in GTLStorage_Sources.o _OBJC_CLASS_$_GTLStorageBucketCorsItem in GTLStorage_Sources.o _OBJC_CLASS_$_GTLStorageObjectAccessControl in GTLStorage_Sources.o _OBJC_CLASS_$_GTLStorageBucket in GTLStorage_Sources.o ...
"_OBJC_CLASS_$_GTLQuery", referenced from: _OBJC_CLASS_$_GTLQueryStorage in GTLStorage_Sources.o _OBJC_CLASS_$_GTLQueryStorage in GTLQueryStorage.o (maybe you meant: _OBJC_CLASS_$_GTLQueryStorage)
"_OBJC_CLASS_$_GTLService", referenced from: _OBJC_CLASS_$_GTLServiceStorage in GTLStorage_Sources.o _OBJC_CLASS_$_GTLServiceStorage in GTLServiceStorage.o (maybe you meant: _OBJC_CLASS_$_GTLServiceStorage)
"_OBJC_METACLASS_$_GTLCollectionObject", referenced from: _OBJC_METACLASS_$_GTLStorageBucketAccessControls in GTLStorage_Sources.o _OBJC_METACLASS_$_GTLStorageBuckets in GTLStorage_Sources.o _OBJC_METACLASS_$_GTLStorageObjectAccessControls in GTLStorage_Sources.o _OBJC_METACLASS_$_GTLStorageObjects in GTLStorage_Sources.o _OBJC_METACLASS_$_GTLStorageObjects in GTLStorageObjects.o _OBJC_METACLASS_$_GTLStorageBucketAccessControls in GTLStorageBucketAccessControls.o _OBJC_METACLASS_$_GTLStorageObjectAccessControls in GTLStorageObjectAccessControls.o ...
"_OBJC_METACLASS_$_GTLObject", referenced from: _OBJC_METACLASS_$_GTLStorageObject in GTLStorageObject.o _OBJC_METACLASS_$_GTLStorageObjectMetadata in GTLStorageObject.o _OBJC_METACLASS_$_GTLStorageObjectOwner in GTLStorageObject.o _OBJC_METACLASS_$_GTLStorageBucket in GTLStorage_Sources.o _OBJC_METACLASS_$_GTLStorageBucketCorsItem in GTLStorage_Sources.o _OBJC_METACLASS_$_GTLStorageBucketLifecycle in GTLStorage_Sources.o _OBJC_METACLASS_$_GTLStorageBucketLogging in GTLStorage_Sources.o ...
"_OBJC_METACLASS_$_GTLQuery", referenced from: _OBJC_METACLASS_$_GTLQueryStorage in GTLStorage_Sources.o _OBJC_METACLASS_$_GTLQueryStorage in GTLQueryStorage.o (maybe you meant: _OBJC_METACLASS_$_GTLQueryStorage)
"_OBJC_METACLASS_$_GTLService", referenced from: _OBJC_METACLASS_$_GTLServiceStorage in GTLStorage_Sources.o _OBJC_METACLASS_$_GTLServiceStorage in GTLServiceStorage.o (maybe you meant: _OBJC_METACLASS_$_GTLServiceStorage)
ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)