XCode build error: -fobjc-weak is not supported on the current deployment target
See original GitHub issueReact Native 0.50.4
I try to build and run simple-fcm-client
but fail.
After ‘pod install’ success:
Analyzing dependencies
Downloading dependencies
Installing Firebase (4.7.0)
Installing FirebaseAnalytics (4.0.5)
Installing FirebaseCore (4.0.12)
Installing FirebaseInstanceID (2.0.7)
Installing FirebaseMessaging (2.0.7)
Installing GoogleToolboxForMac (2.1.3)
Installing Protobuf (3.5.0)
Installing nanopb (0.3.8)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 8 total pods installed.
[!] Automatically assigning platform `ios` with version `8.0` on target `SimpleFcmClient` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Then press build and run button in XCode, I got this error:
It works great on Android btw.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
Build error due to -fobjc-weak is not supported on the current ...
Click the Pods Project in Xcode(Usually at the bottom of the navigator) -> Under Targets, Click "nanopb" -> You will see that the...
Read more >fobjc-weak is not supported on the current deployment target
This is CocoaPods/Xcodeproj#544 for which a fix was released recently. Update the Xcodeproj gem from 1.5.5 to 1.5.6.
Read more >XCode build error at -fobjc-weak flag
clang: error: -fobjc-weak is not supported on the current deployment target. The reason is XCode add new command line ...
Read more >Unable to build plug-in on macOS - MacOSX and iOS - JUCE
If I create an Xcode project using Projucer, Xcode complains: “-fobjc-weak is not supported on the current deployment target” It built fine ...
Read more >Xcode 11.3: can't select deployment target 13.3
I opened my project but couldn't find the iOS deployment target 13.3 when ... of Xcode and I get the same "Could not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey,
i just ran into the same problem. i fixed it for me by increasing the ios deployment target of the nanopb target to iOS 8.0 (its 4.3 per default).
Pods Project -> target: nanopb -> iOS Deployment Target: iOS 8.0
Hope this helps
https://github.com/tnantoka/nanopb-podspec/commit/1ed8f56651ec6c1901996aab48f7dd7fd5ca7592