Skip to content

[Build] Build failed while try to build onnxruntime lib for iOS arm64 arch on Mac M1. #975

@Eric-Edf

Description

@Eric-Edf

Describe the issue

Hello, dear developers.
I am trying to customize an onnxruntime lib for iOS arm64, since the current onnxruntime lib in cocapods does not support "ai.onnx.contrib:AudioDecoder(-1) is not a registered function/op".
I think that function is defined in onnxruntime extensions. To do that, I try to build onnxruntime first, and then use the built lib to construct onnxruntime extensions lib.
I use the following instructions:
"./build.sh --config Release --build_dir build/iOS --ios --osx_arch arm64 --apple_deploy_target 13.0 --cmake_generator Xcode --apple_sysroot $(xcrun --sdk iphoneos --show-sdk-path) --cmake_extra_defines CMAKE_SYSTEM_PROCESSOR=arm64 --cmake_extra_defines CMAKE_OSX_ARCHITECTURES=arm64 --cmake_extra_defines onnxruntime_USE_PREINSTALLED_EIGEN=ON --cmake_extra_defines eigen_SOURCE_PATH=/opt/homebrew/opt/eigen/include/eigen3 --cmake_extra_defines onnxruntime_BUILD_UNIT_TESTS=OFF --cmake_extra_defines onnxruntime_ENABLE_ONNX_TESTS=OFF --cmake_extra_defines BUILD_SHARED_LIBS=OFF --use_extensions --disable_ml_ops --use_coreml --parallel --skip_tests --minimal_build extended --build_apple_framework"
But I encountered the following problem:
"
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'onnxruntime')
/Users/edifier_2025/Desktop/Chujun/code/202507_July/onnxruntime-extension-build/onnxruntime/build/iOSSimulator/Release/onnxruntime.xcodeproj: warning: tasks in 'Copy Headers' are delayed by unsandboxed script phases; set ENABLE_USER_SCRIPT_SANDBOXING=YES to enable sandboxing (in target 'onnxruntime' from project 'onnxruntime')
note: Run script build phase 'CMake PreBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'onnxruntime' from project 'onnxruntime')
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'onnxruntime' from project 'onnxruntime')
note: Run script build phase 'Generate CMakeFiles/onnxruntime_generate_def' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'onnxruntime_generate_def' from project 'onnxruntime')
** BUILD FAILED **

The following build commands failed:
ScanDependencies /Users/edifier_2025/Desktop/Chujun/code/202507_July/onnxruntime-extension-build/onnxruntime/build/iOSSimulator/Release/build/libpng.build/Release-iphonesimulator/Objects-normal/arm64/pngwutil.o /Users/edifier_2025/Desktop/Chujun/code/202507_July/onnxruntime-extension-build/onnxruntime/build/iOSSimulator/Release/_deps/opencv-src/3rdparty/libpng/pngwutil.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'libpng' from project 'onnxruntime')
ScanDependencies /Users/edifier_2025/Desktop/Chujun/code/202507_July/onnxruntime-extension-build/onnxruntime/build/iOSSimulator/Release/build/libpng.build/Release-iphonesimulator/Objects-normal/arm64/pngwtran.o /Users/edifier_2025/Desktop/Chujun/code/202507_July/onnxruntime-extension-build/onnxruntime/build/iOSSimulator/Release/_deps/opencv-src/3rdparty/libpng/pngwtran.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'libpng' from project 'onnxruntime')
(2 failures)
"
So my questions are :

  1. How to fix the build problem?
  2. How can I get this "ai.onnx.contrib:AudioDecoder(-1) is not a registered function/op" solved in my project? Am my method correct?

Urgency

No response

Target platform

iOS

Build script

./build.sh --config Release --build_dir build/iOS --ios --osx_arch arm64 --apple_deploy_target 13.0 --cmake_generator Xcode --apple_sysroot $(xcrun --sdk iphoneos --show-sdk-path) --cmake_extra_defines CMAKE_SYSTEM_PROCESSOR=arm64 --cmake_extra_defines CMAKE_OSX_ARCHITECTURES=arm64 --cmake_extra_defines onnxruntime_USE_PREINSTALLED_EIGEN=ON --cmake_extra_defines eigen_SOURCE_PATH=/opt/homebrew/opt/eigen/include/eigen3 --cmake_extra_defines onnxruntime_BUILD_UNIT_TESTS=OFF --cmake_extra_defines onnxruntime_ENABLE_ONNX_TESTS=OFF --cmake_extra_defines BUILD_SHARED_LIBS=OFF --use_extensions --disable_ml_ops --use_coreml --parallel --skip_tests --minimal_build extended --build_apple_framework

Error / output

2025-07-21 10:49:49,164 tools_python_utils [INFO] - flatbuffers module is not installed. parse_config will not be available
2025-07-21 10:49:49,167 build [DEBUG] - Command line arguments:
--build_dir /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS --config Release --build_dir build/iOS --ios --osx_arch arm64 --apple_deploy_target 13.0 --cmake_generator Xcode --apple_sysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.5.sdk --cmake_extra_defines CMAKE_SYSTEM_PROCESSOR=arm64 --cmake_extra_defines CMAKE_OSX_ARCHITECTURES=arm64 --cmake_extra_defines onnxruntime_USE_PREINSTALLED_EIGEN=ON --cmake_extra_defines eigen_SOURCE_PATH=/opt/homebrew/opt/eigen/include/eigen3 --cmake_extra_defines onnxruntime_BUILD_UNIT_TESTS=OFF --cmake_extra_defines onnxruntime_ENABLE_ONNX_TESTS=OFF --cmake_extra_defines BUILD_SHARED_LIBS=OFF --use_extensions --disable_ml_ops --use_coreml --parallel --skip_tests --minimal_build extended --build_apple_framework
Namespace(build_dir='build/iOS', config=['Release'], update=False, build=False, clean=False, parallel=0, nvcc_threads=-1, test=False, skip_tests=True, compile_no_warning_as_error=False, enable_nvtx_profile=False, enable_memory_profile=False, enable_training=False, enable_training_apis=False, enable_training_ops=False, enable_nccl=False, mpi_home=None, nccl_home=None, use_mpi=False, enable_onnx_tests=False, path_to_protoc_exe=None, fuzz_testing=False, enable_symbolic_shape_infer_tests=False, gen_doc=None, gen_api_doc=False, use_cuda=False, cuda_version=None, cuda_home=None, cudnn_home=None, enable_cuda_line_info=False, enable_cuda_nhwc_ops=False, enable_pybind=False, build_wheel=False, wheel_name_suffix=None, skip_keras_test=False, build_csharp=False, build_nuget=False, msbuild_extra_options=None, build_java=False, build_nodejs=False, build_objc=False, build_shared_lib=True, build_apple_framework=True, cmake_extra_defines=[['CMAKE_SYSTEM_PROCESSOR=arm64'], ['CMAKE_OSX_ARCHITECTURES=arm64'], ['onnxruntime_USE_PREINSTALLED_EIGEN=ON'], ['eigen_SOURCE_PATH=/opt/homebrew/opt/eigen/include/eigen3'], ['onnxruntime_BUILD_UNIT_TESTS=OFF'], ['onnxruntime_ENABLE_ONNX_TESTS=OFF'], ['BUILD_SHARED_LIBS=OFF']], target=None, x86=False, rv64=False, arm=False, arm64=False, arm64ec=False, buildasx=False, riscv_toolchain_root='', riscv_qemu_path='', msvc_toolset=None, windows_sdk_version=None, android=False, android_abi='arm64-v8a', android_api=27, android_sdk_path='', android_ndk_path='', android_cpp_shared=False, android_run_emulator=False, use_gdk=False, gdk_edition='.', gdk_platform='Scarlett', ios=True, visionos=False, macos=None, apple_sysroot='/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.5.sdk', ios_toolchain_file='', visionos_toolchain_file='', xcode_code_signing_team_id='', xcode_code_signing_identity='', cmake_generator='Xcode', osx_arch='arm64', apple_deploy_target='13.0', enable_address_sanitizer=False, use_binskim_compliant_compile_flags=False, disable_memleak_checker=False, build_wasm=False, build_wasm_static_lib=False, emsdk_version='3.1.59', enable_wasm_simd=False, enable_wasm_threads=False, disable_wasm_exception_catching=False, enable_wasm_api_exception_catching=False, enable_wasm_exception_throwing_override=True, wasm_run_tests_in_browser=False, enable_wasm_profiling=False, enable_wasm_debug_info=False, wasm_malloc=None, emscripten_settings=None, use_extensions=True, extensions_overridden_path=None, cmake_path='cmake', ctest_path='ctest', skip_submodule_sync=False, use_mimalloc=False, use_dnnl=False, dnnl_gpu_runtime='', dnnl_opencl_root='', use_openvino=None, dnnl_aarch64_runtime='', dnnl_acl_root='', use_coreml=True, use_webnn=False, use_snpe=False, snpe_root=None, use_nnapi=False, use_vsinpu=False, nnapi_min_api=None, use_jsep=False, use_qnn=False, qnn_home=None, use_rknpu=False, use_preinstalled_eigen=False, eigen_path=None, enable_msinternal=False, llvm_path=None, use_vitisai=False, use_tvm=False, tvm_cuda_runtime=False, use_tvm_hash=False, use_tensorrt=False, use_tensorrt_builtin_parser=True, use_tensorrt_oss_parser=False, tensorrt_home=None, test_all_timeout='10800', use_migraphx=False, migraphx_home=None, use_full_protobuf=False, llvm_config='', skip_onnx_tests=False, skip_winml_tests=False, skip_nodejs_tests=False, enable_msvc_static_runtime=False, use_dml=False, dml_path='', use_winml=False, winml_root_namespace_override=None, dml_external_project=False, use_telemetry=False, enable_wcos=False, enable_lto=False, enable_transformers_tool_test=False, use_acl=None, acl_home=None, acl_libs=None, use_armnn=False, armnn_relu=False, armnn_bn=False, armnn_home=None, armnn_libs=None, build_micro_benchmarks=False, minimal_build=['extended'], include_ops_by_config=None, enable_reduced_operator_type_support=False, disable_contrib_ops=False, disable_ml_ops=True, disable_rtti=False, disable_types=[], disable_exceptions=False, rocm_version=None, use_rocm=False, rocm_home=None, code_coverage=False, enable_lazy_tensor=False, ms_experimental=False, enable_external_custom_op_schemas=False, external_graph_transformer_path=None, enable_cuda_profiling=False, use_cann=False, cann_home=None, enable_rocm_profiling=False, use_xnnpack=False, use_azure=False, use_cache=False, use_triton_kernel=False, use_lock_free_queue=False, allow_running_as_root=False)
2025-07-21 10:49:49,169 build [DEBUG] - Defaulting to running update, build [and test for native builds].
2025-07-21 10:49:49,170 build [INFO] - Build started
2025-07-21 10:49:49,170 build [INFO] - git submodule sync --recursive
Synchronizing submodule url for 'cmake/external/emsdk'
Synchronizing submodule url for 'cmake/external/libprotobuf-mutator'
Synchronizing submodule url for 'cmake/external/onnx'
Synchronizing submodule url for 'cmake/external/onnx/third_party/benchmark'
Synchronizing submodule url for 'cmake/external/onnx/third_party/pybind11'
2025-07-21 10:49:49,275 build [INFO] - git submodule update --init --recursive
2025-07-21 10:49:49,372 build [INFO] - Generating CMake build tree
[onnxruntime-extensions] Loading onnxruntime-extensions from: FetchContent
2025-07-21 10:49:49,373 build [INFO] - /Applications/CMake.app/Contents/bin/cmake /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/cmake --compile-no-warning-as-error -Donnxruntime_RUN_ONNX_TESTS=OFF -Donnxruntime_GENERATE_TEST_REPORTS=ON -DPython_EXECUTABLE=/opt/homebrew/opt/[email protected]/bin/python3.13 -DPYTHON_EXECUTABLE=/opt/homebrew/opt/[email protected]/bin/python3.13 -Donnxruntime_USE_MIMALLOC=OFF -Donnxruntime_ENABLE_PYTHON=OFF -Donnxruntime_BUILD_CSHARP=OFF -Donnxruntime_BUILD_JAVA=OFF -Donnxruntime_BUILD_NODEJS=OFF -Donnxruntime_BUILD_OBJC=OFF -Donnxruntime_BUILD_SHARED_LIB=ON -Donnxruntime_BUILD_APPLE_FRAMEWORK=ON -Donnxruntime_USE_DNNL=OFF -Donnxruntime_USE_NNAPI_BUILTIN=OFF -Donnxruntime_USE_VSINPU=OFF -Donnxruntime_USE_RKNPU=OFF -Donnxruntime_USE_LLVM=OFF -Donnxruntime_ENABLE_MICROSOFT_INTERNAL=OFF -Donnxruntime_USE_VITISAI=OFF -Donnxruntime_USE_TENSORRT=OFF -Donnxruntime_USE_TENSORRT_BUILTIN_PARSER=ON -Donnxruntime_USE_TVM=OFF -Donnxruntime_TVM_CUDA_RUNTIME=OFF -Donnxruntime_TVM_USE_HASH=OFF -Donnxruntime_USE_MIGRAPHX=OFF -Donnxruntime_DISABLE_CONTRIB_OPS=OFF -Donnxruntime_DISABLE_ML_OPS=ON -Donnxruntime_DISABLE_RTTI=ON -Donnxruntime_DISABLE_EXCEPTIONS=OFF -Donnxruntime_MINIMAL_BUILD=ON -Donnxruntime_EXTENDED_MINIMAL_BUILD=ON -Donnxruntime_MINIMAL_BUILD_CUSTOM_OPS=ON -Donnxruntime_REDUCED_OPS_BUILD=OFF -Donnxruntime_USE_DML=OFF -Donnxruntime_USE_WINML=OFF -Donnxruntime_BUILD_MS_EXPERIMENTAL_OPS=OFF -Donnxruntime_USE_TELEMETRY=OFF -Donnxruntime_ENABLE_LTO=OFF -Donnxruntime_USE_ACL=OFF -Donnxruntime_USE_ACL_1902=OFF -Donnxruntime_USE_ACL_1905=OFF -Donnxruntime_USE_ACL_1908=OFF -Donnxruntime_USE_ACL_2002=OFF -Donnxruntime_USE_ACL_2308=OFF -Donnxruntime_USE_ARMNN=OFF -Donnxruntime_ARMNN_RELU_USE_CPU=ON -Donnxruntime_ARMNN_BN_USE_CPU=ON -Donnxruntime_USE_JSEP=OFF -Donnxruntime_ENABLE_NVTX_PROFILE=OFF -Donnxruntime_ENABLE_TRAINING=OFF -Donnxruntime_ENABLE_TRAINING_OPS=OFF -Donnxruntime_ENABLE_TRAINING_APIS=OFF -Donnxruntime_ENABLE_CPU_FP16_OPS=OFF -Donnxruntime_USE_NCCL=OFF -Donnxruntime_BUILD_BENCHMARKS=OFF -Donnxruntime_USE_ROCM=OFF -Donnxruntime_GCOV_COVERAGE=OFF -Donnxruntime_USE_MPI=OFF -Donnxruntime_ENABLE_MEMORY_PROFILE=OFF -Donnxruntime_ENABLE_CUDA_LINE_NUMBER_INFO=OFF -Donnxruntime_USE_CUDA_NHWC_OPS=OFF -Donnxruntime_BUILD_WEBASSEMBLY_STATIC_LIB=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_CATCHING=ON -Donnxruntime_ENABLE_WEBASSEMBLY_API_EXCEPTION_CATCHING=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_THROWING=ON -Donnxruntime_WEBASSEMBLY_RUN_TESTS_IN_BROWSER=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_THREADS=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_DEBUG_INFO=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_PROFILING=OFF -Donnxruntime_ENABLE_LAZY_TENSOR=OFF -Donnxruntime_ENABLE_EXTERNAL_CUSTOM_OP_SCHEMAS=OFF -Donnxruntime_ENABLE_CUDA_PROFILING=OFF -Donnxruntime_ENABLE_ROCM_PROFILING=OFF -Donnxruntime_USE_XNNPACK=OFF -Donnxruntime_USE_WEBNN=OFF -Donnxruntime_USE_CANN=OFF -Donnxruntime_USE_TRITON_KERNEL=OFF -Donnxruntime_DISABLE_FLOAT8_TYPES=OFF -Donnxruntime_DISABLE_SPARSE_TENSORS=OFF -Donnxruntime_DISABLE_OPTIONAL_TYPE=OFF -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_OSX_DEPLOYMENT_TARGET=13.0 -Donnxruntime_USE_COREML=ON -Donnxruntime_BUILD_SHARED_LIB=ON -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.5.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=13.0 -Dprotobuf_BUILD_PROTOC_BINARIES=OFF -DPLATFORM_NAME=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.5.sdk -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_TOOLCHAIN_FILE=../cmake/onnxruntime_ios.toolchain.cmake -Donnxruntime_USE_EXTENSIONS=ON -Donnxruntime_EXTENSIONS_PATH=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/extensions-src -DCMAKE_SYSTEM_PROCESSOR=arm64 -DCMAKE_OSX_ARCHITECTURES=arm64 -Donnxruntime_USE_PREINSTALLED_EIGEN=ON -Deigen_SOURCE_PATH=/opt/homebrew/opt/eigen/include/eigen3 -Donnxruntime_BUILD_UNIT_TESTS=OFF -Donnxruntime_ENABLE_ONNX_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_TLS_VERIFY=ON -DFETCHCONTENT_QUIET=OFF -G Xcode -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=build/iOS/Release/installed
Ignoring COMPILE_WARNING_AS_ERROR target property and CMAKE_COMPILE_WARNING_AS_ERROR variable.
CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy):
The OLD behavior for policy CMP0104 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

