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

Created on 2 Feb 2018  路  9Comments  路  Source: evollu/react-native-fcm

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.

Most helpful comment

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

All 9 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

I got the same error. It fixed by your comment. Thank you @l1v3

Thank you @l1v3 , it works, you made my day.

How can I add this fix to version control ?

Change Pods -> TARGETS -> nanopb -> iOS Development Target to iOS8.0

Please change Pods -> TARGETS -> nanopb -> iOS Development Target to iOS8.0
Default value is 4.3

Thank you @l1v3 , you are amazing!

Thanks it works.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andryuwka picture andryuwka  路  6Comments

gplopes picture gplopes  路  6Comments

sf577 picture sf577  路  3Comments

Keksike picture Keksike  路  5Comments

Przemocny picture Przemocny  路  3Comments