Skip to content

wda #61

Description

@shownb

Xcode 不升级,但是调试最新的ios
打开/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
放你想调试的版本
版本zip可以在这里找到,或者找朋友,把最新xcode里面的给你、

真机调试
Xcode虽然可以使设备连接WDA,但是每次只能连接一台设备,而且该软件运行占用内存比较大,所以我们需要使用命令终端来运行WDA,这样方便我们进行自动化或持续集成。
idevice_id 在https://github.com/libimobiledevice/libimobiledevice/releases
udid 可以在Xcode里面Command+Shift+2获取

UDID=$(idevice_id -l | head -n1)
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=$UDID" test

import mss
import time

with mss.mss() as sct:
monitor = {'top': 0, 'left': 0, 'width': 2560, 'height': 1440}
last_time = time.time()
n = 400
for i in range(n):
sct.grab(monitor)

print(n / (time.time() - last_time))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions