Loading...
Loading...
Compare original and translation side by side
xcodebuildxcrun simctlxcodebuildxcrun simctlundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedxcrun simctl io $UDID screenshot /tmp/screenshot.pngxcrun simctl io $UDID screenshot /tmp/screenshot.pngxcodebuildxcrun simctlxcodebuildxcrun simctlundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined// In a UI test file
func testLogin() {
let app = XCUIApplication()
app.launch()
// Type in text field
app.textFields["email"].tap()
app.textFields["email"].typeText("user@example.com")
// Tap button
app.buttons["Login"].tap()
// Verify result
XCTAssertTrue(app.staticTexts["Welcome"].exists)
}xcodebuild -workspace App.xcworkspace -scheme AppUITests \
-destination "platform=iOS Simulator,id=$UDID" \
test// 在UI测试文件中
func testLogin() {
let app = XCUIApplication()
app.launch()
// 在文本框中输入内容
app.textFields["email"].tap()
app.textFields["email"].typeText("user@example.com")
// 点击按钮
app.buttons["Login"].tap()
// 验证结果
XCTAssertTrue(app.staticTexts["Welcome"].exists)
}xcodebuild -workspace App.xcworkspace -scheme AppUITests \
-destination "platform=iOS Simulator,id=$UDID" \
testundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined| Feature | XcodeBuildMCP | This Skill |
|---|---|---|
| Build | | |
| List sims | | |
| Launch app | | |
| Screenshot | | |
| Tap/Type | | XCUITest framework |
| Session state | Built-in | Environment variables |
| 功能 | XcodeBuildMCP | 本方案 |
|---|---|---|
| 构建 | | |
| 列出模拟器 | | |
| 启动应用 | | |
| 截图 | | |
| 点击/输入 | | XCUITest框架 |
| 会话状态 | 内置支持 | 环境变量管理 |