mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Failed building IOS demo

Open CheungBH opened this issue 3 years ago • 11 comments

Please make sure that this is a build/installation issue and also refer to the troubleshooting documentation before raising any issues.

System information (Please provide as much relevant information as possible)

OS Platform and Distribution (e.g. Linux Ubuntu 16.04, Android 11, iOS 14.4): MacOS 11.0.1 Bazel version: 5.1.1 XCode and Tulsi versions (if iOS): Xcode 12.5.1.12E507, Tulsi Describe the problem:

I am trying to build the IOS demo of mediapipe using tulsi. But when I pressed the "generate" button, it failed.

Failed to retrieve information about the Bazel workspace. This usually means that the contents of a BUILD file are incorrect or flags are missing. Read the message log carefully for details. Project generation failed. Generate[FAIL]: 0.1275s Failed to create Xcode project.

A fatal error occurred. Please check the message window and file a bug if appropriate.

ERROR: /Users/cheungbh/Documents/mediapipe/mediapipe/examples/ios/helloworld/BUILD:34:16: in entitlements rule //mediapipe/examples/ios/helloworld:HelloWorldApp_entitlements: Traceback (most recent call last): File "/private/var/tmp/_bazel_cheungbh/9c36f3b1980dc004d7818f2036a5cae3/external/build_bazel_rules_apple/apple/internal/entitlement_rules.bzl", line 270, column 40, in _entitlements_impl bundling_support.validate_bundle_id(bundle_id) File "/private/var/tmp/_bazel_cheungbh/9c36f3b1980dc004d7818f2036a5cae3/external/build_bazel_rules_apple/apple/internal/bundling_support.bzl", line 100, column 25, in _validate_bundle_id fail("Invalid character(s) in bundle_id: "%s"" % bundle_id) Error in fail: Invalid character(s) in bundle_id: "SEE_IOS_INSTRUCTIONS.mediapipe.examples.HelloWorld" ERROR: /Users/cheungbh/Documents/mediapipe/mediapipe/examples/ios/helloworld/BUILD:34:16: Analysis of target '//mediapipe/examples/ios/helloworld:HelloWorldApp_entitlements' failed ERROR: Analysis of target '//mediapipe/examples/ios/helloworld:HelloWorldApp' failed; build aborted: General failure: Bazel aspects could not be built.

CheungBH avatar May 12 '22 03:05 CheungBH

Actually I have issued this problem before. But I forgot to reply it and it closed... I also read the issue https://github.com/google/mediapipe/issues/2084, but it doesn't have answers to this problem..

CheungBH avatar May 12 '22 03:05 CheungBH

Hi @CheungBH , Did you get a chance to check this closed issue https://github.com/google/mediapipe/issues/50.

sureshdagooglecom avatar May 13 '22 08:05 sureshdagooglecom

Hello. Thanks for your kind reply. Actually, I don't think such an issue is not related to my problem... I met an error of Invalid character(s) in bundle_id, but I cannot see any related information.

CheungBH avatar May 17 '22 15:05 CheungBH

Hi @CheungBH , Please follow this steps to setup Ios demo on MediaPipe.

sureshdagooglecom avatar May 19 '22 16:05 sureshdagooglecom

Hi @CheungBH , Please follow this steps to setup Ios demo on MediaPipe.

Thank you for your reply. Actually, I am exactly following it, but such an error occurs to me when I am building. Screenshot 2022-05-20 at 16 03 28 In this step, when I am pressing generate, this error occurs.

ERROR: /Users/cheungbh/Documents/mediapipe/mediapipe/examples/ios/helloworld/BUILD:34:16: in entitlements rule //mediapipe/examples/ios/helloworld:HelloWorldApp_entitlements: Traceback (most recent call last): File "/private/var/tmp/_bazel_cheungbh/9c36f3b1980dc004d7818f2036a5cae3/external/build_bazel_rules_apple/apple/internal/entitlement_rules.bzl", line 270, column 40, in _entitlements_impl bundling_support.validate_bundle_id(bundle_id) File "/private/var/tmp/_bazel_cheungbh/9c36f3b1980dc004d7818f2036a5cae3/external/build_bazel_rules_apple/apple/internal/bundling_support.bzl", line 100, column 25, in _validate_bundle_id fail("Invalid character(s) in bundle_id: "%s"" % bundle_id) Error in fail: Invalid character(s) in bundle_id: "SEE_IOS_INSTRUCTIONS.mediapipe.examples.HelloWorld" ERROR: /Users/cheungbh/Documents/mediapipe/mediapipe/examples/ios/helloworld/BUILD:34:16: Analysis of target '//mediapipe/examples/ios/helloworld:HelloWorldApp_entitlements' failed ERROR: Analysis of target '//mediapipe/examples/ios/helloworld:HelloWorldApp' failed; build aborted: General failure: Bazel aspects could not be built.

CheungBH avatar May 20 '22 08:05 CheungBH

@sureshdagooglecom Do you have any ideas about it?

CheungBH avatar May 25 '22 15:05 CheungBH

OK. I think nobody will respond

CheungBH avatar May 26 '22 18:05 CheungBH

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar May 26 '22 18:05 google-ml-butler[bot]

Any progresses?

CheungBH avatar Jun 13 '22 18:06 CheungBH

Hello. Any progress about it? This problem has been raised for more than a month

CheungBH avatar Jun 22 '22 04:06 CheungBH

Hello. Any progress about it? This problem has been raised for more than a month

did you change the bundle id in file bundle_id.bzl?

andy380743909 avatar Jul 06 '22 09:07 andy380743909

@CheungBH, Are you still looking resolution on this issue or the issue has been resolved?

kuaashish avatar Jan 06 '23 09:01 kuaashish

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

google-ml-butler[bot] avatar Jan 13 '23 09:01 google-ml-butler[bot]

Closing as stale. Please reopen if you'd like to work on this further.

google-ml-butler[bot] avatar Jan 20 '23 10:01 google-ml-butler[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Jan 20 '23 10:01 google-ml-butler[bot]