- 参考 testerhome.com/topics/3783…
- git clone git@github.com:bytedance/Fastbot_iOS.git
- cd Fastbot_iOS/Fastbot_iOS/
- pod install --repo-update 提示 bash: pod: command not found
- sudo gem install cocoapods
- pod install --repo-update
Ignoring debug-1.7.1 because its extensions are not built. Try: gem pristine debug --version 1.7.1
Ignoring rbs-2.8.2 because its extensions are not built. Try: gem pristine rbs --version 2.8.2
Updating local specs repositories
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
Analyzing dependencies
Downloading dependencies
Installing GCDWebServer (3.5.4)
Installing fastbot (0.2.0)
Installing fastbot-stub (0.0.1)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `Fastbot-iOS.xcworkspace` for this project from now on.
Pod installation complete! There are 3 dependencies from the Podfile and 3 total pods installed.
[!] The Podfile contains framework or static library targets (fastbot_stub), for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).
bash-3.2$
运行成功, 这个文章没有问题,完全可以直接使用 就是只能当入门,更深入的使用还需要再研究。 需要研究像 adb monkey test 一样 使用命令行运行,批量在多台设备上执行 可以设定 各个动作的比例, 可以抓取日志,完成后取日志,提供分析等
其实上面的链接就是官方的链接 命令行输入
BUNDLEID=ios.package duration=240 throttle=300 xcodebuild test -workspace /Users/user/Fastbot_iOS/Fastbot-iOS/Fastbot-iOS.xcworkspace -scheme FastbotRunner -configuration Release -destination 'platform=iOS,id=deiveid' -only-testing:FastbotRunner/FastbotRunner/testFastbot
遇到错 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance 解决参考 grok.com/chat/6fda4b… 私有链接
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
xcode-select --print-path
xcode-select --print-path
然后再次执行上面的命令,打印一大量日志,最后卡在
5.99. (in target 'FastbotRunner' from project 'Fastbot-iOS') Testing started
实际并没有执行,还需要再解决 IOS里出现了一个正在载入的 APP安装界面 ,卡在这里了。