-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebuild from Bitcode fails on watchOS #999
Comments
As a test, I excluded the |
I cannot reproduce this locally: I am able to package grpc-swift for watchOS with "Rebuild from bitcode" enabled. I recommend filing a feedback request with Apple using feedbackassistant.apple.com, as this sounds like it may be an Xcode issue. Please leave the feedback number here if you do so. |
Do you mind sharing what version of Xcode you used for your test? I have tried on Xcode 11.6, 12.0.1, and 12.1 GM, and each one fails. Here is my test project where the failure occurs. Would you be willing to try again with this project? Thank you for your patience with this. FYI, I updated the report above to include additional details in step 2 that are easy to miss, namely:
|
I have created a new project following the steps above, but linking a different Swift package (Alamofire), and this issue does not occur on the new project. Here it is in case you are interested: |
I was using 12.1 GM. Can you provide full details of your configuration? macOS version (including build number) and Xcode version (including build number)? I'll try to put together that environment and see if I can reproduce it. I recommend filing an issue with Feedback Assistant anyway, as my success indicates that the issue isn't with Xcode per se. |
macOS 10.15.7 (19H2) I'm happy to provide any other details you need. I will also file the feedback report very soon and reply with the issue number. One other important detail I can share: I started to discover this issue when I uploaded a build to App Store Connect. The upload succeeded, but a few minutes later, I received an email from Apple with this message:
|
I have created the feedback report with Apple and the number is FB8806154. As a test, I followed these repro steps again, but this time using just the Swift NIO package instead of grpc-swift, and the app was able to rebuild from Bitcode without error. This strengthens my suspicion that this is an issue with grpc-swift and not with Xcode. I will attempt to reproduce this on another computer today, and I've asked a few colleagues to try to reproduce as well. I will comment again when I have more information. As you might have inferred, this issue is hugely important for myself and my organization as we are not able to distribute through the App Store without a fix. |
It may be worth trying with swift-nio-ssl. This is an unusual project in that it contains assembly files, which may be relevant. |
@Lukasa Just tried and swift-nio-ssl fails in the same way! Thanks for the great tip! I will try each of the other dependencies of grpc-swift and create issues on relevant repos. Thanks! |
This will likely be just a watchOS problem. It seems that watchOS won’t allow submitting direct assembly code, so we probably just need to update that repo to remove the assembly on watchOS. |
Note that the Swift-NIO-SSL issue itself depends on a Swift issue: https://bugs.swift.org/browse/SR-14109 If this is impacting you, you may want to consider voting for the bug on the Swift board. |
Describe the bug
Xcode version: 12.0.1 (12A7300)
grpc-swift version: 1.0.0-alpha.20
When linking a watchOS app with grpc-swift, the app compiles and runs successfully. But attempting to distribute the app and rebuild from Bitcode (required for App Store release) results in a failure:
(more output in attached log below)
To reproduce
Expected behavior
Xcode should be able to rebuild the app successfully from Bitcode, and you should be able to export the Ad Hoc IPA file afterward.
Actional behavior
The Rebuild from Xcode step fails and the IPA file cannot be exported. I've attached the build log file that contains additional output from the build tool.
bitcode.log
The text was updated successfully, but these errors were encountered: