question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot build for ios

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
christocracycommented, May 24, 2019
  • react-native unlink react-native-background-fetch
  • Remove the plugin from Podfile and pod install
  • npm uninstall
0reactions
annieneedscoffeecommented, Dec 11, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found