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

CURRENT_VERSION_NUMBER set to empty for iOS builds, causing build failure #159

Closed
dotNetkow opened this issue Jan 25, 2023 · 1 comment
Closed

Comments

@dotNetkow
Copy link
Contributor

Version: v7+

YAML file:

platforms:
  ios:
    buildNumber: $CI_BUILD_NUMBER
  android:
    versionCode: $CI_BUILD_NUMBER

command:
npx trapeze run ci.yaml -y --ios

Upon executing this yaml file, the iOS app's project.pbxproj file is changed. CURRENT_PROJECT_VERSION is set to empty which causes a parse error which fails the ios build:

Nanaimo::Reader::ParseError - [!] Invalid character ";" in unquoted string
[17:45:10]: ▸ #  -------------------------------------------
[17:45:10]: ▸ #  				SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
[17:45:10]: ▸ #  				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
[17:45:10]: ▸ 290>  				CURRENT_PROJECT_VERSION = ;
[17:45:10]: ▸ ^
[17:45:10]: ▸ #  			};
[17:45:10]: ▸ #  			name = Debug;
[17:45:10]: ▸ #  -------------------------------------------

Previous value:
CURRENT_PROJECT_VERSION = 1;
new value:
CURRENT_PROJECT_VERSION = ;

@mlynch
Copy link
Contributor

mlynch commented Jan 26, 2023

Should be fixed in 7.0.6, it'll default to 1 if the value is missing

@mlynch mlynch closed this as completed Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants