From e8015a18298d32cf5d3c07c277a84e9c81c982f5 Mon Sep 17 00:00:00 2001 From: TheAchiever6823 Date: Thu, 10 Sep 2026 02:03:40 -0700 Subject: [PATCH] Order onnxruntime embed-removal script after codesign The 'Remove embedded static onnxruntime' post-build script declares no inputs, so the build system may run it concurrently with the framework signing task. When the delete lands mid-sign the build fails with "CodeSign failed ... onnxruntime.framework: No such file or directory". Declare each stub framework's _CodeSignature/CodeResources as an input file so the delete is sequenced after signing completes. --- project.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/project.yml b/project.yml index 4941ce9..b501311 100644 --- a/project.yml +++ b/project.yml @@ -84,6 +84,13 @@ targets: postBuildScripts: - name: Remove embedded static onnxruntime basedOnDependencyAnalysis: false + # Declare the stub frameworks' signatures as inputs so the build system orders this + # delete AFTER "Sign onnxruntime.framework". With no inputs the two tasks can run + # concurrently, and the delete landing mid-sign fails the build with + # "CodeSign failed ... onnxruntime.framework: No such file or directory". + inputFiles: + - $(TARGET_BUILD_DIR)/$(FRAMEWORKS_FOLDER_PATH)/onnxruntime.framework/_CodeSignature/CodeResources + - $(TARGET_BUILD_DIR)/$(FRAMEWORKS_FOLDER_PATH)/onnxruntime_extensions.framework/_CodeSignature/CodeResources script: | set -euo pipefail FRAMEWORKS_PATH="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"