bazelbuild / rules_apple

Bazel rules to build apps for Apple platforms.
Apache License 2.0
510 stars 268 forks source link

iOS app has a runtime crash when upgrading from Bazel 6.4 to Bazel 7.1.2 #2514

Open tinder-kaijing opened 2 months ago

tinder-kaijing commented 2 months ago

Description of the bug:

After upgrading Bazel from 6.4 to 7.1.2, iOS app has a runtime crash. Here are more details:

Which category does this issue belong to?

Objective-C Rules

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Since this is a commercial SDK library, and only happened on one functionality in our app, not sure how to provide an example to reproduce it.

Which operating system are you running Bazel on?

macOS 14.5

What is the output of bazel info release?

release 7.1.2

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

return our internal git repo, and commit sha.

If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

No response

Have you found anything relevant by searching the web?

we have some discussion about this issue on two slack channel:

https://ios-dev-at-scale.slack.com/archives/CBVEC7KRQ/p1724283963037899

and

https://bazelbuild.slack.com/archives/CD3QY5C2X/p1724284117717189

Any other information, logs, or outputs that you want to share?

No response

keith commented 2 months ago

I think unfortunately this probably isn't enough to go on. If you diff the exec log or aquery output from before and after you can probably see what changed more specifically. Very likely it's related to linking and either there's a bug in rules_apple or a bug in the one you include that library