Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library not loaded on iPhone device #100

Open
charsdavy opened this issue Jan 12, 2024 · 6 comments
Open

Library not loaded on iPhone device #100

charsdavy opened this issue Jan 12, 2024 · 6 comments

Comments

@charsdavy
Copy link

dyld[6208]: Library not loaded: '@rpath/AMSMB2.framework/AMSMB2'
  Referenced from: '/private/var/containers/Bundle/Application/C3CXXXX6-353C-469A-ACF8-E9DXXXXE/xxxx.app/xxxx'
  Reason: tried: '/usr/lib/swift/AMSMB2.framework/AMSMB2' (no such file), '/Users/xxx/Library/Developer/Xcode/DerivedData/XXXXX-dzxvdypojrczhpggjkaqfoahcewd/Build/Products/Debug-iphoneos/PackageFrameworks/AMSMB2.framework/AMSMB2' (no such file), '/private/var/containers/Bundle/Application/C3CXXXXX-353C-469A-ACF8-E9D4C6XXXXX/xxxx.app/Frameworks/AMSMB2.framework/AMSMB2' (no such file), '/private/var/containers/Bundle/Application/C3XXXX6-353C-469A-ACF8-E9D4XXXXX3E/xxxx.app/Frameworks/AMSMB2.framework/AMSMB2' (no such file), '/usr/lib/swift/AMSMB2.framework/AMSMB2' (no such file), '/Users/fenghe/Library/Developer/Xcode/DerivedData/XXXX-dzxvdypojrczhpggjkaqfoahcewd/Build/Products/Debug-iphoneos/PackageFrameworks/AMSMB2.framework/AMSMB2' (no such file), '/private/var/containers/Bundle/Application/C3CXXXX-353C-469A-ACF8-E9D4C6DXXXXE/xxxx.app/Frameworks/AMSMB2.framework/AMSMB2' (no such file), '/private/var/containers/Bundle/Application/C3Cxxxx-353C-469A-ACF8-E9D4xxxxx3E/xxxx.app/Frameworks/AMSMB2.framework/AMSMB2' (no such file), '/System/Library/Frameworks/AMSMB2.framework/AMSMB2' (no such file)

can not work on iPhone, Mac mini.

@amosavian
Copy link
Owner

Which version of library are you using? @charsdavy

@GheorgheCazacu
Copy link

GheorgheCazacu commented Jan 21, 2024

I have a similar issue for macOS: dyld[66572]: Library not loaded: @rpath/AMSMB2.framework/Versions/A/AMSMB2
Referenced from: <5FB042E3-ED73-3DEF-AE4C-CAD24A89F7E8> /Users/clyde/Library/Developer/Xcode/DerivedData/samba-third-cmidkpzehtbqasfpxeslwdmbayka/Build/Products/Debug/samba-third

I added the library using "Add package dependencies" since the project is not having a Package.swift. It is a command line project just to see how the library is working.
Library version 3.3.1

@Latho1
Copy link

Latho1 commented Jan 23, 2024

I am also experiencing the same issue. It does not work on a device, but it works in the simulator. I am using the latest Swift Package version 3.3.1.

private/var/containers/Bundle/Application/81A93795-D9FA-4A72-BE5D-46A56BF6CA2B/SMBTestApp.app/Frameworks/AMSMB2.framework/AMSMB2' (no such file)

@charsdavy
Copy link
Author

Which version of library are you using? @charsdavy

Library version 3.3.1

@lukepistrol
Copy link

Had the same problem. You need to select Embed & Sign in the Frameworks, Libraries, and Embedded Content section of your target:

Screenshot 2024-02-16 at 04 37 24

@victorBaro
Copy link

Running into a similar issue.

@lukepistrol is right and using "Embed & Sign" fixes the problem.

However, for projects supporting Mac Catalyst, the app does not compile for Mac unless we switch it back to "Do not embed".

Filtering for platform does not seem to work.

I'll appreciate any solutions 🙏 cc/ @amosavian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants