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

For iOS device, create the .ipa from the .app if it wasn't created #86

Merged
merged 2 commits into from
Apr 1, 2016

Conversation

guillaumejenkins
Copy link
Contributor

cordova-ios 3.8.0 and older doesn't generate a .ipa on build. Our extension looks specifically for a .ipa, so we weren't compatible with these older cordova-ios releases. Now, we generate the .ipa from the .app if Cordova didn't create the .ipa.

@MSLaguana

let ipaFile = path.join(buildFolder, path.basename(appFile, path.extname(appFile)) + '.ipa'); // Convert [path]/foo.app to [path]/foo.ipa

return execCommand('xcrun', ['-v', '-sdk', 'iphoneos', 'PackageApplication', `${appFile}`, '-o', `${ipaFile}`], errorLogger).then(() => {
return Q.resolve(ipaFile);
Copy link
Member

Choose a reason for hiding this comment

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

No need for Q.resolve here, it's already in a promisy context

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@MSLaguana
Copy link
Member

Looks good to me.

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

Successfully merging this pull request may close these issues.

None yet

3 participants