-
Notifications
You must be signed in to change notification settings - Fork 421
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
Undefined symbol when building for production with v2.0 #2194
Comments
Hi @DavidI7 -- I couldn't reproduce this. Here's what I did using Xcode 16.2:
This worked fine. Are there any settings you have which deviate from the defaults? And could you provide a minimal repro for this? |
Hi ! First of all, thank you very much for your reply. I attached 2 archives. testy-test has a project with grpc-swift v2.0.
And the second one, testy-test-1.24.2 uses grpc-swift v1.24.2 and the same files from the other project but generated manually by me using protoc. For this one, there's the initial problem that I've opened the issue with - it works if the target version is <18, or throws if the targeted iOS version is 18.0
I tried using both XCode 16.0 and 16.2. |
Thanks for providing those, however, I can archive both of those with Xcode 16.2 (I didn't have a copy of Xcode 16.0 around to try out). Have you tried deleting your derived data? |
I managed to solve it, it was a combination of using only XCode 16.2, cleaning the build folder, deleting DerivedData and making sure to do all of this before using XCode 16.2 if coming from XCode 16.0. I did only parts of this flow before and didn't get it to work, so I'm pretty sure it's something that got cached when I used XCode 16.0. Thank you for your support, I think we can close the issue. If everyone ever encounters this error, make sure you have at least XCode 16.2 and a clean state of the project. |
Describe the bug
When I build the app for debugging, everything works fine. When I try to archive it, I get
I downgraded grpc-swift to 1.24.2 and got something similar (I censored some classes&package names):
However, when I changed the minimum iOS version required from 18.0 to 17.6, that error disappeared for v1.24.2. Obviously, I can't try and do this for v2.0 because GRPCCore's minimum deployment target is 18.0.
To reproduce
Steps to reproduce the bug you've found:
Expected behaviour
You can build for production.
The text was updated successfully, but these errors were encountered: