Cannot build for ios
See original GitHub issueThe project fails to build on xcode with the following error:
clang: error: no such file or directory: '/Users/myusername/WebstormProjects/LetsJobItApp/react-native/ios/node_modules/react-native-background-fetch/ios/RNBackgroundFetch/RNBackgroundFetch+AppDelegate.m'
clang: error: no input files
Works fine on Android.
Your Environment
- Plugin version: 2.5.6
- Platform: iOS
- OS version: 10.14.5 (18F132)
- Device manufacturer / model: MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports)
- React Native version (
react-native -v
): 0.55.4 - Plugin config:
{
minimumFetchInterval: 15, // <-- minutes (15 is minimum allowed)
stopOnTerminate: false, // <-- Android-only,
startOnBoot: true // <-- Android-only
}
Expected Behavior
Should build
Actual Behavior
Doesn’t build
Steps to Reproduce
N/A
Context
Framework Search Paths
does not have any reference to this library.
Debug logs
N/A
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Cannot build iOS app to iPhone device - Apple Developer
I am testing an ios app using xcode 10.2. 1; the app runs properly in the various simulators available with xcode. If I...
Read more >flutter - can't build IOS - Stack Overflow
1 Answer 1 · Backup ios/Runner folder. · Delete the ios folder. · Run flutter create (your project name) . · Paste your...
Read more >Solution - Xcode Won't Build Or Run - Zero To App Store
This can be achieved by going to Product > Clean Build Folder . Or by using the keyboard shortcut Cmd + Shift +...
Read more >Can't build for device after 15.4.1 update : r/iOSProgramming
However now I can't build for device as it runs a newer iOS version than Xcode support. Anyone else experience this ?
Read more >Flutter cannot build for iOS when CPATH is set. #76939 - GitHub
Flutter build for iOS fails if CPATH is set to header include location. If I remove CPATH the issue is gone but I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
react-native unlink react-native-background-fetch
Podfile
andpod install
npm uninstall
I had a similar issue, but the files in my case were even more corrupted and/or file paths were even more inaccurate. Enough was installed to mess up the build, but not enough was installed for npm uninstall to be able to find everything to uninstall it. I had to manually search for and removed any references to rnbackgroundfetch. I’m guessing this has to do with recent changes to filepaths in the latest version of react native but I’m not really sure. I’m using react native 0.61.5.