Skip to content

valdi install simulator argument #24

@catalinmiron

Description

@catalinmiron

valdi install ios --simulator is not picking up the simulator rather, it is trying to install it on device -> this requires provisioning profile mapping inside BUILD.bazel

here's the output

➜ valdi install ios --simulator
No application specified querying available targets...
Running Bazel command: bazel query 'attr("tags", "valdi_ios_application", //...)' 
 checking cached actions
Loading: 0 packages loaded
Only one valdi_application target found, using it: //:test-valdi_app_ios
Building: //:test-valdi_app_ios
Installing iOS application...
Running Bazel command: bazel run //:test-valdi_app_ios --snap_flavor=platform_development --repo_env=VALDI_PLATFORM_DEPENDENCIES=ios --ios_multi_cpus=arm64 
ERROR: /Users/catalinmiron/Documents/code/test-valdi/BUILD.bazel:4:18: in ios_application rule //:test-valdi_app_ios: 
Traceback (most recent call last):
        File "/private/var/tmp/_bazel_catalinmiron/8a60b1bf286eeff68f5360a4eb739a8c/external/build_bazel_rules_apple/apple/internal/ios_rules.bzl", line 446, column 41, in _ios_application_impl
                processor_result = processor.process(
        File "/private/var/tmp/_bazel_catalinmiron/8a60b1bf286eeff68f5360a4eb739a8c/external/build_bazel_rules_apple/apple/internal/processor.bzl", line 748, column 36, in _process
                partial_outputs = [partial.call(p) for p in partials]
        File "/private/var/tmp/_bazel_catalinmiron/8a60b1bf286eeff68f5360a4eb739a8c/external/bazel_skylib/lib/partial.bzl", line 43, column 28, in _call
                return partial.function(*function_args, **function_kwargs)
        File "/private/var/tmp/_bazel_catalinmiron/8a60b1bf286eeff68f5360a4eb739a8c/external/build_bazel_rules_apple/apple/internal/partials/provisioning_profile.bzl", line 41, column 13, in _provisioning_profile_partial_impl
                fail(
Error in fail: ERROR: In @//:test-valdi_app_ios:
Building for device, but no provisioning_profile attribute was set.
ERROR: /Users/catalinmiron/Documents/code/test-valdi/BUILD.bazel:4:18: Analysis of target '//:test-valdi_app_ios' failed
ERROR: Analysis of target '//:test-valdi_app_ios' failed; build aborted
INFO: Elapsed time: 3.279s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target
Failed to run target: //:test-valdi_app_ios

LE: This is running on a fresh valdi bootstrap project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions