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

Misc. bug: dylib is not allow for iOS and Vision OS release #11113

Open
Animaxx opened this issue Jan 6, 2025 · 2 comments
Open

Misc. bug: dylib is not allow for iOS and Vision OS release #11113

Animaxx opened this issue Jan 6, 2025 · 2 comments

Comments

@Animaxx
Copy link

Animaxx commented Jan 6, 2025

Name and Version

Are we able to build it as *.framework for iOS and VisionOS?

Current dylib we able to build and run in debug mode, but not able to release for iOS or VisionOS. Reference: https://forums.developer.apple.com/forums/thread/765288

Operating systems

Mac

Which llama.cpp modules do you know to be affected?

libllama (core library)

Command line

No response

Problem description & steps to reproduce

  1. build the cmake -G Xcode cmake --build . and cmake --install .
  2. add dylib files into project, enable "always enable swift standard libraries" "defines modules" etc.
  3. submit to app store

Tried sign all the dylib files and verified the signing, also try having swift support for the archives, both not work for app store release.

First Bad Commit

No response

Relevant log output

No response

@slaren
Copy link
Collaborator

slaren commented Jan 6, 2025

Enabling CMAKE_FRAMEWORK may do what you want.

@Animaxx
Copy link
Author

Animaxx commented Jan 7, 2025

I tried adding -DBUILD_SHARED_LIBS=ON -DCMAKE_FRAMEWORK=ON to the cmake command, but still couldn’t generate a *.framework.
I’m not familiar with CMake, trying to modify the CMakeLists.txt file for it, but haven’t had any luck so far. Any suggestions would be appreciated!

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

No branches or pull requests

2 participants