Skip to content

Library missing Library not loaded: @rpath/GoogleMaps.framework/GoogleMaps #51

@KovalchukLTD

Description

@KovalchukLTD

Hi, I have a bug. I use this library and have such case:
I have my local SPM that includes GoogleMaps-SP, and my package added to my app. When I building my app for the iPhone simulator like this

xcodebuild -scheme -workspace .xcworkspace -configuration Simulator -derivedDataPath build -sdk iphonesimulator

when I drop on iPhone simulator and launch it, I have a crash on librarary:

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: DYLD 1 Library missing
Library not loaded: @rpath/GoogleMaps.framework/GoogleMaps
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/5BC26852-49D8-46B3-9484-D63101EE7751/data/Containers/Bundle/Application/1B718674-D1BB-4F15-A98A-68752564C704/MyApp.app/...
Reason: tried: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/GoogleMaps.framework/GoogleMaps' (no such file), '/usr/lib/swift/GoogleMaps.framework/GoogleMaps' (no such file, not in dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/GoogleMaps.framework/GoogleMaps' (no such file), '/usr/lib/swift/GoogleMaps.framework/GoogleMaps' (no such file, not in dyld cache), '/Users/tequila/Library/Develope
(terminated at launch; ignore backtrace)

When I build an archive for a device(xcodebuild -scheme -workspace .xcworkspace -configuration Release -destination generic/platform=iOS clean) or run from xcode for the simulator - everything is ok.

Do you have any idea why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions