Skip to content

Conversation

@aluedeke
Copy link
Collaborator

Summary

Add support for reading device UDID from the GO_IOS_UDID environment variable when the --udid flag is not specified.

Changes

  • Added fallback to GO_IOS_UDID environment variable in main.go
  • The --udid flag takes precedence if both are specified

Usage

Users can now set the device UDID via environment variable:

export GO_IOS_UDID=00008030-000E04D62E8B802E
ios file ls --app=com.example.app

Or continue using the flag as before:

ios --udid=00008030-000E04D62E8B802E file ls --app=com.example.app

Test plan

  • Build succeeds
  • Command works with --udid flag (existing behavior)
  • Command works with GO_IOS_UDID env var (new behavior)
  • Flag takes precedence over env var when both are set

🤖 Generated with Claude Code

Add fallback to GO_IOS_UDID environment variable when --udid flag is not
specified. This allows users to set the device UDID via environment
variable for convenience.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@aluedeke aluedeke force-pushed the aluedeke/feat/udid_from_env branch from 9310cff to 3fb3d88 Compare November 21, 2025 17:05
@gmegidish
Copy link
Collaborator

@aluedeke should you add this to README.md as well?

Copy link
Collaborator

@gmegidish gmegidish left a comment

Choose a reason for hiding this comment

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

Change is simple.

@aluedeke aluedeke merged commit 4b12af7 into main Nov 24, 2025
6 checks passed
@aluedeke aluedeke deleted the aluedeke/feat/udid_from_env branch November 24, 2025 08:26
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