New native Xcode project generator.#6411
Conversation
|
This fixes #4810 |
|
Thanks, but I need a few days to review it. Because I don't have much free time recently. |
@JX-Master Any idea? |
|
It seems that the product name ( This shouldn't be happened, can you provide more information about the test project so that I can identify the problem. |
|
|
Any progress? |
Add SDKROOT build settings.
|
But it still does not work for me. |
Can you provide the full project directory including the source file and |
|
|
I tried another M4 machine, it works. But It does not work on intel x86_64 machine |
|
There some errors and warnings when building it. I'm not sure if that helps.
|
|
I know the reason. XMAKE_PROGRAM_DIR is missing.
If xmake is installed in the system path, It works
But if I change the installation path of xmake, XMAKE_PROGRAM_DIR and XMAKE_BIN are not in the same path. XMAKE_BIN="/Users/ruki/projects/personal/xmake/build/xmake"
XMAKE_PROGRAM_DIR="/Users/ruki/projects/personal/xmake/xmake"The xcode shell does not inherit environment variables imported in bash_profile. |
|
we can use |
|
I have fixed it. |
|
Thanks, I have removed old xcode and rename it to xcode. cmake xcode is just a temporary solution, we no longer need it. |




This pull request implements a native Xcode project generator for macOS development. The new project generator is temporary named as
Xcode2to distinguish with the old generator, and has the following features:xmake.luadirectly, without the need to install and use CMake.before_build,after_build,before_install,after_install, etc will be called as expected.BUILD_DIR, so that invoking Clean build folder in Xcode will remove all xmake intermediate and output files as expected..app) is supported ifxcode.applicationrule is specified (currently only works for macOS applications. iOS applications will be supported later).Note that this is still a very early version and needs further improvements and bug-fixes. I tested this generator on my own project and it worked fine, but more projects should be used to test this generator before it can be released.