Skip to content

Dynamic framework not linked properly #1

@RemyLivewall

Description

@RemyLivewall

When I try the run my application with the GoogleCast SPM package as a dependency on device it crashed with the following error:

dyld[1167]: Library not loaded: @rpath/GoogleCast.framework/GoogleCast
  Referenced from: <985F8464-A939-3FA6-B0DF-B0928A8C4A79> /private/var/containers/Bundle/Application/43B71238-03E5-4692-A732-98611DE9BE00/Dumpert Staging.app/Dumpert Staging.debug.dylib
  Reason: tried: '<redacted>/Library/Developer/Xcode/DerivedData/Dumpert-hfclcxibczqnjggalsbctcbxrqoe/Build/Products/Debug-iphoneos/PackageFrameworks/GoogleCast.framework/GoogleCast' (no such file), '/private/preboot/Cryptexes/OS/<redacted>/Library/Developer/Xcode/DerivedData/Dumpert-hfclcxibczqnjggalsbctcbxrqoe/Build/Products/Debug-iphoneos/PackageFrameworks/GoogleCast.framework/GoogleCast' (no such file), '/private/var/containers/Bundle/Application/43B71238-03E5-4692-A732-98611DE9BE00/Dumpert Staging.app/GoogleCast.framework/GoogleCast' (no such file), '<redacted>/Library/Developer/Xcode/DerivedData/Dumpert-hfclcxibczqnjggalsbctcbxrqoe/Build/Products/Debug-iphoneos/PackageFrameworks/GoogleCast.framework/GoogleCast' (no such file), '/private/preboot/Cryptexes/OS/<redacted>/Library/Developer/Xcode/DerivedData/Dumpert-hfclcxibczqnjggalsbctcbxrqoe/Build/Products/Debug-iphoneos/PackageFrameworks/GoogleCast.framework/GoogleCast' (no such file), '/private/var/containers/Bundle/Application/43B71238-03E5-4692-A732-98611DE9BE00/Dumpert Staging.app/GoogleCast.framework/GoogleCast' (no such file), '<redacted>/Library/Developer/Xcode/DerivedData/Dumpert-hfclcxibczqnjggalsbctcbxrqoe/Build/Products/Debug-iphoneos/PackageFrameworks/GoogleCast.framework/GoogleCast' (no such file), '/private/preboot/Cryptexes/OS/<redacted>/Library/Developer/Xcode/DerivedData/Dumpert-hfclcxibczqnjggalsbctcbxrqoe/Build/Products/Debug-iphoneos/PackageFrameworks/GoogleCast.framework/GoogleCast' (no such file)

When I inspect the folder structure I notice that the GoogleCast.framework is not inside the PackageFrameworks folder, but inside the folder itself, but I haven't found any reason why it even looks at the PackageFrameworks folder, because it is empty after building.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions