SDK是否與iOS 5兼容或僅與iOS 6兼容?Google Drive SDK和iOS 5.1
一切都很好,谷歌exemple和iOS 6(模擬器和設備),但Xcode返回運行時錯誤與iOS 5.1(模擬器和設備)。
我正在使用Xcode 4.5.2。
我已經檢查過iOS部署目標。它設置在5.1。
谷歌爲例: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
檢查了這一點:http://stackoverflow.com/questions/12686009/program-run-at-ios5-1-device-cant-find-sdk-at-xcode-4-5沒有時間嘗試一下;-) –
感謝您的回覆!我剛剛找到了解決方案。看來addind這個項目構建設置解決了問題:GCC_ENABLE_OBJC_GC支持。我希望它能幫助世界(它在Google Drive SDK網站上沒有記錄)。 – Borongaj
糟糕!在模擬器上工作,但不是在設備上:( – Borongaj