-
Notifications
You must be signed in to change notification settings - Fork 989
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
[question] Correct way to use XCrun in Conan v2 #12071
Comments
Hi @paulocoutinhox, We did not make the XCRun tool public yet on purpouse. You can check the comments in the sources. |
Hi, Ok, i see that you have a method that return it:
But how i can use it in practice? Or i need use XcodeBuild, like this:
? Thanks. |
Hi @paulocoutinhox, The The recommended use is that instead of doing something like:
or
you do:
To set that configuration you can do it in your profiles in the
or directly in the command line:
Hope this helps. |
Hi @czoido The only necessary code is this?
Because inside conan it has a fallback:
It is here: conan/conan/tools/apple/apple.py Lines 73 to 77 in 9c4487e
I cant set on conf, i need set on my toolchain to make it work automatically. I can't keep making my process worse because of Conan version 2. I need to keep getting the SDK path correct as it was before. I need only replace it here: I need a way that don't will change in v2. |
Hi @paulocoutinhox, Let me mark this issue as look-into and check with the team so we can discuss what how we should approach these cases. |
Hi @paulocoutinhox, After having a look at this with the team and checking that some Conan Center recipes also use I would like to comment as well that in Conan 1.48 we added support for the CMakeToolchain for several of the flags and CMake variables that you are using in the toolchain with the intention of replace those toolchains and have built-in support for that. You can check the support in CMakeToolchain in the docs. It has not support for AutotoolsToolchain yet but we will add it soon. |
Thanks @czoido Autotools use this part? And CMake use this part? |
Closed by #12172, will be in 1.53 |
Nice and thanks! |
Hi,
What is the correct way to use XCRun in conan v1/v2 compatible?
I made this:
https://github.com/nativium/nativium/pull/21/files#diff-46d8e7b650df6bb59541dab2a0fc2c56436aeb97a5c4079e18a6831515164bddR3-R7
But it is ugly:
from conan.tools.apple.apple import XCRun
Thanks.
The text was updated successfully, but these errors were encountered: