bazelbuild / bazelbuild/rules_apple

error: the following arguments are required: --framework_binary

Open
#1,200 8 comments 0 reactions 0 assignees View on GitHub
P3
Dominant language
Starlark
Stars
593
Forks
334
Avg merge
16h 48m
Merged PRs (30d)
9

Description

ERROR: /Users/liu/Desktop/bazel_ios_projects/demo_application/BUILD:85:16: ImportedDynamicFrameworkProcessor demo_application/demo_application-intermediates/_imported_frameworks/Yoga.framework.zip failed: (Exit 2): sandbox-exec failed: error executing command
(cd /private/var/tmp/_bazel_liu/83466836d208232a80695a023ff2b4b7/sandbox/darwin-sandbox/176/execroot/__main__ && \
exec env - \
APPLE_SDK_PLATFORM=iPhoneSimulator \
APPLE_SDK_VERSION_OVERRIDE=14.5 \
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer \
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk \
TMPDIR=/var/folders/fh/69nshvzd2h98d99cmytnx9nm0000gn/T/ \
XCODE_VERSION_OVERRIDE=12.5.1.12E507 \
/usr/bin/sandbox-exec -f /private/var/tmp/_bazel_liu/83466836d208232a80695a023ff2b4b7/sandbox/darwin-sandbox/176/sandbox.sb /var/tmp/_bazel_liu/install/d07238c5957d0addf241b6be07f3c14b/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/host/bin/external/build_bazel_rules_apple/tools/imported_dynamic_framework_processor/imported_dynamic_framework_processor --slice x86_64 --strip_bitcode --output_zip bazel-out/applebin_ios-ios_x86_64-fastbuild-ST-7bf874b56ea0/bin/demo_application/demo_application-intermediates/_imported_frameworks/Yoga.framework.zip --temp_path bazel-out/applebin_ios-ios_x86_64-fastbuild-ST-7bf874b56ea0/bin/demo_application/demo_application-intermediates/_imported_frameworks/Yoga.framework --framework_file frameworks/Yoga.framework/.DS_Store --framework_file frameworks/Yoga.framework/Info.plist --framework_file frameworks/Yoga.framework/_CodeSignature/CodeResources --framework_file frameworks/Yoga.framework/yoga --codesign /usr/bin/codesign --identity - --force --disable_timestamp --target_to_sign bazel-out/applebin_ios-ios_x86_64-fastbuild-ST-7bf874b56ea0/bin/demo_application/demo_application-intermediates/_imported_frameworks/Yoga.framework --)
usage: imported_dynamic_framework_processor.py [-h]
[--target_to_sign TARGET_TO_SIGN]
[--directory_to_sign DIRECTORY_TO_SIGN]
[--mobileprovision MOBILEPROVISION]
--codesign CODESIGN
[--identity IDENTITY]
[--signed_path SIGNED_PATH]
[--entitlements ENTITLEMENTS]
[--force] [--disable_timestamp]
--framework_binary
FRAMEWORK_BINARY --slice SLICE
[--strip_bitcode]
[--framework_file FRAMEWORK_FILE]
--temp_path TEMP_PATH
--output_zip OUTPUT_ZIP
...
imported_dynamic_framework_processor.py: error: the following arguments are required: --framework_binary
Target //demo_application:demo_application failed to build
INFO: Elapsed time: 0.955s, Critical Path: 0.59s
INFO: 4 processes: 4 internal.
FAILED: Build did NOT complete successfully

Contributor guide

Open the contributing guide

Research direction

Start with BUILD:85 and the imported_dynamic_framework_processor.py invocation shown in the error. Reproduce the //demo_application:demo_application build and inspect how the Yoga.framework files are passed to the processor. Done means the target builds successfully without the missing --framework_binary error, with coverage for the failing invocation if an existing test entry point is found.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.