react-native-background-geolocation: Unable get the app running after expo upgrade to 51 - both Ios & android
Recently we tried to upgraded to expo 51, have been getting build error on both platforms. For both platform during build gets the error leading from location-manager
Your Environment
- Plugin version: 4.16.0
- Platform: iOS or Android: Both
- OS version: Unable to get the build running
- Device manufacturer / model:
- React Native version (
react-native -v): 0.74.5 - Expo : 51.0.0
- Plugin config
PASTE_YOUR_CODE_HERE
Expected Behavior
Should be succesfull build on npx expo run:android npx expo run:ios
Actual Behavior
- For npx expo run:android FAILURE: Build failed with an exception.
What went wrong: Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.
Could not resolve all dependencies for configuration ‘:app:debugCompileClasspath’. Could not find any matches for com.transistorsoft:tslocationmanager:+ as no versions of com.transistorsoft:tslocationmanager are available. Searched in the following locations: - https://developer.huawei.com/repo/com/transistorsoft/tslocationmanager/maven-metadata.xml Required by: project :app > project :react-native-background-geolocation
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org.
- For Ios npx expo run:ios › Linking catchapp » catchapp.debug.dylib ⚠️ ld: ignoring duplicate libraries: ‘-lc++’ ⚠️ ld: Could not find or use auto-linked framework ‘CoreAudioTypes’: framework ‘CoreAudioTypes’ not found ⚠️ ld: Could not parse or use implicit file ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore.tbd’: cannot link directly with ‘SwiftUICore’ because product being built is not an allowed client of it ❌ Undefined symbols for architecture arm64 ┌─ Symbol: OBJC_CLASS$_TSBackgroundFetch └─ Referenced from: in TSLocationManager[arm64]21
❌ ld: symbol(s) not found for architecture arm64
Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hermes-engine' from project 'Pods')
Run script build phase '[CP-User] [RN]Check rncore' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-Fabric' from project 'Pods')
Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')
› 2 error(s), and 6 warning(s)
CommandError: Failed to build iOS project. “xcodebuild” exited with error code 65.
Steps to Reproduce
- Update expo from 50 - 51
- Rebuild the project
Context
Debug logs
Logs
PASTE_YOUR_LOGS_HERE
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 32 (16 by maintainers)
@abhinandhand it’s deprecated but this plugin will support new architecture pretty soon, and until then this property is what you want I believe https://docs.expo.dev/versions/latest/sdk/build-properties/#pluginconfigtypeandroid /
newArchEnabledset to falseHere’s the auto-generated
android/build.gradle(@see@generatedfor lines automatically added by my plugins):If you want to know exactly which maven urls are missing, see the React Native auto-linking Setup Instructions (not the Expo instructions)