flurry / react-native-flurry-sdk

React Native Flurry SDK
Apache License 2.0
45 stars 13 forks source link

Pod Spec file not found #45

Open cryptixcoder opened 11 months ago

cryptixcoder commented 11 months ago

Describe the bug When following the additional instructions for iOS integration to enable Push Notifications. When I got to the pod instructions I attempted to add the following: pod 'react-native-flurry-sdk', :path => '../node_modules/react-native-flurry-sdk/ios', :subspecs => ['FlurrySDK-Push']

I then ran the following commands: cd ios && pod install && cd ..

I then received the following error for cocoapods:

[!] No podspec found for `react-native-flurry-sdk` in `../node_modules/react-native-flurry-sdk/ios

After I looked at the react-native-flurry-sdk directory under node_modules I saw that the spec file was at ../node_modules/react-native-flurry-sdk and not ../node_modules/react-native-flurry-sdk/ios so I changed the pod line in the podfile to point to the base node_module and ran the pod install and the install finished. But when I went to run the react native ios build, it failed due to not being able to find the ReactNativeFlurry.h file. Is there something I'm doing wrong?

This Bug is About Please choose the closest item by replacing [ ] with [x].

Platform Please choose the platform(s) that you are having the issue by replacing [ ] with [x].

Environment Please tell us the versions of SDKs you are using. If you are not sure about React Native version, you can run react-native --version under your project.

To Reproduce Steps to reproduce the behavior: I simply followed the instructions given in this repo.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Are you using Flurry Push/Messaging? Yes (iOS) Are you using CocoaPods for React Native integration? Yes

Add any other context about the problem here.

flurrydev commented 10 months ago

Make sure that you open the xcworkspace version of the project.

Please check to make sure that you have the following two folders in your project:

Under Pods:

Screenshot 2023-11-13 at 1 22 34 PM

And under Development Pods:

Screenshot 2023-11-13 at 1 23 25 PM

I did not see the error you had reported. But I did see the following:

Screenshot 2023-11-13 at 2 10 26 PM

The purpose of this code is to support both newer and older versions of the plugin, but for simplicity you can replace `#if __has_include(<Flurry-iOS-SDK/FlurryMessaging.h>)

import <Flurry-iOS-SDK/FlurryMessaging.h>

elif __has_include(<Flurry_iOS_SDK/FlurryMessaging.h>)

import <Flurry_iOS_SDK/FlurryMessaging.h>

else

import "FlurryMessaging.h"

endif`

with the following code: @import Flurry_Messaging;