react-native-background-task icon indicating copy to clipboard operation
react-native-background-task copied to clipboard

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

Open arshbot opened this issue 7 years ago • 2 comments

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 avatar May 15 '18 18:05 arshbot

Interesting that it's looking for node_modules within ios/

Should that be there?

arshbot avatar May 15 '18 20:05 arshbot

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

arshbot avatar May 15 '18 20:05 arshbot