-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Conversation
…ing change in xcode 8.3
run ci |
lib/services/ios-project-service.ts
Outdated
]; | ||
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 }); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)
lib/services/ios-project-service.ts
Outdated
/** | ||
* Exports .xcarchive for AppStore distribution. | ||
*/ | ||
public async exportDevelopmentArchive(projectData: IProjectData, buildConfig: IBuildConfig, options: { archivePath: string, exportDir?: string, teamID?: string }): Promise<string> { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
…to true on xcodebuild
@rosen-vladimirov you can have another look, please :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After green build
xccrun PackageApplication is now deprecated in XCode 8.3, therefore we're switching to xcodebuild and execute two steps:
.xarchive
to.ipa
related issue: #2668