Failed to discover platform for executable TSBackgroundFetch
See original GitHub issueYour Environment
- Plugin version:4.0.2
- Platform: iOS
- OS version: 14.4.2
- Device manufacturer / model: iphone SE
- React Native version (
react-native -v
): 0.64 - Plugin config
Expected Behavior
When i archive the app i expect it to not throw a macho error. and to archive the app successfully
Actual Behavior
App build correcty though it throws an macho error.
Steps to Reproduce
- Install react-native-background-fetch
- set it up and make it work
- archive the app
- Recive macho error.
Context
Im using transistorsoft /react-native-background-geolocation together with this library.
Debug logs
IDEDistrubution.verbose.log
2021-04-22 14:55:50 +0000 Unable to determine platform from macho “/Users/joakimwennergren/Library/Developer/Xcode/Archives/2021-04-22/ActiveQuiz 2021-04-22, 16.54.xcarchive/Products/Applications/ActiveQuiz.app/ActiveQuiz-mobile-app/node_modules/react-native-background-fetch/ios/RNBackgroundFetch/TSBackgroundFetch.xcframework/ios-arm64_x86_64-maccatalyst/TSBackgroundFetch.framework”. Failed with error: “Failed to discover platform for executable /Users/joakimwennergren/Library/Developer/Xcode/Archives/2021-04-22/ActiveQuiz 2021-04-22, 16.54.xcarchive/Products/Applications/ActiveQuiz.app/ActiveQuiz-mobile-app/node_modules/react-native-background-fetch/ios/RNBackgroundFetch/TSBackgroundFetch.xcframework/ios-arm64_x86_64-maccatalyst/TSBackgroundFetch.framework/TSBackgroundFetch”
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
I found the issue at last. Under build phases -> copy bundle resources ,somehow i managed to have included the whole working directory. I removed this directory from the list and it actually works to archive now.
This was not an issue with the library so i’m closing this issue now.
No i’m not using carthage.