Skip to content

RNBackgroundFetch+AppDelegate.m path is wrong #173

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

Closed
holgersindbaek opened this issue Sep 12, 2019 · 2 comments
Closed

RNBackgroundFetch+AppDelegate.m path is wrong #173

holgersindbaek opened this issue Sep 12, 2019 · 2 comments

Comments

@holgersindbaek
Copy link

I'm having some issues getting react-native-background-fetch to run in my detached ExpoKit project. I've installed via npm and run the installation instructions (link and pod install).

First issue is that the RNBackgroundFetch+AppDelegate.m isn't being added to the project correctly:

Screenshot 2019-09-12 at 12 17 28

If you look at the absolute path, it links to /ios/node_modules/, where it should just link to /node_modules. If I run it anyway, I get the following error:

clang: error: no such file or directory: '/Users/holgersindbaek/CloudDrive/HolgerSindbaek/Habitual/Programming/habitual-ios/ios/node_modules/react-native-background-fetch/ios/RNBackgroundFetch/RNBackgroundFetch+AppDelegate.m' clang: error: no input files

If I then change the location, so it is able to find the file correctly like this:

Screenshot 2019-09-12 at 12 24 13

If I then run, I get the following error:

Screenshot 2019-09-12 at 12 25 24

I've been struggling with this for a while. Does anyone know what's going on here?

Your Environment

  • Plugin version: 2.7.0
  • Platform: iOS
  • OS version: 10.14.6 (18G95)
  • Device manufacturer / model: simulator
  • React Native version (react-native -v): 0.59.8
  • Plugin config

Expected Behavior

Package runs

Actual Behavior

Package doesn't run

Context

Install the package

@christocracy
Copy link
Member

Right click on RNBackgroundFetch+AppDelegate.m -> Delete -> Remove References.

Re-add it manually with these instructions

@holgersindbaek
Copy link
Author

I ended up installing the Expo background task package instead. But for those who have the same issue, please try this.

I'm going to mark this as solved for now. Thanks for the quick reply.

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

2 participants