dyld: Library not loaded: @loader_path/../Frameworks/GTL.framework/GTL Referenced from: /var/mobile/Containers/Bundle/Application/2EE31349-7221-47AF-83E7-7B172F5ED6AD/MyApp.app/MyApp Reason: image not found
I've tried adding GTL.framework
to Embedded Binaries but this didn't help. Any idea what might be wrong. I created a workspace and followed the directions exactly as given in the tutorial: https://developers.google.com/google-apps/calendar/quickstart/ios
It's working fine on the simulator but gives me the above error when I try to run it on my device. Any ideas?
I'm running Xcode 7.2.1 and iOS 9.2
Edit
I've tried changing the installation path of the GTLiOSCore
to @executable_path/../Frameworks
but this doesn't fix anything.
In GTLiOSCore
target go to Build Settings and change Installation Directory to: @executable_path/Frameworks
You can also verify that your main project's Runpath Search Paths property contain @executable_path/Frameworks
.
I've tried several other combinations, but for some reason The Dynamic Link Editor(dyld) is unable to find GTL.framework when the installation path contains /../
.
Have you checked that your framework has been built for all architectures and not just the simulator?
Sample Build Settings Image
If that doesn't work you may need to create an aggregate target which includes target frameworks for both Simulator and devices.
See this link: Create iOS Universal Framework
I solved my own problem by changing Mach-O Type from Dynamic Library to Static Library in the Build Settings
for GTLiOSCore
(NOT the Build Settings
for your app!).
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