CMake Warning (dev) at CMakeLists.txt:60 (include):
Policy CMP0145 is not set: The Dart and FindDart modules are removed. Run
"cmake --help-policy CMP0145" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /Applications/CMake.app/Contents/share/cmake-3.27/Modules/Dart.cmake:47 (message):
Policy CMP0145 is not set: The Dart and FindDart modules are removed. Run
"cmake --help-policy CMP0145" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:60 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /Applications/CMake.app/Contents/share/cmake-3.27/Modules/Dart.cmake:57 (find_package):
Policy CMP0144 is not set: find_package uses upper-case _ROOT
variables. Run "cmake --help-policy CMP0144" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

CMake variable DART_ROOT is set to:

DART_ROOT-NOTFOUND

For compatibility, find_package is ignoring the variable, but code in a
.cmake module might still use it.
Call Stack (most recent call first):
CMakeLists.txt:60 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

F16C instruction set is not supported.
FMA instruction set is not supported.
AVX instruction set is not supported.
One or more AVX/F16C instruction flags are not supported.
Patch found: /usr/bin/patch
Doing crosscompiling
Loading Dependencies URLs ...
Loading Dependencies ...
-- Populating abseil_cpp
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/abseil_cpp-subbuild
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project abseil_cpp-populate.xcodeproj build -target ALL_BUILD -parallelizeTargets -configuration Debug -hideShellScriptEnvironment

