def METHOD_NAME(self):
    if self.settings.os == "Macos":
        if not getattr(self, "settings_target", None):
            #  not a build_require , but can be fine since its build as a ppr:b, but nothing to do
            return
        # this is where I want to be, expecting this as a build_require for a host
        target_os = str(self.settings_target.os)
        arch_flag = self.settings_target.arch
        target_version= self.settings_target.os.version
    elif self.settings.os == "iOS": # old style 1 profile, don't use
        target_os = str(self.settings.os)
        arch_flag = self.settings.arch
        target_version = self.settings.os.version
    else:
        #hackingtosh ? hu
        raise ConanInvalidConfiguration("Building for iOS on a non Mac platform? Please tell me how!")
    if self.options.toolchain_target == "auto":
        toolchain_target = self._guess_toolchain_target(target_os, arch_flag)
    else:
        toolchain_target = self.options.toolchain_target
    if arch_flag == "armv8":
        arch_flag = "arm64"
    elif arch_flag == "armv8.3":
        arch_flag = "arm64e"
    cmake_options = "-DENABLE_BITCODE={} -DENABLE_ARC={} -DENABLE_VISIBILITY={} -DENABLE_STRICT_TRY_COMPILE={}".format(
        self.options.enable_bitcode,
        self.options.enable_arc,
        self.options.enable_visibility,
        self.options.enable_strict_try_compile
    )
    # Note that this, as long as we specify (overwrite) the ARCHS, PLATFORM has just limited effect,
    # but PLATFORM need to be set in the profile so it makes sense, see ios-cmake docs for more info
    cmake_flags = "-DPLATFORM={} -DDEPLOYMENT_TARGET={} -DARCHS={} {}".format(
        toolchain_target, target_version, arch_flag, cmake_options
    )
    self.env_info.CONAN_USER_CMAKE_FLAGS = cmake_flags
    self.output.info("Setting toolchain options to: {}".format(cmake_flags))
    cmake_wrapper = os.path.join(self.package_folder, "bin", "cmake-wrapper")
    self.output.info("Setting CONAN_CMAKE_PROGRAM to: {}".format(cmake_wrapper))
    self.env_info.CONAN_CMAKE_PROGRAM = cmake_wrapper
    tool_chain = os.path.join(self.package_folder,
                                "lib",
                                "cmake",
                                "ios-cmake",
                                "ios.toolchain.cmake")
    self.env_info.CONAN_CMAKE_TOOLCHAIN_FILE = tool_chain
    # add some more env_info, for the case users generate a toolchain file via conan and want to access that info
    self.env_info.CONAN_ENABLE_BITCODE_FLAG = str(self.options.enable_bitcode)
    self.env_info.CONAN_ENABLE_ARC_FLAG = str(self.options.enable_arc)
    self.env_info.CONAN_ENABLE_VISIBILITY_FLAG = str(self.options.enable_visibility)
    self.env_info.CONAN_ENABLE_STRICT_TRY_COMPILE_FLAG = str(self.options.enable_strict_try_compile)
    # the rest should be exported from profile info anyway