Reputation: 2528
I am integrating push notification in my app. After following instructions 2 times (from here) again I am stuck in errors.
Podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'placementScript' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!
# Pods for placementScript
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
target 'placementScript-tvOSTests' do
#inherit! :search_paths
# Pods for testing
pod 'react-native-fcm', :path => '../node_modules/react-native-fcm'
pod 'RNReactNativeDocViewer', :path => '../node_modules/react-native-doc-viewer'
pod 'RNFS', :path => '../node_modules/react-native-fs'
pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
pod 'RNViewShot', :path => '../node_modules/react-native-view-shot'
end
target 'placementScriptTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'placementScript-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for placementScript-tvOS
#target 'placementScript-tvOSTests' do
# inherit! :search_paths
# Pods for testing
#end
end
When i build .xcodeproj
- Errors are
Can anybody help? Any reference to video/blog will also be helpful.
Upvotes: 1
Views: 2374
Reputation: 2046
I think you should set the search path to recursive
. Click on your project in Xcode and follow this please:
build Settings > header search path > double click on it and click on + sign, then add the following path to it:
$(SRCROOT)/../../../ios/Pods
Also keep in mind that you have to make your push notification toggle on in capabilities in the Xcode.
finally close your terminals, clear(command+k) and rebuild it(command+R). Here are some sources:
https://ilirhushi.me/reactnative-push-notifications-firebase-ios/
I hope I could help. :)
Upvotes: 1