structureio / sample-scanner

Scanner Sample App for Structure SDK
https://structure.io
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

dyld[2207]: Library not loaded: @rpath/Structure.framework/Structure #9

Closed alamboley closed 8 months ago

alamboley commented 8 months ago

Hello,

I've added the SDK but it fails on start on mobile:

Capture d’écran 2024-01-24 à 15 58 03 Capture d’écran 2024-01-24 à 15 58 18
dyld[2207]: Library not loaded: @rpath/Structure.framework/Structure
  Referenced from: <56079A00-72F9-39C4-90DC-23E98E1986C1> /private/var/containers/Bundle/Application/33D3E5EA-A3EA-4402-82E1-86FF7CDBF776/Scanner.app/Scanner
  Reason: tried: '/usr/lib/swift/Structure.framework/Structure' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Structure.framework/Structure' (no such file), '/private/var/containers/Bundle/Application/33D3E5EA-A3EA-4402-82E1-86FF7CDBF776/Scanner.app/Frameworks/Structure.framework/Structure' (no such file), '/usr/lib/swift/Structure.framework/Structure' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Structure.framework/Structure' (no such file), '/private/var/containers/Bundle/Application/33D3E5EA-A3EA-4402-82E1-86FF7CDBF776/Scanner.app/Frameworks/Structure.framework/Structure' (no such file)

What I'm missing?

a-tokar commented 8 months ago

Hello!

Thanks for reaching out.

Please make sure that the "Embed Frameworks" option is enabled in the "Build Phases" section:

image

Also, check that Structure Framework is present in the built app: Scanner.app/Frameworks/Structure.framework