Open
Description
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:
ipatool failed with an exception: #<CmdSpec::NonZeroExitException
(more output in attached log below)
To reproduce
- Create a new watchOS project in Xcode. This can be a standalone Watch app or iOS companion. It doesn't matter.
- Add grpc-swift as a dependency of the Watch extension with File -> Swift Packages -> Add Package Dependency... Important: When selecting the "GRPC" library, you will need to change the target on the righthand side from the iOS app to the WatchKit extension. The Watch extension is not selected by default.
- Archive the app with Product -> Archive
- After the archive is finished, the Xcode Organizer window will appear. Select "Distribute App"
- Select "Ad Hoc" as the method of distribution
- Important: On the next screen, make sure "Rebuild from Bitcode" is checked. The other fields don't matter. Select "Next"
- Proceed through the next screen until the app starts rebuilding from Bitcode.
- Observe the error
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.