You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consuming Protobuf via Protobuf-C++ podspec fails on XCode 14.3 #12944
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
Activity
Niranjan-B commentedon May 31, 2023
I can raise a PR to fix this issue, but please let me know if updating the deployment version to iOS 11.0 works.
Just my 2 cents, I think it would be fine since nearly 85% of the users globally are on iOS versions 15.7 and up. (https://gs.statcounter.com/ios-version-market-share)
Sync up the min os versions between the C++ and ObjC CocoaPods support.
Sync up the min os versions between the C++ and ObjC CocoaPods support.
Sync up the min os versions between the C++ and ObjC CocoaPods support.
Sync up the min os versions between the C++ and ObjC CocoaPods support.