Google Drive SDK和iOS 5.1 [英] Google Drive SDK and iOS 5.1
问题描述
SDK是与iOS 5兼容还是仅与iOS 6兼容?
Is the SDK compatible with iOS 5 or only with iOS 6 ?
Google例程和iOS 6(模拟器和设备)的一切都很好,但Xcode返回iOS 5.1(模拟器和设备)的运行时错误。
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).
我正在使用Xcode 4.5.2。
I'm using Xcode 4.5.2.
我已经检查了iOS部署目标。它设置为5.1。
Google例证: https://developers.google.com/drive/quickstart-ios
Google exemple : https://developers.google.com/drive/quickstart-ios
返回运行时错误:
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
推荐答案
我找到了解决方案。
Google文档省略一些重要的事情:
The Google documentation omit some important things :
-
观看Google视频而非阅读Google教程(文字) ,因为某些拖放可能会损坏Xcode建筑物的首选项
watch the Google video instead of reading the Google tutorial (text), because some drag/drop can corrupt Xcode buildings preferences
在项目>构建阶段>编译源中添加GTLDrive_Sources.m
将GTL项目iOS部署目标选项切换为5.1(或其他任何内容)。
switch the GTL project iOS Deployment Target option to 5.1 (or anything else).
通过以下三个步骤,您可以避免一些无聊的错误消息。
With these three steps, you avoid some boring error message.
即使Google工程师在视频期间也会遇到相同的错误!: - )
这篇关于Google Drive SDK和iOS 5.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!