Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Drive GTL framework, dyld: Library not loaded: @loader_path/../Frameworks/GTL.framework/GTL

I have an app called Tripla which can sync data via Google Drive for iOS 8- devices. However, it got crash when synchronizing data on iOS 9 devices. Therefore, I tried to upgrade the Google frameworks by the latest library and follow the tutorial https://developers.google.com/drive/ios/quickstart.

This update, I got the error msg - dyld: Library not loaded: @loader_path/../Frameworks/GTL.framework/GTL ....... image not found when debugging on real devices.

After looking up many similar solutions such as:

  1. Add "GTL.framework" to "Embedded Binary" in tab "General",
  2. Add "GTL.framework" to "Linked Frameworks and Libraries" in tab "General",
  3. Add "GTL.framework" to "Copy Files" in tab "Build Phrase",
  4. Add dynamic path to "Runpath_Search_Path" in tab "Build Settings",

the issue was still not been solved.

Does anyone have the same issue and get solved?

error breakline error message

ps. Debugging on simulator is working well when clicking "Run" on Xcode. It, however, gets crash again on OS X 10.11.2 when clicking Icon on main screen in the simulator 9.1. crash on OS X

like image 654
Exile3daime Avatar asked Dec 14 '22 09:12

Exile3daime


1 Answers

Change dynamic library to static library

I solved this issue my own. It might be caught by wrong setting in the Google's dynamic linked framework. So that the app cannot run in real devices and find the dynamic library in runtime period. Please follow the tutorial Drive SDK for iOS and do more things.

  1. Make sure your Architecture setting in GTLiOSCore in GTLCore sub-project is correctly for iOS, but OSX for GTLOSXCore instead.

GTLFramework_iOS

  1. Change "Mach-O Type" to "Static Library" from "Dynamic Library" Static Library

After finishing the steps above, your Drive app may be run in your real devices.

like image 186
Exile3daime Avatar answered May 02 '23 07:05

Exile3daime