-
Notifications
You must be signed in to change notification settings - Fork 143
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 #251
Comments
Glancing at the assemblies a bit, I see checks for the |
Yes, broadly. We need to do a bit more than that though, as we also need to add conditions to the guards in the I'm chatting with some colleagues to work out what the best strategy will be here. |
Ah, apologies, |
Some additional context in case it's helpful: Testing on my own fork using Swift Package Manager, it wasn't enough for me to define the |
Any update on this? I may have some bandwidth to attempt a PR for this in the next few weeks, but I don't know if I have all the necessary context. |
Yeah, this one is going to be very hard. Removing all the I think we need a SwiftPM enhancement here first, to make it possible to conditionally exclude some file types based on platform. I've filed a request for it here: https://bugs.swift.org/browse/SR-14109 In the meantime, I'll investigate one other possibility that might work and see how it goes. |
Hey @Lukasa, just checking in here. Any luck on the "other possibility"? I understand that SwiftPM doesn't have the necessary support to remove files for a given target, but since CocoaPods does support this, would it be possible to publish a new Podspec that specializes the source_files directive in order to remove the |
Yes, I think this is a reasonable idea in the short term. I’m continuing to pursue this issue with teams internally. |
FYI, I believe this is blocking being able to use gRPC on watchOS in an app to be submitted to the App Store. |
Describe the bug
Xcode version: 12.1 (12A7403)
swift-nio-ssl version: 2.10.0
When linking a watchOS app with swift-nio-ssl, 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.
Actual 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:
nio-ssl.log
Additional notes
This issue was originally created for the grpc-swift repo here, but it appears to actually be an issue with swift-nio-ssl instead, which is a dependency of grpc-swift. This discussion under that issue may provide more context.
Another important detail: 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:
As noted by @Lukasa, we may be able to remove the assembly code from this project when compiling for watchOS.
The text was updated successfully, but these errors were encountered: