GoogleMaps-SP icon indicating copy to clipboard operation
GoogleMaps-SP copied to clipboard

Runtime crash: Library not loaded-Error when GoogleMaps-SP is used from framework

Open nayooti opened this issue 3 years ago • 1 comments

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

nayooti avatar May 07 '22 06:05 nayooti

Adding Google Maps to the App target should solve the issue.

Screen Shot 2022-05-11 at 4 28 23 PM

karimhm avatar May 11 '22 15:05 karimhm