Different simulator device ID between Jenkins and

2019-08-24 02:44发布

I use this statement xcrun simctl list to get device ID list, but it returns different list between Jenkins and terminal, so I can't start simulator via Jenkins. Picture on Jenkins

And this's picture from terminal List device ID from terminal

1条回答
闹够了就滚
2楼-- · 2019-08-24 03:12

I assume Jenkins is either running as a different user or on a different machine. Those identifiers are UDIDs (Universal Device IDs) which are UUIDs (Universally Unique Identifiers). They are globally unique for every user on every system.

simctl and xcodebuild accept device names so feel free to use "iPhone X" instead. You can also create new simulators with a custom name if you need to avoid collisions or select a specific OS version where you can't share UDIDs.

查看更多
登录 后发表回答