question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

XCode build error: -fobjc-weak is not supported on the current deployment target

See original GitHub issue

React 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: xcodeerror

It works great on Android btw.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

9reactions
l1v3commented, Feb 2, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found