rules_apple icon indicating copy to clipboard operation
rules_apple copied to clipboard

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

Open PandapanZ opened this issue 11 months ago • 3 comments

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 ?

PandapanZ avatar Mar 16 '24 15:03 PandapanZ

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

mattrobmattrob avatar Mar 16 '24 21:03 mattrobmattrob

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?

PandapanZ avatar Mar 17 '24 03:03 PandapanZ

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?

luispadron avatar Mar 18 '24 15:03 luispadron