-
Notifications
You must be signed in to change notification settings - Fork 62
Added Platform input #382
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
Added Platform input #382
Conversation
step.yml
Outdated
| The input value sets xcodebuild's `-scheme` option. | ||
| is_required: true | ||
|
|
||
| - platform: automatic |
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.
I don't have a strong preference, but I'd prefer detect. It suggests how the value is actually found out, unlike automatic, which is a bit too magic.
step.yml
Outdated
| - platform: automatic | ||
| opts: | ||
| title: Platform | ||
| summary: Xcode Platform to build. |
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.
| summary: Xcode Platform to build. | |
| summary: Platform to archive the product for |
step.yml
Outdated
| Xcode Platform to build. | ||
| If not specified, will try to detect the platform from the project settings. | ||
| Its value sets xcodebuild's `-destination` option. | ||
| Example: `-destination generic/platform=iOS Simulator`. |
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.
| Xcode Platform to build. | |
| If not specified, will try to detect the platform from the project settings. | |
| Its value sets xcodebuild's `-destination` option. | |
| Example: `-destination generic/platform=iOS Simulator`. | |
| Platform to archive the product for. | |
| If set to `detect`, the step will try to detect the platform from the Xcode project settings. | |
| Its value sets xcodebuild's `-destination` option. | |
| Example: `-destination generic/platform=iOS Simulator`. |
step/platform.go
Outdated
| tvOS Platform = "tvOS" | ||
| watchOS Platform = "watchOS" | ||
| visionOS Platform = "visionOS" | ||
| undefinedPlatform Platform = "" |
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.
Do we need this value?
step/step.go
Outdated
| return out, fmt.Errorf("failed to read project platform: %s: %s", opts.ProjectPath, err) | ||
| if opts.DestinationPlatform == detectPlatform { | ||
| s.logger.TInfof("Platform is set to 'automatic', detecting platform from the project.") | ||
| s.logger.TWarnf("Please set the Platform Input manually to avoid this step in the future.") |
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.
| s.logger.TWarnf("Please set the Platform Input manually to avoid this step in the future.") | |
| s.logger.TWarnf("Define the platform step input manually to avoid this phase in the future.") |
Checklist
step.ymlandREADME.mdis updated with the changes (if needed)Version
Requires a MINOR version update
Context
SDKROOT build setting can be set to
autoinside Xcode project lately, as there is multi-platform target support.Adding Platform solves this as delegating to manual choice of platform is not neccesary.
It also helps to avoid reading a project-level build settings, where passing additional options caused unexpected failures.
Changes
Investigation details
Decisions