Skip to content
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

handtrackinggpu build failure with provisioning profile #1596

Closed
bugmany opened this issue Feb 8, 2021 · 6 comments
Closed

handtrackinggpu build failure with provisioning profile #1596

bugmany opened this issue Feb 8, 2021 · 6 comments
Assignees
Labels
legacy:hands Hand tracking/gestures/etc platform:ios MediaPipe IOS issues type:build/install For Build and Installation issues

Comments

@bugmany
Copy link

bugmany commented Feb 8, 2021

handtrackinggpu build failure with provisioning profile,
before few days I build it success and run it ok, but when I upgrade mediapipe version 0.7 to 0.8, then rebuild handtrackinggpu failed,

build error log as below:
mediapipe/mediapipe/examples/ios/handtrackinggpu/BUILD:34:16: Processing and signing HandTrackingGpuApp failed (Exit 1): process-and-sign.sh failed: error executing command bazel-out/ios_arm64-opt/bin/mediapipe/examples/ios/handtrackinggpu/HandTrackingGpuApp-intermediates/process-and-sign.sh
ERROR: Unable to find an identity on the system matching the ones in mediapipe/examples/ios/handtrackinggpu/provisioning_profile.mobileprovision

Note: The failure of target @build_bazel_rules_apple//tools/codesigningtool:codesigningtool (with exit code 1) may have been caused by the fact that it is running under Python 3 instead of Python 2. Examine the error to determine if that appears to be the problem. Since this target is built in the host configuration, the only way to change its version is to set --host_force_python=PY2, which affects the entire build.

If this error started occurring in Bazel 0.27 and later, it may be because the Python toolchain now enforces that targets analyzed as PY2 and PY3 run under a Python 2 and Python 3 interpreter, respectively. See bazelbuild/bazel#7899 for more information.

Target //mediapipe/examples/ios/handtrackinggpu:HandTrackingGpuApp failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.326s, Critical Path: 0.98s
INFO: 9 processes: 4 internal, 3 darwin-sandbox, 2 local.
FAILED: Build did NOT complete successfully

  1. I've re-checked provisioning profile is ok;
  2. I've added --host_force_python=PY2 or --host_force_python=PY3, with the same error as above.

so I did not know why do it, could someone help me, thanks a lot.

@rmothukuru rmothukuru self-assigned this Feb 19, 2021
@rmothukuru rmothukuru added type:build/install For Build and Installation issues legacy:hands Hand tracking/gestures/etc labels Feb 19, 2021
@bugmany
Copy link
Author

bugmany commented Feb 22, 2021

I've re-installed MACOS and re-built, then build successful, but this way is not optimal.

@bugmany bugmany closed this as completed Feb 22, 2021
@bugmany
Copy link
Author

bugmany commented Feb 24, 2021

the issue re-coming, I do not want re-installed MACOS, could someone give good advice?

@bugmany bugmany reopened this Feb 24, 2021
@rmothukuru rmothukuru removed their assignment Apr 14, 2021
@bugmany
Copy link
Author

bugmany commented Apr 16, 2021

hi @sgowroji, the issue still exists, but when i got the issue, i 'll re-installed MACOS, but the way is not good solution, now i can close the issue.

@bugmany bugmany closed this as completed Apr 16, 2021
@dangkhoasdc
Copy link

I got the same issue after upgrading Xcode 14.0. To fix the issue, I update build_bazel_rules_apple in WORKSPACE as following:

http_archive(
    name = "build_bazel_rules_apple",
    sha256 = "90e3b5e8ff942be134e64a83499974203ea64797fd620eddeb71b3a8e1bff681",
    url = "https://github.com/bazelbuild/rules_apple/releases/download/1.1.2/rules_apple.1.1.2.tar.gz",
    patches = [
        # Bypass checking ios unit test runner when building MP ios applications.
        "@//third_party:build_bazel_rules_apple_bypass_test_runner_check.diff"
    ],
    patch_args = [
        "-p1",
    ],
)

@ColinYangByte
Copy link

@dangkhoasdc I checked it on macOS13 and Xcode14.1, it works. Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:hands Hand tracking/gestures/etc platform:ios MediaPipe IOS issues type:build/install For Build and Installation issues
Projects
None yet
Development

No branches or pull requests

5 participants
@dangkhoasdc @bugmany @rmothukuru @ColinYangByte and others