GoogleMaps-SP
GoogleMaps-SP copied to clipboard
Runtime crash: Library not loaded-Error when GoogleMaps-SP is used from framework
I need to use GoogleMaps-SP from an framwork.
Setup: Demo.xcworkspace
- Framework (uses GoogleMaps-SP)
- App (uses Framework)
The app does compile but I am getting this error on runtime:
dyld[25710]: Library not loaded: @rpath/GoogleMaps.framework/GoogleMaps
Referenced from: /private/var/containers/Bundle/Application/0F46D506-1E8B-45AC-9209-A2FA44E1D692/App.app/Frameworks/Framework.framework/Framework
Reason: tried: '/private/var/containers/Bundle/Application/0F46D506-1E8B-45AC-9209-A2FA44E1D692/App.app/Frameworks/GoogleMaps.framework/GoogleMaps' (no such file), '/private/var/containers/Bundle/Application/0F46D506-1E8B-45AC-9209-A2FA44E1D692/App.app/Frameworks/Framework.framework/Frameworks/GoogleMaps.framework/GoogleMaps' (no such file), '/private/var/containers/Bundle/Application/0F46D506-1E8B-45AC-9209-A2FA44E1D692/App.app/Frameworks/GoogleMaps.framework/GoogleMaps' (no such file), '/private/var/containers/Bundle/Application/0F46D506-1E8B-45AC-9209-A2FA44E1D692/App.app/Frameworks/GoogleMaps.framework/GoogleMaps' (no such file), '/System/Library/Frameworks/GoogleMaps.framework/GoogleMaps' (no such file)
Here is a barebone sample project to reproduce: https://github.com/nayooti/GoogleMaps-SP-Demo
Adding Google Maps to the App target should solve the issue.