Closed durgesh2007 closed 2 years ago
Hi @durgesh2007, Thanks for reporting.
"cache": {
"disabled": true,
"key": "17112021" // <- this does not make sense with the line above
}
Hi @dsokal, Thanks for the response,
I have created a build successfully 2 months ago there is no issue, after a few fixes now I'm trying to make a build then gives me the above error.
in 2 months ago build did not set any cache flag, after getting this issue trying to set flags for clearing cache.
Build cmd: eas build --profile release-stage --platform ios --clear-cache
Previous eas.json file(2 months ago): { "builds": { "ios": { "release": { "buildType": "release" }, "release-stage": { "buildType": "release", "releaseChannel": "stage" }, "development": { "buildType": "development-client", "distribution": "internal", "enterpriseProvisioning": "adhoc", "autoIncrement": true, "image": "latest" } } } }
Now eas.json file: { "build": { "preview": { "ios": { "simulator": true, "cache": { "key": "181121" } } }, "release": {}, "release-stage": { "ios": { "releaseChannel": "stage", "cache": { "disabled": true } } }, "development": { "ios": { "enterpriseProvisioning": "adhoc", "autoIncrement": true, "image": "latest", "developmentClient": true, "distribution": "internal" } } }, "cli": { "version": ">= 0.35.0", "requireCommit": true } }
package.json file
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"build:android": "expo build:android",
"test": "jest --watch",
"test:update": "jest -u",
"test:coverage": "jest --coverage",
"test:ci": "jest --ci --coverage --output=html --outputPath=./report.html",
"web": "expo start --web",
"eject": "expo eject"
},
"jest": {
"setupFilesAfterEnv": [
"
pls, let me know if you need more details. I'm struggling with this issue since last week.
Could you please share the build details page URL?
No, actually it's private repo.
Sorry, we can't help you if you don't provide a reproducible demo or steps to reproduce from a blank project.
Hi @dsokal,
Please use the following link to the Reproducible demo or steps to reproduce from a blank project: https://github.com/durgesh2007/sample-facebook-login-code
command: eas build --profile release-stage --platform ios --clear-cache
Please see my attached screenshots:
you are using expo sdk 41 with versions of expo packages that are incompatible with it. run expo doctor
to see information about that.
also, what you provided is not a "minimal" reproducible example. https://stackoverflow.com/help/minimal-reproducible-example
hi @durgesh2007 - it turns out this was on our end. we did not enforce a version of expo-google-app-auth and so your app uses an incompatible version for sdk 41. please change the expo-google-app-auth version to exactly 8.1.7 and run your build again. this is not an issue in sdk 42 and higher.
Dear @brentvatne, Thank you so much, after updating the SDK 42, now the build is generated successfully....!
Summary
iOS build failed: Compatible version of some pods could not be resolved. You are seeing this error because either:
Tried as per above error message said cache.key to invalid or any string in eas.json file No fix yet, need a more clear idea about this error.
eas.json file:
{ "build": { "preview": { "ios": { "node": "16.13.0", "simulator": true, "cache": { "key": "181121" } } }, "release": {}, "release-stage": { "ios": { "releaseChannel": "stage", "image": "latest", "cache": { "disabled": true, "key": "17112021" } } }, "cli": { "version": ">= 0.35.0", "requireCommit": true } }
Environment
C:_Projects\XXX>expo diagnostics
Expo CLI 4.12.10 environment info: System: OS: Windows 10 10.0.19042 Binaries: Node: 14.18.0 - C:\Program Files\nodejs\node.EXE npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 4.0.0.0 AI-193.6911.18.40.6626763 Expo Workflow: managed
C:_Projects\XXX>eas diagnostics
EAS CLI 0.36.1 environment info: System: OS: Windows 10 10.0.19042 Binaries: Node: 14.18.0 - C:\Program Files\nodejs\node.EXE npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD Utilities: Git: 2.27.0.
Error output
Installing pods Installing unimodules: expo-app-auth@10.2.2 from ../node_modules/expo-app-auth/ios expo-application@3.1.2 from ../node_modules/expo-application/ios expo-constants@10.1.3 from ../node_modules/expo-constants/ios expo-device@3.2.0 from ../node_modules/expo-device/ios expo-error-recovery@2.1.0 from ../node_modules/expo-error-recovery/ios expo-facebook@11.0.5 from ../node_modules/expo-facebook/ios expo-file-system@11.0.2 from ../node_modules/expo-file-system/ios expo-font@9.1.0 from ../node_modules/expo-font/ios expo-image-loader@2.1.1 from ../node_modules/expo-image-loader/ios expo-keep-awake@9.1.2 from ../node_modules/expo-keep-awake/ios expo-localization@10.1.0 from ../node_modules/expo-localization/ios expo-location@12.0.4 from ../node_modules/expo-location/ios expo-modules-core@0.4.8 from ../node_modules/expo-modules-core/ios expo-network@3.1.1 from ../node_modules/expo-network/ios expo-notifications@0.11.6 from ../node_modules/expo-notifications/ios expo-permissions@12.0.1 from ../node_modules/expo-permissions/ios expo-splash-screen@0.13.5 from ../node_modules/expo-app-loading/node_modules/expo-splash-screen/ios expo-structured-headers@1.0.1 from ../node_modules/expo-structured-headers/ios expo-updates@0.5.5 from ../node_modules/expo-updates/ios unimodules-app-loader@2.1.0 from ../node_modules/unimodules-app-loader/ios unimodules-barcode-scanner-interface@6.1.0 from ../node_modules/unimodules-barcode-scanner-interface/ios unimodules-camera-interface@6.1.0 from ../node_modules/unimodules-camera-interface/ios unimodules-constants-interface@6.1.0 from ../node_modules/unimodules-constants-interface/ios unimodules-core@7.1.2 from ../node_modules/@unimodules/core/ios unimodules-face-detector-interface@6.1.0 from ../node_modules/unimodules-face-detector-interface/ios unimodules-file-system-interface@6.1.0 from ../node_modules/unimodules-file-system-interface/ios unimodules-font-interface@6.1.0 from ../node_modules/unimodules-font-interface/ios unimodules-image-loader-interface@6.1.0 from ../node_modules/unimodules-image-loader-interface/ios unimodules-permissions-interface@6.1.0 from ../node_modules/unimodules-permissions-interface/ios unimodules-react-native-adapter@6.2.2 from ../node_modules/@unimodules/react-native-adapter/ios unimodules-sensors-interface@6.1.0 from ../node_modules/unimodules-sensors-interface/ios unimodules-task-manager-interface@6.1.0 from ../node_modules/unimodules-task-manager-interface/ios Found some duplicated unimodule packages. Installed the ones with the highest version number. Make sure following dependencies of your project are resolving to one specific version: expo-modules-core, expo-splash-screen Auto-linking React Native modules for target
XXXXXXXX
: RNCAsyncStorage, RNCMaskedView, RNGestureHandler, RNReanimated, RNSVG, RNScreens, RNVectorIcons, lottie-react-native, react-native-geolocation-service, react-native-maps, react-native-safe-area-context, react-native-view-shot, react-native-viewpager, and stripe-react-native Analyzing dependencies Fetching podspec forDoubleConversion
from../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec
Fetching podspec forFolly
from../node_modules/react-native/third-party-podspecs/Folly.podspec
Fetching podspec forglog
from../node_modules/react-native/third-party-podspecs/glog.podspec
Adding spec repotrunk
with CDNhttps://cdn.cocoapods.org/
CocoaPods 1.11.2 is available. To update use:sudo gem install cocoapods
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.11.2 [!] CocoaPods could not find compatible versions for pod "ExpoModulesCore": In Podfile: ExpoModulesCore (from../node_modules/expo-modules-core/ios
) Specs satisfying theExpoModulesCore (from
../node_modules/expo-modules-core/ios)
dependency were found, but they required a higher minimum deployment target. [stderr] [!]<PBXResourcesBuildPhase UUID=
XXXXXXXXXXXXXXX>
attempted to initialize an object with an unknown UUID.XXXXXXXXXXXXXXXX
for attribute:files
. This can be the result of a merge and the unknown UUID is being discarded. Error: Compatible version of some pods could not be resolved. You are seeing this error because either:Reproducible demo or steps to reproduce from a blank project
https://github.com/durgesh2007/sample-facebook-login-code