dyld Library not loaded. Reason: tried (no such file)

  1. Created Framework project
  2. Added subframework to this framework project
  3. Made a build
  4. Created Client app
  5. Added this created Framework to the client app
  6. Embedded and signed
  7. Build succeeded but got this error:
dyld[2748]: Library not loaded: '@rpath/Intercom.framework/Intercom'

  Referenced from: '/private/var/containers/Bundle/Application/4A1810D3-FCFB-4136-83AA-D2A6EE14F3D9/ClientGame.app/Frameworks/SetOfDepenedencies.framework/SetOfDepenedencies'

  Reason: tried: '/usr/lib/swift/Intercom.framework/Intercom' (no such file), '/private/var/containers/Bundle/Application/4A1810D3-FCFB-4136-83AA-D2A6EE14F3D9/ClientGame.app/Frameworks/Intercom.framework/Intercom' (no such file), '/private/var/containers/Bundle/Application/4A1810D3-FCFB-4136-83AA-D2A6EE14F3D9/ClientGame.app/Frameworks/SetOfDepenedencies.framework/Frameworks/Intercom.framework/Intercom' (code signature in <97C5FB2D-3C3D-3FE5-B90A-2180A2C2CCBC> '/private/var/containers/Bundle/Application/4A1810D3-FCFB-4136-83AA-D2A6EE14F3D9/ClientGame.app/Frameworks/SetOfDepenedencies.framework/Frameworks/Intercom.framework/Intercom' not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.), '/private/var/containers/Bundle/Application/4A1810D3-FCFB-4136-83AA-D2A6EE14F3D9/ClientGame.app/Frameworks/Intercom.framework/Intercom' (no such file), '/private/var/containers/Bundle/Application/4A1810D3-FCFB-4136-83AA-D2A6EE14F3D9/ClientGame.app/Frameworks/Intercom.framework/Intercom' (no such file), '/System/Library/Frameworks/Intercom.framework/Intercom' (no such file)

Library not loaded: '@rpath/Intercom.framework/Intercom'

  Referenced from: '/private/var/containers/Bundle/Application/4A1810D3-FCFB-4136-83AA-D2A6EE14F3D9/ClientGame.app/Frameworks/SetOfDepenedencies.framework/SetOfDepenedencies'

  Reason: tried: '/usr/lib/swift/Intercom.framework/Intercom' (no such file), '/private/var/containers/Bundle/Application/4A1810D3-FCFB-4136-83AA-D2A6EE14F3D9/ClientGame.app/Frameworks/Intercom.framework/Intercom' (no such file), '/private/var/containers/Bundle/Application/4A1810D3-FCFB-4136-83AA-D2A6EE14F3D9/ClientGame.app/Frameworks/SetOfDepenedencies.framework/Frameworks/Intercom.framework/Intercom' (code signature in <97C5FB2D-3C3D-3FE5-B90A-2180A2C2CCBC> '/private/var/containers/Bundle/Application/4A1810D3-FCFB-4136-83AA-D2A6EE14F3D9/ClientGame.app/Frameworks/SetOfDepenedencies.framework/Frameworks/Intercom.framework/Intercom' not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.), '/private/var/containers/Bundle/

What do I have to understand from this error and how to fix it? (the path where the framework lies is correct)

What platform are you working on?

The paths you posted suggest that this you’re on iOS, or one of its child platforms, in which case this is a problem:

2. Added subframework to this framework project

iOS does not support nested frameworks; that only works on macOS.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

dyld Library not loaded. Reason: tried (no such file)
 
 
Q