Closed markst closed 11 months ago
If Xcode is going to continue removing entries from Info.plist if using GENERATE_INFOPLIST_FILE
then perhaps the step needs to conditionally to check presence of CFBundleVersion
?
Something like this for instance:
set val=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${CONFIG_project_info_plist_path}"`
if ( "$val" == 0 ) then
# ---- Current Bundle Version:
/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${CONFIG_project_info_plist_path}"
# ---- Set Bundle Version:
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${CONFIG_new_bundle_version}" "${CONFIG_project_info_plist_path}"
else
# ---- Add Bundle Version:
/usr/libexec/PlistBuddy -c "Add :CFBundleVersion ${CONFIG_new_bundle_version}" "${CONFIG_project_info_plist_path}"
endif
Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.
To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 90 days, so I marked it as stale.
The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".
If no comment left within 21 days, this issue will be closed.
still an issue
Still a problem.
Still a problem.
Still an Issue.
Here is an alternate solution that has worked for us: https://discuss.bitrise.io/t/set-xcode-build-number-not-works-xcode-13-project/19138/4
More info on agvtool
tool here:
https://developer.apple.com/library/archive/qa/qa1827/_index.html
Hi @viktorbenei @ofalvai We have the same issue, the problem is actual for both Xcode 13 and 14 projects.
Are you planning on any solution?
Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.
To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 90 days, so I marked it as stale.
The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".
If no comment left within 21 days, this issue will be closed.
not tested lately. but still as issue far as I’m concerned
Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.
To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 90 days, so I marked it as stale.
The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".
If no comment left within 21 days, this issue will be closed.
I'll close this issue as it doesn't seem to be relevant anymore. We believe an old issue probably has a bunch of context that's no longer relevant, therefore, if the problem still persists, please open a new issue.
Issue description
When using
GENERATE_INFOPLIST_FILE
in Xcode theCFBundleVersion
is automatically removed from the Info.plist.PlistBuddy fails to print current
CFBundleVersion
.Bitrise info