jamesisaac / react-native-background-task

Periodic background tasks for React Native apps, cross-platform (iOS and Android), which run even when the app is closed.
MIT License
1.11k stars 110 forks source link

clang: error: no such file or directory: '/Users/harshagoli/Projects/Hail-react-native/ios/node_modules/react-native-background-fetch/ios/RNBackgroundFetch/RNBackgroundFetch+AppDelegate.m' clang: error: no input files #40

Open arshbot opened 6 years ago

arshbot commented 6 years ago

Hey guys,

Set up react-native-background-task and following all the instructions but running into some weird errors for iOS with Xcode 9

clang: error: no such file or directory: '/Users/harshagoli/Projects/Hail-react-native/ios/node_modules/react-native-background-fetch/ios/RNBackgroundFetch/RNBackgroundFetch+AppDelegate.m' clang: error: no input files

Any thoughts on how to fix this?

arshbot commented 6 years ago

Interesting that it's looking for node_modules within ios/

Should that be there?

arshbot commented 6 years ago

Creating a symlink seemed to fix it but I hate myself for doing this. Someone let me know if there's a better way to deal with this. Do this from your project root directory

ln -s $(pwd)/node_modules/ $(pwd)/ios/node_modules