-
Notifications
You must be signed in to change notification settings - Fork 949
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] How to build C++ project with Apple Hardened Runtime enabled? #16300
Comments
Thanks for your question. Conan is not really a build system, but a package manager that wraps any build system and calls it. So the way to change build-system properties, like this one, depends on the build system. Conan has several mechanisms to inject behavior into dependencies build systems, but that is limited to those build systems interfaces capabilities.
|
Hi @memsharded, thank you for your answer.
from my understanding, this should be set to the
for more info have a look at: Do you know how can I set up this property? |
It generates files for the build system in 2 dimensions:
It doesn't aim to be a build-system abstractor or meta-build system that can command any build system to do anything.
But if |
@memsharded Thank you for your explanation, it's much clearer now that |
this works perfectly, but for what I am trying to achieve I think I need to build with Xcode, not Cmake.
but when building I got the following error:
so it looks like the Xcode project doesn't get the |
CMake doesn't build anything, it's a meta build system (like Meson or Autotools). Xcode, Make, Ninja, MSBuild, NMake are build systems. CMake generates build files for a specific build system, by default for Make on macOS ( |
@SpaceIm thank you for clarifying, this makes more sense to me now.
but when using Xcode
I get the following error:
Eigen has been installed with |
create a successful build! I was able to solve my problem using these build commands! |
FYI, hardening is done by Xcode through |
@SpaceIm, is using |
@SpaceIm so if I understand correctly:
would generate a binary with Apple Hardened Runtime enabled
would do too, the only difference would be that the first one use make and the second one uses Xcode for the build system |
What is your question?
Hi!
I need to build my project with the Apple Hardened Runtime enabled.
How to do that?
My current build steps are currently:
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: