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

Framework paths when building #869

Open
sultanqasim opened this issue Dec 10, 2024 · 3 comments
Open

Framework paths when building #869

sultanqasim opened this issue Dec 10, 2024 · 3 comments

Comments

@sultanqasim
Copy link

When I run the downloadFrameworks.sh script, it puts all the frameworks in paths like xcfs/.build/artifacts/xcfs/foo/foo.xcframework, as shown below:

sultan@Sultans-MacBook-Air a-shell % find xcfs/.build/artifacts/xcfs -name "*.xcframework"
xcfs/.build/artifacts/xcfs/vim/vim.xcframework
xcfs/.build/artifacts/xcfs/ffmpeg/ffmpeg.xcframework
xcfs/.build/artifacts/xcfs/texlua53A/texlua53A.xcframework
xcfs/.build/artifacts/xcfs/perlB/perlB.xcframework
xcfs/.build/artifacts/xcfs/pdftex/pdftex.xcframework
xcfs/.build/artifacts/xcfs/clang/clang.xcframework
...
xcfs/.build/artifacts/xcfs/openssl/openssl.xcframework
xcfs/.build/artifacts/xcfs/magick/magick.xcframework
xcfs/.build/artifacts/xcfs/tar/tar.xcframework
xcfs/.build/artifacts/xcfs/lua_ios/lua_ios.xcframework

However, when I open a-Shell.xcodeproj with Xcode (Xcode 16.1 on Mac OS 14.7), it looks for frameworks in paths like xcfs/.build/artifacts/xcfs/foo.xcframework (without the parent directory corresponding to the framework name). As such, build fails. I'm guessing I'm not supposed to write a script to symlink foo/foo.xcframework to foo.xcframework for every framework in xcfs/.build/artifacts/xcfs to make build work.

Am I doing something wrong to build a-Shell? What should the framework paths look like? Thanks for your help.

@holzschu
Copy link
Owner

Hi,
that is an issue that appeared recently. I think it's caused by fmake, since downloadFrameworks basically calls fmake to download the frameworks. I'm not sure how to fix it.

@kkebo
Copy link
Contributor

kkebo commented Dec 12, 2024

I also encountered this issue a few weeks ago.

I replaced each xcfs/.build/artifacts/xcfs/foo.xcframework with xcfs/.build/artifacts/xcfs/foo/foo.xcframework in project.pbxproj to make build work.

@holzschu
Copy link
Owner

I've updated the project file so that it is now consistent with the frameworks location. Let me know if I forgot some frameworks.

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

3 participants