Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'SpotifyiOS.h' file not found - Example App #223

Open
ghost opened this issue Dec 22, 2022 · 6 comments
Open

'SpotifyiOS.h' file not found - Example App #223

ghost opened this issue Dec 22, 2022 · 6 comments

Comments

@ghost
Copy link

ghost commented Dec 22, 2022

Hey @cjam, I'm getting some Xcode build errors while trying to get the example up and running.

Line 10 of RNSpotifyRemoteError: 'SpotifyiOS.h' file not found

I followed all of steps outline in the README.md and I also ran yarn submodules in the root directory. Here's a video of all the steps I took (I rotated the Spotify client secret shown in the video!)

Any idea of what I did wrong here?

@ghost ghost changed the title 'SpotifyiOS.h' file not found 'SpotifyiOS.h' file not found - Example App Dec 22, 2022
@toddriley
Copy link

There are a couple issues with running the example app. The first is that line 14 of the Podfile assumes the dependency is in a parent directory instead of inside node_modules.

pod 'RNSpotifyRemote', :path => "../../"

If you update this line to be the following:

pod 'RNSpotifyRemote', :path => '../node_modules/react-native-spotify-remote'

Then you'll get the same error because the react-native-spotify-remote dependency is missing from package.json. But if you run:

yarn add react-native-spotify-remote

Then that error will go away.

@cjam
Copy link
Owner

cjam commented Dec 29, 2022

Hey, sorry for the delay. I'll have to take a gander at trying to run the example app again. As for @toddriley's comment, it is true that it points upward two directories. This was so that the example app would use the latest code within the library itself, so it was intended but perhaps it has stopped working as intended.

@johra
Copy link

johra commented Jan 15, 2023

Also getting the same problem, @cjam an update on example would be greatly appreciated. Trying to get the project running using Expo and EAS build. Almost done appart from this and also the linking of xcframework instead of framework.

@chen-rn
Copy link

chen-rn commented Aug 22, 2023

Also getting the same problem, @cjam an update on example would be greatly appreciated. Trying to get the project running using Expo and EAS build. Almost done appart from this and also the linking of xcframework instead of framework.

Hey! did you manage to get this working with a Managed Expo dev client?

@johra
Copy link

johra commented Aug 23, 2023

Yes, but I hade to make a special expo-plugin for it, see here: https://github.com/EkornEvent/Tempofy/blob/master/spotify-plugin/index.js

@chen-rn
Copy link

chen-rn commented Aug 24, 2023

Oh that looks fantastic!

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

No branches or pull requests

4 participants