Skip to content

Support xcarchive on MacOS #2758

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

Merged
merged 1 commit into from
Jul 31, 2025
Merged

Conversation

marekcirkos
Copy link
Contributor

@marekcirkos marekcirkos commented Jul 24, 2025

Resolves issue on zipped ".app" targets for MacOS, and resolves issue:

ERROR: /Users/marek/source-code/ledger/BUILD:11:18: XCArchive ledger/Ledger.xcarchive failed: (Exit 1): make_xcarchive failed: error executing XCArchive command (from target //ledger:archive) bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_apple+/tools/xcarchivetool/make_xcarchive --info_plist ... (remaining 5 arguments skipped)
Traceback (most recent call last):
  File "/private/var/tmp/_bazel_marek/2449a56c93ddd6c135146dab9dca5580/execroot/_main/bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_apple+/tools/xcarchivetool/make_xcarchive.runfiles/_main/../rules_apple+/tools/xcarchivetool/make_xcarchive.py", line 193, in <module>
    _main(
  File "/private/var/tmp/_bazel_marek/2449a56c93ddd6c135146dab9dca5580/execroot/_main/bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_apple+/tools/xcarchivetool/make_xcarchive.runfiles/_main/../rules_apple+/tools/xcarchivetool/make_xcarchive.py", line 140, in _main
    shutil.copytree(
  File "/private/var/tmp/_bazel_marek/2449a56c93ddd6c135146dab9dca5580/external/rules_python++python+python_3_11_aarch64-apple-darwin/lib/python3.11/shutil.py", line 571, in copytree
    with os.scandir(src) as itr:
         ^^^^^^^^^^^^^^^
NotADirectoryError: [Errno 20] Not a directory: 'bazel-out/darwin_arm64-fastbuild-macos-arm64-min14.0-applebin_macos-ST-a610dfc02e27/bin/ledger/ledger.zip'

@luispadron luispadron merged commit feeb7db into bazelbuild:master Jul 31, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants