Firebase response-native iOS build fails: "-fobjc-weak is not supported in the current target deployment"

If I try to start my customization application from Xcode, xcode will exit with the message:

-fobjc-weak is not supported for the current deployment target

If I run react-native run-ios from the shell, then I also get the error message:

** BUILD FAILED **

The following build commands failed: CompileC / Users / michel / Development / Androdev / Firebase / Sample / FlightLogIos / ios / build / Build / Intermediates.noindex / Pods.build / Debug-iphonesimulator / nanopb.build / Objects-normal / x86_64 /nanopb-dummy.o Target \ Support \ Files / nanopb / nanopb-dummy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

(1 failure)

However, the application is still working. This is annoying, although I think at some point I will need Objective-C code for my project. Does anyone know how to solve this problem?

+7
ios xcode cocoapods react-native-ios
source share
3 answers

I had the same problem with my ionic application and I took the following steps:

  • Close xcode
  • Command line removes ios platform
  • Command line adds ios platform
  • Open xcode and open the PROJECT.xcworks areas
  • Xcode give me some recommendations in the project and apply
  • Clean and build, and it works.

I hope this helps

0
source share

I use Firebase in a regular, non-responsive Xcode-based project. I had the same error when creating a nanopb target. When I checked the settings, the deployment target for nanopb was set to 4.3. Just updating it to something newer, for example, 9.0 fixed this error for me.

+1
source share

I just ran into the same problem. I fixed it for me by increasing the deployment target ios of the nanopb target to iOS 8.0 (its 4.3 by default). Pods Project -> target: nanopb -> iOS Deployment Goal: iOS 8.0

+1
source share

All Articles