Is the SDK compatible with iOS 5 or only with iOS 6 ?
Everything is fine with the Google exemple and iOS 6 (simulator and devices) but Xcode return a runtime error with iOS 5.1 (simulator and devices).
I'm using Xcode 4.5.2.
I've already checked the iOS Deployment target. It's set on 5.1.
Google exemple : https://developers.google.com/drive/quickstart-ios
Runtime error returned :
dyld: lazy symbol binding failed: Symbol not found: _objc_setProperty_nonatomic_copy
Referenced from: /Users/Borongaj/Library/Application Support/iPhone Simulator/5.1/Applications/FC5B32F0-C5E6-4054-BE81-4F52054AC911/Tests Google Drive.app/Tests Google Drive
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Foundation.framework/Foundation
dyld: Symbol not found: _objc_setProperty_nonatomic_copy
Referenced from: /Users/Borongaj/Library/Application Support/iPhone Simulator/5.1/Applications/FC5B32F0-C5E6-4054-BE81-4F52054AC911/Tests Google Drive.app/Tests Google Drive
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Foundation.framework/Foundation
I've found the solution.
The Google documentation omit some important things :
watch the Google video instead of reading the Google tutorial (text), because some drag/drop can corrupt Xcode buildings preferences
Add GTLDrive_Sources.m inside Project > Build Phases > Compile Sources
switch the GTL project iOS Deployment Target option to 5.1 (or anything else).
With these three steps, you avoid some boring error message.
Even the Google engineer get same errors during video ! :-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With