Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 2.18 KB

DEVELOP.md

File metadata and controls

69 lines (52 loc) · 2.18 KB

DEVELOP

Doc for developers

Clone code to local

git clone --depth 5 https://github.com/alibaba/tidevice

Certificate

各种安全证书间的关系及相关操作

Inspect usbmuxd data

Project https://github.com/danielpaulus/go-ios is a golang implementation of ios developer tools.

Use this tools to capture and analysis binary data looks better then what I have done before.

git clone https://github.com/danielpaulus/go-ios
cd go-ios
go build

sudo ./go-ios dproxy

Pair

  1. Retrieve Device Public Key from device
  2. Generate Host Key

View DeveloperDiskImage Content

For example

hdiutil mount /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/14.0/DeveloperDiskImage.dmg
tree /Volumes/DeveloperDiskImage

How to Package WDA.ipa

Build WebDriverAgentRunnerUITests-Runner.app with the following command. .app should located in /tmp/derivedDataPath/Release-iphoneos

$ xcodebuild build-for-testing -scheme WebDriverAgentRunner -sdk iphoneos -configuration Release -derivedDataPath /tmp/derivedDataPath
$ cd /tmp/derivedDataPath
$ cd Build/Products/Release-iphoneos # path might be different

# Created folder `Payload` and put `.app` into it
# then compressed to zip, change extention name to `.ipa`. That's all.
$ mkdir Payload && mv *.app Payload
$ zip -r WDA.ipa Payload

# test if ipa is fine
$ tidevice parse WDA.ipa
$ tidevice install WDA.ipa # install to device

Publish package to Pypi using Github Actions

Ref: https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

References