Skip to content

Conversation

@lpusok
Copy link
Contributor

@lpusok lpusok commented Jun 30, 2025

Checklist

  • I've read and followed the Contribution Guidelines
  • step.yml and README.md is updated with the changes (if needed)

Version

Requires a MINOR version update

Context

SDKROOT build setting can be set to auto inside 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

step.yml Outdated
The input value sets xcodebuild's `-scheme` option.
is_required: true

- platform: automatic
Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
summary: Xcode Platform to build.
summary: Platform to archive the product for

step.yml Outdated
Comment on lines 98 to 102
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`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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 = ""
Copy link
Contributor

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.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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.")

@lpusok lpusok marked this pull request as ready for review July 1, 2025 14:19
@lpusok lpusok merged commit 928b8a3 into master Jul 1, 2025
1 check passed
@lpusok lpusok deleted the SSW-2221-project-parse-fallback branch July 1, 2025 14:22
lpusok added a commit that referenced this pull request Jul 1, 2025
@lpusok lpusok restored the SSW-2221-project-parse-fallback branch July 1, 2025 14:23
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.

3 participants