bazelbuild / rules_swift

Bazel rules to build Swift on Apple and Linux platforms
Apache License 2.0
313 stars 138 forks source link

Failed to add "apple_core_data_model" dependency to "swift_library #1305

Open xuzhaocheng opened 2 months ago

xuzhaocheng commented 2 months ago

I saw there was an existing issue about apple_core_data_model at https://github.com/bazelbuild/rules_swift/issues/1160.

But the workaround (-swiftcopt=-wmo --swiftcopt=-num-threads --swiftcopt=0) described in the comment no longer works when I use rule_swift 2.x.

Here is a repo for reproducing this issue:

git@github.com:xuzhaocheng/chatgpt_demo.git
cd chatgpt_demo
git checkout new
cd ChatGPTDemoiOS
bazel build //:ChatGPTDemoApp --swiftcopt=-wmo --swiftcopt=-num-threads --swiftcopt=0 
ningsong-pcor commented 6 days ago

Bump. Can we get an update on this issue as we are running into the same problem?