Ste*_*all 10 xcode automator ios
是否有任何编程方式来控制xcode > simulate location 命令?我有外部位置测试脚本我想运行,理想情况下,测试套件可能会导致xcode随意更改连接手机的位置.
这是可能的,如果是这样的话怎么样?
不确定它是否正是您所追求的,但您可以通过在方案中设置不同的单元测试包使用不同的位置(或GPX文件).
然后,您可以在每个捆绑包中进行单元测试,以测试您对该特定位置的需求.
xctool也可以使用-only选项在特定目标中运行单元测试:
path/to/xctool.sh \
-workspace YourWorkspace.xcworkspace \
-scheme YourScheme \
test -only SomeTestTarget
Run Code Online (Sandbox Code Playgroud)
有一个名为Pokemon-Go-Controller的GitHub项目可以完全满足您的需求.
解决方案概述:
gpx文件gpx文件并在您的设备上运行它update locationXcodegpx使用某些脚本更新文件,设备位置将自动更新您可以使用此Apple脚本代替自动点击器:
#Will continue update the location to the location name below from Xcode:
property locationName : "pokemonLocation" #name of your gpx filex
###########################
tell application "System Events"
tell process "Xcode"
repeat while true
click menu item locationName of menu 1 of menu item "Simulate Location" of menu 1 of menu bar item "Debug" of menu bar 1
delay 0.2
end repeat
end tell
end tell
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3304 次 |
| 最近记录: |