Open vakhidbetrakhmadov opened 2 weeks ago
After some debugging, i think i was able to find the issue. Following patch seems to resolve the issue.
$ bazelisk build --apple_platform_type=ios --ios_multi_cpus=x86_64,sim_arm64 --//:test_case=apple_framework HelloWorldSwift
...
INFO: Build completed successfully, 2 total actions
I am not sure if the patch is good enough, or if it's event the best way to solve the issue, but i will open a PR, and i will appreciate feedback and guidance 🙏
Hi,
When building an
ios_application
that depends on anapple_framework
fromrules_ios
, following error occures:I have created a minimal repro example that can be found here: https://github.com/vakhidbetrakhmadov/ios_multi_cpus_repro.
To reproduce the error above, please run
bazelisk build --apple_platform_type=ios --ios_multi_cpus=x86_64,sim_arm64 --//:test_case=apple_framework HelloWorldSwift
.As a comparison, when
apple_framework
is replaced withswift_library
, it compiles just fine.To observe that, please run
bazelisk build --apple_platform_type=ios --ios_multi_cpus=x86_64,sim_arm64 --//:test_case=swift_library HelloWorldSwift
.Same is true when compiling for a single arch.
To observe that, please run
bazelisk build --apple_platform_type=ios --ios_multi_cpus=x86_64 --//:test_case=apple_framework HelloWorldSwift
orbazelisk build --apple_platform_type=ios --ios_multi_cpus=sim_arm64 --//:test_case=apple_framework HelloWorldSwift
.