运行:xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=xxxxxxxxxxxxx" test
WebDriverAgentRunner 一直打开后就闪退,无法访问 appium 的http://localhost:8100/inspector,

dyld: Library not loaded: @rpath/XCTest.framework/XCTest
2018-03-30 00:58:14.423 xcodebuild[4244:129345] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}

Testing failed:
Early unexpected exit, operation never finished bootstrapping - no restart will be attempted

Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/2C09BBB1-04C3-469A-884C-8CB6F9D3C1BA/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: code signing blocked mmap() of '/private/var/containers/Bundle/Application/2C09BBB1-04C3-469A-884C-8CB6F9D3C1BA/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'


↙↙↙阅读原文可查看相关链接,并与作者交流