【发布时间】:2015-10-19 08:21:59
【问题描述】:
从这个答案我做了一些解决方法 https://stackoverflow.com/a/26031521/677596
适用于 xcode 6.3 及以下版本
您还可以使用 launchd 在 iOS 模拟器上从 SSH 会话,通过制作 LaunchAgent 并手动加载 / 开始,或使用“launchctl submit”。
现在切换到 xcode 6.4 后,此解决方法在运行测试时会导致一些暂时性问题:
2015-07-27 18:20:10.024 xcodebuild[82019:35808239] Metadata.framework [Error]: _MDAccessCopyClientPort failed retrying
2015-07-27 18:20:10.024 xcodebuild[82019:35810614] Metadata.framework [Error]: couldn't get the client port
Testing failed:
Test target VoyagerTests encountered an error (Test session exited(-1) without checking in. If you believe this error represents a bug, please attach the log file at /var/folders/zj/17v5xz0n44j10tnn0tzbq8380000gq/T/com.apple.dt.XCTest-status/Session-2015-07-27_18:20:02-vjq6dO.log)
但是,如果我只是在不加载 LaunchAgent 的情况下运行测试,那么它可以正常工作。有没有人经历过同样的事情?是不是说明Xcode6.4已经修复了这个问题?
【问题讨论】:
标签: xcode xcode6 ios-simulator xcodebuild xcode6.4