React-native-fcm: Build error on iOS (Non Cocoapod)

Created on 25 Dec 2017  路  13Comments  路  Source: evollu/react-native-fcm

I using Non Cocoapod & put frameworks under ios/Frameworks folder.
Any Idea?

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_SKPaymentQueue", referenced from: objc-class-ref in FirebaseAnalytics(FIRAInAppPurchaseTransactionReporter_51b6624ff1330bf43a3ed7d9ba76e1ba.o) "_OBJC_CLASS_$_SKProductsRequest", referenced from: objc-class-ref in FirebaseAnalytics(FIRAProductsRequest_b9979194c8f29313114f911734ebc0e8.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Most helpful comment

@vinXpro @niocncn
Took me like 4 hours to fix this.
Build phases > Link binary with libraries > Add StoreKit.framework
captura de pantalla 2018-02-06 a las 13 56 47

All 13 comments

link issue? have you put the frameworks into your project?

yes. I checked in xcode and its has been linked

try rm -rf ~/Library/Developer/Xcode/DerivedData?
or you can post a public repo with the issue

I'm getting the same error, but for the FirebaseAnalytics part, if you add #import "Firebase.h" to the top of AppDelegate.m you'll end up with one error regarding _OBJC_CLASS_$_RNFIRMessaging like what I'm having now.

Any idea? @evollu

image

I ran react-native unlink .... and react-native link ... again and it cleared the above issue!

Now I have this:

image

Doing manual linking fixed the issue for me, it seem something wrong with react-native auto linking.

it has been not working for months

rm -rf ~/Library/Developer/Xcode/DerivedData
this didnot worked for me

same here

@vinXpro @niocncn
Took me like 4 hours to fix this.
Build phases > Link binary with libraries > Add StoreKit.framework
captura de pantalla 2018-02-06 a las 13 56 47

Why is it necessary to add Storekit though?
I don't have In-app purchases in my app.

I don't think StoreKit is the issue. the example project doesn't have that.
The original issue seems to be solved?

Was this page helpful?
0 / 5 - 0 ratings