Different simulator device ID between Jenkins and terminal

泄露秘密 提交于 2019-12-13 04:40:08

问题


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.

And this's picture from terminal


回答1:


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.



来源:https://stackoverflow.com/questions/54209342/different-simulator-device-id-between-jenkins-and-terminal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!