-
Notifications
You must be signed in to change notification settings - Fork 16k
Description
What version of protobuf and what language are you using?
Version: 3.21.3
Language: Objective-C
What operating system (Linux, Windows, ...) and version?
MacOS
What runtime / compiler are you using (e.g., python version or gcc version)
clang version: 14.0.0
What did you do?
Steps to reproduce the behavior:
- Consume the protobuf library as a pod via the Protobuf-C++ spec.
- Build the project on XCode 14.3
What did you expect to see
A successful build.
What did you see instead?
Build fails with the following error -
ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This linker error disappears when the iOS deployment target is set to a minimum of iOS 11.
There is a workaround where missing static libraries can be added to the correct path in XCode 14.3 but Apple does not recommend doing this.
The right approach would be to update the deployment target versions across Protobuf-C++.podspec, Protobuf.podspec and the xcode project.
Anything else we should know about your project / environment