yukiarrr / ios-build-action

Build iOS project (.xcodeproj, .xcworkspace), and export ipa
MIT License
279 stars 135 forks source link

increment-build-number treats false as literal false value #115

Open paulschreiber opened 1 year ago

paulschreiber commented 1 year ago

Description

If increment-build-number receives false instead of "", it treats it has the literal value false. This is passed on to Fastlane, resulting in MyProjectName_vers.c having an invalid version value:

extern const unsigned char MyProjectNameVersionString[];
extern const double MyProjectNameVersionNumber;

const unsigned char MyProjectNameVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:MyProjectName  PROJECT:Terraso LandPKS-false" "\n";
const double MyProjectNameVersionNumber __attribute__ ((used)) = (double)false.;

This fails to compile.