ComputePackagePrebuildTargetDependencyGraph

CreateBuildRequest

SendProjectDescription

CreateBuildOperation

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (3 targets)
Target 'ALL_BUILD' in project 'abseil_cpp-populate'
➜ Explicit dependency on target 'abseil_cpp-populate' in project 'abseil_cpp-populate'
➜ Explicit dependency on target 'ZERO_CHECK' in project 'abseil_cpp-populate'
Target 'abseil_cpp-populate' in project 'abseil_cpp-populate'
➜ Explicit dependency on target 'ZERO_CHECK' in project 'abseil_cpp-populate'
Target 'ZERO_CHECK' in project 'abseil_cpp-populate' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk -x c -c /dev/null

Build description signature: b1179b2ab58b18a0d23178cb70db7003
...
-- Fetch opencv
-- Populating opencv
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project opencv-populate.xcodeproj build -target ALL_BUILD -parallelizeTargets -configuration Debug -hideShellScriptEnvironment

ComputePackagePrebuildTargetDependencyGraph

CreateBuildRequest

SendProjectDescription

CreateBuildOperation

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (3 targets)
Target 'ALL_BUILD' in project 'opencv-populate'
➜ Explicit dependency on target 'opencv-populate' in project 'opencv-populate'
➜ Explicit dependency on target 'ZERO_CHECK' in project 'opencv-populate'
Target 'opencv-populate' in project 'opencv-populate'
➜ Explicit dependency on target 'ZERO_CHECK' in project 'opencv-populate'
Target 'ZERO_CHECK' in project 'opencv-populate' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk -x c -c /dev/null

Build description signature: e81aec5dd6e8c60d8745b650db4743b3
Build description path: /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/XCBuildData/e81aec5dd6e8c60d8745b650db4743b3.xcbuilddata
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'opencv-populate')
PhaseScriptExecution Generate\ CMakeFiles/ZERO_CHECK /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/ZERO_CHECK.build/Script-3F97FE8EC6F865604987F587.sh (in target 'ZERO_CHECK' from project 'opencv-populate')
cd /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild
/bin/sh -c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/ZERO_CHECK.build/Script-3F97FE8EC6F865604987F587.sh
make: `/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/CMakeFiles/cmake.check_cache' is up to date.

note: Run script build phase 'Generate opencv-populate-prefix/src/opencv-populate-stamp/Debug/opencv-populate-patch' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'opencv-populate' from project 'opencv-populate')
note: Run script build phase 'Generate opencv-populate-prefix/src/opencv-populate-stamp/Debug/opencv-populate-update' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'opencv-populate' from project 'opencv-populate')
note: Run script build phase 'Generate CMakeFiles/opencv-populate' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'opencv-populate' from project 'opencv-populate')
note: Run script build phase 'Generate CMakeFiles/Debug/opencv-populate-complete' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'opencv-populate' from project 'opencv-populate')
PhaseScriptExecution Generate\ opencv-populate-prefix/src/opencv-populate-stamp/Debug/opencv-populate-update /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-0EB0E2223E655B73D97D1037.sh (in target 'opencv-populate' from project 'opencv-populate')
cd /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild
/bin/sh -c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-0EB0E2223E655B73D97D1037.sh

PhaseScriptExecution Generate\ opencv-populate-prefix/src/opencv-populate-stamp/Debug/opencv-populate-patch /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-0F18D8F23DCCF54566C2D121.sh (in target 'opencv-populate' from project 'opencv-populate')
cd /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild
/bin/sh -c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-0F18D8F23DCCF54566C2D121.sh
Updated 8 paths from the index

PhaseScriptExecution Generate\ opencv-populate-prefix/src/opencv-populate-stamp/Debug/opencv-populate-configure /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-E60A904F79AA319388F0112E.sh (in target 'opencv-populate' from project 'opencv-populate')
cd /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild
/bin/sh -c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-E60A904F79AA319388F0112E.sh

PhaseScriptExecution Generate\ opencv-populate-prefix/src/opencv-populate-stamp/Debug/opencv-populate-build /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-47B23E3735C660074CF910E5.sh (in target 'opencv-populate' from project 'opencv-populate')
cd /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild
/bin/sh -c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-47B23E3735C660074CF910E5.sh

PhaseScriptExecution Generate\ opencv-populate-prefix/src/opencv-populate-stamp/Debug/opencv-populate-install /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-510EF386742A0A5986CDDA22.sh (in target 'opencv-populate' from project 'opencv-populate')
cd /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild
/bin/sh -c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-510EF386742A0A5986CDDA22.sh

PhaseScriptExecution Generate\ opencv-populate-prefix/src/opencv-populate-stamp/Debug/opencv-populate-test /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-DD3EB3578B290D23EC84DFB5.sh (in target 'opencv-populate' from project 'opencv-populate')
cd /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild
/bin/sh -c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-DD3EB3578B290D23EC84DFB5.sh

PhaseScriptExecution Generate\ CMakeFiles/Debug/opencv-populate-complete /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-F48ACA06C2854D2247FAB5FE.sh (in target 'opencv-populate' from project 'opencv-populate')
cd /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild
/bin/sh -c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-F48ACA06C2854D2247FAB5FE.sh

PhaseScriptExecution Generate\ CMakeFiles/opencv-populate /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-DB61DED58C130B25722EBCEC.sh (in target 'opencv-populate' from project 'opencv-populate')
cd /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild
/bin/sh -c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/opencv-populate.build/Script-DB61DED58C130B25722EBCEC.sh

note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'opencv-populate')
PhaseScriptExecution Generate\ CMakeFiles/ALL_BUILD /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/ALL_BUILD.build/Script-15F0F01085B514FD6E9F76C5.sh (in target 'ALL_BUILD' from project 'opencv-populate')
cd /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild
/bin/sh -c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-subbuild/build/opencv-populate.build/Debug/ALL_BUILD.build/Script-15F0F01085B514FD6E9F76C5.sh
Build all projects

** BUILD SUCCEEDED **
...
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /var/folders/83/tn6hcyj92fxdmf6m3q1pb4fr0000gn/C/com.apple.DeveloperTools/16.4-16F6/Xcode/SDKStatCaches.noindex/iphoneos18.5-22F76-7fa4eea80a99bbfdc046826b63ec4baf.sdkstatcache -fmessage-length=204 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/83/tn6hcyj92fxdmf6m3q1pb4fr0000gn/C/org.llvm.clang/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body @/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/cpuinfo.build/Release-iphoneos/Objects-normal/arm64/7187679823f38a2a940e0043cdf9d637-common-args.resp -MMD -MT dependencies -MF /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/cpuinfo.build/Release-iphoneos/Objects-normal/arm64/init-ec127c3bde0b6e3e33f468a56bb85682.d --serialize-diagnostics /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/cpuinfo.build/Release-iphoneos/Objects-normal/arm64/init-ec127c3bde0b6e3e33f468a56bb85682.dia -c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/deps/pytorch_cpuinfo-src/src/arm/mach/init.c -o /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/cpuinfo.build/Release-iphoneos/Objects-normal/arm64/init-ec127c3bde0b6e3e33f468a56bb85682.o
Failed frontend command:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -Wundef-prefix=TARGET_OS
-fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fmessage-length=204 -ferror-limit 19 -serialize-diagnostic-file /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/cpuinfo.build/Release-iphoneos/Objects-normal/arm64/init-ec127c3bde0b6e3e33f468a56bb85682.dia -fcolor-diagnostics -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-final-dtor-non-final-class -Wno-extra-semi-stmt -Wno-misleading-indentation -Wno-quoted-include-in-framework-header -Wno-implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-elaborated-enum-base -Wno-reserved-identifier -Wno-gnu-folding-constant -fmodule-map-file=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/module.modulemap -fmodule-map-file=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/DarwinBasic.modulemap -fmodule-map-file=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/module.modulemap -fmodule-map-file=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c_standard_library.modulemap -fmodule-map-file=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/DarwinBasic.modulemap -fmodule-map-file=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c_standard_library.modulemap -fmodule-map-file=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c_standard_library.modulemap -fmodule-map-file=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c_standard_library.modulemap -fmodule-map-file=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/TargetConditionals.modulemap -fmodule-map-file=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/module.modulemap -fmodule-map-file=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/module.modulemap -fmodule-map-file=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/Darwin.modulemap -mllvm -extra-vectorizer-passes -o /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/cpuinfo.build/Release-iphoneos/Objects-normal/arm64/init-ec127c3bde0b6e3e33f468a56bb85682.o -disable-free -emit-obj -x c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/pytorch_cpuinfo-src/src/arm/mach/init.c -target-abi darwinpcs -target-cpu apple-a7 -target-feature +zcm -target-feature +zcz -target-feature +v8a -target-feature +aes -target-feature +fp-armv8 -target-feature +neon -target-feature +perfmon -target-feature +sha2 -triple arm64-apple-ios13.0.0 -target-linker-version 1167.5 -target-sdk-version=18.5 -fmodules-validate-system-headers -fno-modulemap-allow-subdirectory-search -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.5.sdk -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17 -fmodule-file=Darwin=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/ExplicitPrecompiledModules/Darwin-7VDMK3ZBMQ0KIMJNEPDKCN061.pcm -fmodule-file=TargetConditionals=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/ExplicitPrecompiledModules/TargetConditionals-5XL3NBAH95XIKNBMETHHSFF4E.pcm -fmodule-file=_Builtin_inttypes=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/ExplicitPrecompiledModules/_Builtin_inttypes-383QVDW6FHMXWFVBQUH6VNGWO.pcm -fmodule-file=_Builtin_stdarg=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/ExplicitPrecompiledModules/_Builtin_stdarg-ESRYXD1S8NO8NMOPEMY6X0RQV.pcm -fmodule-file=_Builtin_stdbool=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/ExplicitPrecompiledModules/_Builtin_stdbool-A7LSC7CRCX86K4Z6ZSDZMYTKK.pcm -fmodule-file=_Builtin_stdint=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/ExplicitPrecompiledModules/_Builtin_stdint-6PZU1MLB1VBGQQPXDOLUGWJL8.pcm -fmodule-file=_errno=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/ExplicitPrecompiledModules/_errno-8IDA5TI8IBWSXCUHYLCIW76MB.pcm -fmodule-file=_stdio=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/ExplicitPrecompiledModules/_stdio-3600UYY4L10G7ZJIKXLPWH78Y.pcm -fmodule-file=_stdlib=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/ExplicitPrecompiledModules/_stdlib-5B08TRYL7LUZHXDJ5IF4F24XY.pcm -fmodule-file=_string=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/ExplicitPrecompiledModules/_string-5FH3L79NJ0QCY50ACIHKKWIPR.pcm -fmodule-file=alloca=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/ExplicitPrecompiledModules/alloca-3DS31OVFRY8VPL73Z16WNCJ3Q.pcm -fmodule-file=sys_types=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/ExplicitPrecompiledModules/sys_types-ETFZBYW3BMU6A9XNEH7Z8D38B.pcm -I /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/pytorch_cpuinfo-build/Release-iphoneos/include -I /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/pytorch_cpuinfo-src/src -I /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/pytorch_cpuinfo-src/include -I /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/utf8_range-src -I /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/cpuinfo.build/Release-iphoneos/DerivedSources-normal/arm64 -I /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/cpuinfo.build/Release-iphoneos/DerivedSources/arm64 -I /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/cpuinfo.build/Release-iphoneos/DerivedSources -F /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/pytorch_cpuinfo-build/Release-iphoneos -isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.5.sdk/usr/local/include -isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include -internal-externc-isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.5.sdk/usr/include -internal-externc-isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -ivfsstatcache /var/folders/83/tn6hcyj92fxdmf6m3q1pb4fr0000gn/C/com.apple.DeveloperTools/16.4-16F6/Xcode/SDKStatCaches.noindex/iphoneos18.5-22F76-7fa4eea80a99bbfdc046826b63ec4baf.sdkstatcache -std=c99 -fskip-odr-check-in-gmf -fmodules -fno-implicit-modules -fmax-type-align=16 -fpascal-strings -fstack-check -fvisibility-inlines-hidden-static-local-var -mdarwin-stkchk-strong-link -fno-odr-hash-protocols -pic-level 2 -fencode-extended-block-signature -stack-protector 1 -fgnuc-version=4.2.1 -fblocks -ffp-contract=on -fclang-abi-compat=4.0 -fno-experimental-relative-c++-abi-vtables -fno-file-reproducible -clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation -clang-vendor-feature=+enableAggressiveVLAFolding -clang-vendor-feature=+revert09abecef7bbf -clang-vendor-feature=+thisNoAlignAttr -clang-vendor-feature=+thisNoNullAttr -clang-vendor-feature=+disableAtImportPrivateFrameworkInImplementationError -O3 -fno-assume-unique-vtables -fdebug-compilation-dir=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/cmake -fcoverage-compilation-dir=/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/cmake -fcommon -fobjc-msgsend-selector-stubs -fregister-global-dtors-with-atexit -ffunction-sections -fdata-sections -fno-strict-return -debugger-tuning=lldb -disable-llvm-verifier -funwind-tables=1 -vectorize-loops -vectorize-slp -clear-ast-before-backend -discard-value-names -main-file-name init.c -mframe-pointer=non-leaf -finline-functions -fdiagnostics-hotness-threshold=0 -fdiagnostics-misexpect-tolerance=0 -D CMAKE_INTDIR="Release-iphoneos" -D CPUINFO_LOG_LEVEL=2 -D CPUINFO_LOG_TO_STDIO=1 -D EIGEN_MPL2_ONLY -D NDEBUG -D ORT_EXTENDED_MINIMAL_BUILD -D ORT_MINIMAL_BUILD -D ORT_MINIMAL_BUILD_CUSTOM_OPS -D ORT_NO_RTTI -D __GCC_HAVE_DWARF2_CFI_ASM=1 -fdefine-target-os-macros -MT dependencies -dependency-file /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/cpuinfo.build/Release-iphoneos/Objects-normal/arm64/init-ec127c3bde0b6e3e33f468a56bb85682.d -skip-unused-modulemap-deps

ScanDependencies /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/libpng.build/Release-iphoneos/Objects-normal/arm64/pngwtran.o /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-src/3rdparty/libpng/pngwtran.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'libpng' from project 'onnxruntime')
cd /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/cmake

Using response file: /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/libpng.build/Release-iphoneos/Objects-normal/arm64/7187679823f38a2a940e0043cdf9d637-common-args.resp

builtin-ScanDependencies -o /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/libpng.build/Release-iphoneos/Objects-normal/arm64/pngwtran.o.scan -- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /var/folders/83/tn6hcyj92fxdmf6m3q1pb4fr0000gn/C/com.apple.DeveloperTools/16.4-16F6/Xcode/SDKStatCaches.noindex/iphoneos18.5-22F76-7fa4eea80a99bbfdc046826b63ec4baf.sdkstatcache -fmessage-length\=204 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/var/folders/83/tn6hcyj92fxdmf6m3q1pb4fr0000gn/C/org.llvm.clang/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -W -Wall -Werror\=return-type -Werror\=non-virtual-dtor -Werror\=address -Werror\=sequence-point -Wformat -Werror\=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-semicolon-before-method-body -Wno-undef -Wno-cast-align -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-sign-compare @/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/libpng.build/Release-iphoneos/Objects-normal/arm64/7187679823f38a2a940e0043cdf9d637-common-args.resp -MMD -MT dependencies -MF /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/libpng.build/Release-iphoneos/Objects-normal/arm64/pngwtran.d --serialize-diagnostics /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/libpng.build/Release-iphoneos/Objects-normal/arm64/pngwtran.dia -c /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-src/3rdparty/libpng/pngwtran.c -o /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/libpng.build/Release-iphoneos/Objects-normal/arm64/pngwtran.o

/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-src/3rdparty/libpng/pngpriv.h:527:16: error: 'fp.h' file not found (in target 'libpng' from project 'onnxruntime')
/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-src/3rdparty/libpng/pngwtran.c:14:10: note: in file included from /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-src/3rdparty/libpng/pngwtran.c:14:

Libtool /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-build/3rdparty/lib/Release/libzlib.a normal (in target 'zlib' from project 'onnxruntime')
cd /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/cmake
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only arm64 -D -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.5.sdk -L/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-build/3rdparty/lib/Release -filelist /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/zlib.build/Release-iphoneos/Objects-normal/arm64/zlib.LinkFileList -dependency_info /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/zlib.build/Release-iphoneos/Objects-normal/arm64/zlib_libtool_dependency_info.dat -o /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-build/3rdparty/lib/Release/libzlib.a

/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/onnxruntime.xcodeproj: warning: tasks in 'Copy Headers' are delayed by unsandboxed script phases; set ENABLE_USER_SCRIPT_SANDBOXING=YES to enable sandboxing (in target 'onnxruntime' from project 'onnxruntime')
note: Run script build phase 'CMake PreBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'onnxruntime' from project 'onnxruntime')
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'onnxruntime' from project 'onnxruntime')
note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'onnxruntime')
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'onnxruntime')
note: Run script build phase 'Generate CMakeFiles/onnxruntime_generate_def' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'onnxruntime_generate_def' from project 'onnxruntime')
** BUILD FAILED **

The following build commands failed:
ScanDependencies /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/libpng.build/Release-iphoneos/Objects-normal/arm64/pngwutil.o /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-src/3rdparty/libpng/pngwutil.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'libpng' from project 'onnxruntime')
ScanDependencies /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/build/libpng.build/Release-iphoneos/Objects-normal/arm64/pngwtran.o /Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/build/iOS/Release/_deps/opencv-src/3rdparty/libpng/pngwtran.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'libpng' from project 'onnxruntime')
(2 failures)
Traceback (most recent call last):
File "/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/tools/ci_build/build.py", line 2971, in
sys.exit(main())
~~~~^^
File "/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/tools/ci_build/build.py", line 2861, in main
build_targets(args, cmake_path, build_dir, configs, num_parallel_jobs, args.target)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/tools/ci_build/build.py", line 1729, in build_targets
run_subprocess(cmd_args, env=env)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/tools/ci_build/build.py", line 860, in run_subprocess
return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env)
File "/Users/edifier_2025/Desktop/Chujun/onnxruntime/onnxruntime/tools/python/util/run.py", line 49, in run
completed_process = subprocess.run(
cmd,
...<6 lines>...
shell=shell,
)
File "/opt/homebrew/Cellar/[email protected]/3.13.3_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/Applications/CMake.app/Contents/bin/cmake', '--build', 'build/iOS/Release', '--config', 'Release', '--', '-parallelizeTargets', '-jobs', '8']' returned non-zero exit status 65.

Visual Studio Version

command shell

GCC / Compiler Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions