Could not find auto-linked framework 'TSBackgroundFetch' Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_TSBackgroundFetch"
See original GitHub issueYour Environment
- Plugin version: 4.0.4
- Platform: iOS
- OS version: 12 xcode 13.1
- Device manufacturer / model:
- React Native version (
react-native -v):0.64.2 - Plugin config
Expected Behavior
Project should compile
Actual Behavior
ld: warning: ignoring file …/node_modules/react-native-background-fetch/ios/RNBackgroundFetch/TSBackgroundFetch.xcframework/ios-arm64_armv7/TSBackgroundFetch.framework/TSBackgroundFetch, missing required architecture x86_64 in file …/node_modules/react-native-background-fetch/ios/RNBackgroundFetch/TSBackgroundFetch.xcframework/ios-arm64_armv7/TSBackgroundFetch.framework/TSBackgroundFetch (2 slices) Undefined symbols for architecture x86_64: “OBJC_CLASS$_TSBackgroundFetch”, referenced from: objc-class-ref in RNBackgroundFetch+AppDelegate.o objc-class-ref in libRNBackgroundFetch.a(RNBackgroundFetch.o) objc-class-ref in TSLocationManager(TSLocationManager.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Steps to Reproduce
pod install try to build error thrown
Context
Trying to build the project
Debug logs
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (5 by maintainers)
Top Related StackOverflow Question
I found my problem it was in the project.pbxproj file where there were references to react-native-background-fetch.
thank you for the help
I try with version 4.4.4 for react-native-background-geolocation but …