Skip to content

Plamen5kov/use xcodebuild instead of xcrun #2678

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

Merged
merged 4 commits into from
Apr 3, 2017

Conversation

yyosifov
Copy link
Contributor

@yyosifov yyosifov commented Mar 31, 2017

xccrun PackageApplication is now deprecated in XCode 8.3, therefore we're switching to xcodebuild and execute two steps:

  • archive the application
  • export the .xarchive to .ipa

related issue: #2668

@dtopuzov
Copy link
Contributor

run ci

];
await this.$childProcess.spawnFromEvent("xcodebuild", args, "exit",
{ stdio: buildConfig.buildOutputStdio || 'inherit', cwd: this.getPlatformData(projectData).projectRoot },
{ emitOptions: { eventName: constants.BUILD_OUTPUT_EVENT_NAME }, throwError: false });
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't throwError be true here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rosen-vladimirov Not sure, we've set this in the other spawn. I wanted to keep the flags the same?

Copy link
Contributor

Choose a reason for hiding this comment

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

@yyosifov this has been a mistake - it should be true whenever we want to break the operation (i.e. the next operation has no meaning in case this one fails)

/**
* Exports .xcarchive for AppStore distribution.
*/
public async exportDevelopmentArchive(projectData: IProjectData, buildConfig: IBuildConfig, options: { archivePath: string, exportDir?: string, teamID?: string }): Promise<string> {
Copy link
Contributor

Choose a reason for hiding this comment

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

if it's public, it should be added to the interface

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rosen-vladimirov This doesn't have to be public

@yyosifov
Copy link
Contributor Author

yyosifov commented Apr 3, 2017

@rosen-vladimirov you can have another look, please :)

Copy link
Contributor

@rosen-vladimirov rosen-vladimirov left a comment

Choose a reason for hiding this comment

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

After green build

@yyosifov yyosifov merged commit 1b7d603 into master Apr 3, 2017
@pkoleva pkoleva deleted the plamen5kov/use-xcodebuild-instead-of-xcrun branch May 31, 2017 14:01
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.

4 participants