Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid buildNumber NaN on IOs #2725

Open
LeoSouquet opened this issue Nov 24, 2024 · 2 comments
Open

Invalid buildNumber NaN on IOs #2725

LeoSouquet opened this issue Nov 24, 2024 · 2 comments

Comments

@LeoSouquet
Copy link

Build/Submit details page URL

https://expo.dev/accounts/drleos/projects/test_app/submissions/b48721a5-4795-4406-bae2-a0e55c1177d7

Summary

When trying to build for "eas build --platform ios"

I get this error :
"
Invalid buildNumber NaN
Error: build command failed."

However, I cannot get this to work, whatever I try

Managed or bare?

bare

Environment

expo-env-info:
expo-env-info 1.2.1 environment info:
System:
OS: macOS 15.1.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.20.4 - /opt/homebrew/opt/node@18/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.7.0 - /opt/homebrew/opt/node@18/bin/npm
Watchman: 2024.10.21.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.0, iOS 18.0, macOS 15.0, tvOS 18.0, visionOS 2.0, watchOS 11.0
IDEs:
Android Studio: 2024.2 AI-242.23339.11.2421.12483815
Xcode: 16.0/16A242d - /usr/bin/xcodebuild
npmPackages:
@expo/webpack-config: ~19.0.1 => 19.0.1
expo: ^50.0.20 => 50.0.21
expo-router: ~3.4.10 => 3.4.10
react: 18.2.0 => 18.2.0
react-native: 0.73.6 => 0.73.6
react-native-web: ~0.19.6 => 0.19.13
npmGlobalPackages:
eas-cli: 13.4.1
Expo Workflow: bare

npx expo-doctor

✔ Check package.json for common issues
✔ Check Expo config for common issues
✔ Check for common project setup issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for issues with Metro config
✔ Check npm/ yarn versions
✔ Check if the project meets version requirements for submission to app stores
✔ Check for app config fields that may not be synced in a non-CNG project
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check native tooling versions
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✖ Check that native modules use compatible support package versions for installed Expo SDK

Error output

When trying to build for "eas build --platform ios"

I get this error :
"
Invalid buildNumber NaN
Error: build command failed."

Reproducible demo or steps to reproduce from a blank project

When trying to build for "eas build --platform ios"

I get this error :
"
Invalid buildNumber NaN
Error: build command failed."

However this is my app.json:
{
"expo": {
"name": "lamine",
"scheme": "index",
"slug": "test_app",
"version": "1.0.8",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"contentFit": "contain",
"backgroundColor": "#5e17eb"
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "ios.lamine.test",
"buildNumber": "4.0.0"

And this is my eas.json

{
"cli": {
"version": ">= 4.1.2",
"appVersionSource": "remote"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"android": {
"buildType": "app-bundle",
"gradleCommand": ":app:assembleRelease"
}
},
"preview": {
"distribution": "internal"
},
"production": {
"autoIncrement": true

Thanks in advance,

@LeoSouquet LeoSouquet added the needs review Issue is ready to be reviewed by a maintainer label Nov 24, 2024
@szdziedzic
Copy link
Member

Seems like a bug on our end 🤔

What's the output of eas build:version:get if you run it locally? Would you mind running the eas build command with EXPO_DEBUG=1 so I can see a whole stack trace?

@szdziedzic
Copy link
Member

If you don't care about remote app version management you can try to set "appVersionSource": "local" to unblock yourself in this situation.

@szdziedzic szdziedzic added eas build and removed needs review Issue is ready to be reviewed by a maintainer labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants