bazelbuild / rules_apple

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

framework import by apple_static_framework_import crashed after update bazel from 5.4.1 to 6.5.0 #2429

Open PandapanZ opened 8 months ago

PandapanZ commented 8 months ago

recently we've tryed to update bazel from 5.4.1 to 6.5.0, after update , framework import by "apple_static_framework_import" crashed with "Fatal error NSArray element failed to match the Swift Array Element type" like the url below: https://stackoverflow.com/questions/55557243/fatal-error-nsarray-element-failed-to-match-the-swift-array-element-type-after-x

Any ideas why it wont happen on bazel 5.4.1 ?

mattrobmattrob commented 8 months ago

Hello there. Is it easy for you to create a simple repro example for us to debug?

PandapanZ commented 8 months ago

Hello there. Is it easy for you to create a simple repro example for us to debug?

Thans for reply! it's not easy since the framework is quite complicated and not open source. will bazel build logs be helpful?

luispadron commented 8 months ago

Unless you can get the framework to crash on a simple reproduction case where the only change is the Bazel version it seems tough to understand what the root cause is. I doubt updating Bazel versions would've caused a runtime crash here on it's own.

Have there been changes made to the code that uses that framework or the framework itself between 5 and 6, what about Xcode version updates?