We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
While it works fine with Xcode, I seem unable to use Ninja to build a mixed ObjC+Swift project. I get:
/Users/User/Developer/ObjcSwiftNinja/MyObjC.m:2:9: fatal error: 'ObjcSwiftNinja-Swift.h' file not found #import "ObjcSwiftNinja-Swift.h" ^~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.
Minimal sample project: https://github.com/Coeur/ObjcSwiftNinja
The CMakeList.txt is as minimal as possible to highlight the issue: https://github.com/Coeur/ObjcSwiftNinja/blob/97d926d454a8210731b42ddcc92c3a7fbc72ff9a/CMakeLists.txt
The README gives what works and what fails. Succeeds:
cmake -B build -G Xcode xcodebuild -project build/ObjcSwiftNinja.xcodeproj -target ObjcSwiftNinja-app
Fails:
cmake -B build -G Ninja ninja -C build ObjcSwiftNinja-app
The text was updated successfully, but these errors were encountered:
This is a CMake issue, please open an issue in their bug tracker.
Sorry, something went wrong.
Issue in cmake tracker: https://gitlab.kitware.com/cmake/cmake/-/issues/24571
No branches or pull requests
While it works fine with Xcode, I seem unable to use Ninja to build a mixed ObjC+Swift project. I get:
Minimal sample project: https://github.com/Coeur/ObjcSwiftNinja
The CMakeList.txt is as minimal as possible to highlight the issue:
https://github.com/Coeur/ObjcSwiftNinja/blob/97d926d454a8210731b42ddcc92c3a7fbc72ff9a/CMakeLists.txt
The README gives what works and what fails.
Succeeds:
Fails:
The text was updated successfully, but these errors were encountered: