Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Pod Spec file not found #45

Open
1 of 7 tasks
cryptixcoder opened this issue Oct 11, 2023 · 1 comment
Open
1 of 7 tasks

Pod Spec file not found #45

cryptixcoder opened this issue Oct 11, 2023 · 1 comment
Assignees

Comments

@cryptixcoder
Copy link

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].

  • Integration
  • [x ] Analytics
  • [ x] Messaging/Push
  • Remote Configuration
  • Flurry Website/Dashboard
  • Other

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

  • Android
  • iOS
  • tvOS

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.

  • React Native version: 0.71.8
  • react-native-flurry-sdk version: 8.3.0

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
Copy link

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;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants