cmcewen / react-native-gcm-ios

iOS GCM for React Native
MIT License
15 stars 3 forks source link

Build Error Xcode #3

Open anmolsahusoft opened 8 years ago

anmolsahusoft commented 8 years ago

I am getting a error when i do pod install for you library Undefined symbols for architecture armv7: "__RCTLogFormat", referenced from: -[RNGcmIOS setBridge:] in libreact-native-gcm-ios.a(RNGcmIOS.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please help to solve this error.

cmcewen commented 8 years ago

Did you set up CocoaPods + React correctly? https://blog.callstack.io/login-users-with-facebook-in-react-native-4b230b847899#.k6t766ks4

anmolsahusoft commented 8 years ago

`# Uncomment this line to define a global platform for your project

source 'https://github.com/CocoaPods/Specs.git' platform :ios, '9.0'

pod 'Google' pod 'Google/CloudMessaging'

target '' do

Uncomment this line if you're using Swift or would like to use dynamic frameworks

use_frameworks!

Pods for

pod 'react-native-gcm-ios', :path => '../node_modules/react-native-gcm-ios'

target '' do inherit! :search_paths

Pods for testing

end

end`

This is what my podfile looks like. I have many dependencies that dosen't require cocapods so i didn't do it for all dependencies. But i will try this approach.