Skip to content

Conversation

@janoshrubos
Copy link
Contributor

@janoshrubos janoshrubos commented Oct 26, 2020

PR Checklist

What is the current behavior?

After changing CFBundleName in Info.plist, the app is built, but can't be installed because of missing .ipa file.

What is the new behavior?

App is built, installed and started, respecting the CFBundleName.

Fixes #5424

@cla-bot cla-bot bot added the cla: yes label Oct 26, 2020
Copy link
Member

@rigor789 rigor789 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks lika a reasonable fix to me - however I wonder if this is ever called before any .ipa exists in the output folder - in those cases, this might fail.

Does running a custom CFBundleName on device work after running ns clean in a project? That would likely be sufficient to confirm if this will work or not!

Perhaps we could fall back to ${projectData.projectName}.ipa if ipaFileName is empty.

this.$fs.readDirectory(
this._platformData.getBuildOutputPath(buildOptions)
),
(directory) => path.extname(directory) === ".ipa"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(directory) => path.extname(directory) === ".ipa"
(entry) => path.extname(entry) === ".ipa"

Minor suggestion, since we are not strictly dealing with directories.

@janoshrubos
Copy link
Contributor Author

This looks lika a reasonable fix to me - however I wonder if this is ever called before any .ipa exists in the output folder - in those cases, this might fail.

Does running a custom CFBundleName on device work after running ns clean in a project? That would likely be sufficient to confirm if this will work or not!

Perhaps we could fall back to ${projectData.projectName}.ipa if ipaFileName is empty.

After running ns clean it works well with the custom CFBundleName on device, but i like the idea to fall back with ${projectData.projectName}.ipa if ipaFileName is empty.

@rigor789 rigor789 added this to the 7.0.12 milestone Nov 2, 2020
@rigor789 rigor789 merged commit ca32dc2 into NativeScript:master Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CFBundleName cannot be changed

2 participants