conan.tools.apple.is_apple_os()¶
- is_apple_os(conanfile)¶
returns True if OS is Apple one (Macos, iOS, watchOS, tvOS or visionOS)
conan.tools.apple.to_apple_arch()¶
- to_apple_arch(conanfile, default=None)¶
converts conan-style architecture into Apple-style arch
conan.tools.apple.XCRun()¶
- class XCRun(conanfile, sdk=None, use_settings_target=False)¶
XCRun is a wrapper for the Apple xcrun tool used to get information for building.
- Parameters:
conanfile – Conanfile instance.
sdk – Will skip the flag when
False
is passed and will try to adjust the sdk it automatically ifNone
is passed.use_settings_target – Try to use
settings_target
in case they exist (False
by default)
- find(tool)¶
find SDK tools (e.g. clang, ar, ranlib, lipo, codesign, etc.)
- property sdk_path¶
obtain sdk path (aka apple sysroot or -isysroot
- property sdk_version¶
obtain sdk version
- property sdk_platform_path¶
obtain sdk platform path
- property sdk_platform_version¶
obtain sdk platform version
- property cc¶
path to C compiler (CC)
- property cxx¶
path to C++ compiler (CXX)
- property ar¶
path to archiver (AR)
- property ranlib¶
path to archive indexer (RANLIB)
- property strip¶
path to symbol removal utility (STRIP)
- property libtool¶
path to libtool
- property otool¶
path to otool
- property install_name_tool¶
path to install_name_tool