Skip to content

Conversation

Badlazzor
Copy link
Contributor

Define new internal platform types so that the build-for-simulator step can use archive as the primary codebase for delivering its artifacts

@bitrise-ip-bot
Copy link

bitrise-ip-bot commented Sep 17, 2025

Summary

This PR adds support for simulator platforms by defining new internal platform types (iOS Simulator, watchOS Simulator, tvOS Simulator) and implementing logic to skip IPA export for platforms that don't support it. The changes enable the build-for-simulator step to share code with the archive step.

Walkthrough

File Summary
step/platform.go Added simulator platform constants and parsing logic, made ParsePlatform public, added canExportIPA method
step/step.go Added early return logic to skip IPA export for incompatible platforms using canExportIPA check
step/platform_test.go Added tests for new simulator platform parsing functionality
go.mod, go.sum, vendor/ Updated dependencies and vendor files

@Badlazzor Badlazzor changed the title [ACI-4171] share code with sim build step Draft: [ACI-4171] share code with sim build step Sep 17, 2025
Copy link

@bitrise-ip-bot bitrise-ip-bot left a comment

Choose a reason for hiding this comment

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

This is an AI-generated review. Please review it carefully.

Actionable comments posted: 1

case strings.HasPrefix(sdk, "appletvsimulator"):
return tvOSSimulator, nil
default:
return "", fmt.Errorf("unkown SDKROOT: %s", sdk)

Choose a reason for hiding this comment

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

🐛 Bug

Typo in error message: "unkown" should be "unknown"

🔄 Suggestion:

Suggested change
return "", fmt.Errorf("unkown SDKROOT: %s", sdk)
return "", fmt.Errorf("unknown SDKROOT: %s", sdk)

@Badlazzor Badlazzor requested a review from a team September 18, 2025 09:10
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.

2 participants