'TSBackgroundFetch/TSBackgroundFetch.h' file not found xcode 13
See original GitHub issueYour Environment
- Plugin version: “react-native-background-fetch”: “^4.0.1”, “react-native-background-geolocation”: “^4.4.4”,
- Platform: iOS
- OS version: macOs Monteret 12.1
- Device manufacturer / model: MacBook Air (M1, 2020)
- React Native version (
react-native -v): react-native-cli: 2.0.1, react-native: 0.63.4 - Plugin config

Expected Behavior
Should compile without errors
Actual Behavior
build failed to compile

Steps to Reproduce
cd ios pod install cd … yarn ios
Or build the project on Xcode
Context
I’ve followed the documentation to auto-link this with IOS, I’ve checked other issues and tried to change the deployment version, the Android version compiles with success as you can see on the print bellow:

I’ve also tried to uninstall the two libs and reinstall with the latest version.
Debug logs
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
'TSBackgroundFetch/TSBackgroundFetch.h' file not found #902
The build fails both when executed from command line ( react-native run-ios ) or through Xcode. Debug logs. I suspect logs will only...
Read more >Getting error "No such module" using Xcode, but the ...
If the Modules folder is missing the "MyFramework.swiftmodule" folder then the framework will be found but Xcode won't know about its contents so...
Read more >Xcode 12 beta 4 - error compiling … | Apple Developer Forums
An existing framework library workspace compiles without error when targeting iOS device architecture, but when targeting Simulator I receive the following ...
Read more >react-native-background-fetch - npm
Background Fetch is a very simple plugin which attempts to awaken an app in the background about every 15 minutes, providing a short...
Read more >Use Of Unresolved Identifier Error Only Appear When Build ...
It's a common error in Xcode: Use of unresolved identifier. ... RCTLog.h' file not found & Use of undeclared identifier 'RNBRANCHVERSION' buildtime error ......
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 Free
Top 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
@christocracy @mikehardy Thanks for you’re help i’ve just manage to compile a new project on xcode, I used this tutorial to config my mac https://medium.com/@davidjasonharding/developing-a-react-native-app-on-an-m1-mac-without-rosetta-29fcc7314d70 and I used the latest version of
“react-native”: “0.67.2”, “react-native-background-fetch”: “^4.0.4”, “react-native-background-geolocation”: “^4.4.4”
@mikehardy thanks for your help, I’ll upgrade my version on the project!! I hope this works!