我想在舊項目上添加和運行Xcode 7的UI自動化測試。 這裏就是我所做的:不能在舊項目上運行UI測試
- 增添了新的UI測試目標
- 改變了目標的編譯器版本默認的編譯器(蘋果LLVM 7.0)
- 使用iPhone 6加iOS9模擬器錄製的測試(工作就像一個魅力)
現在,當我嘗試運行記錄的測試,我得到以下錯誤:
failed: caught "NSInternalInconsistencyException", "No target application path specified via test configuration: testBundleURL:file:///xxxxxxxxxxx/PlugIns/PageonceUITests.xctest/ productModuleName:(null) testsToSkip:(null) testsToRun:(null) reportResultsToIDE:no sessionIdentifier:<__NSConcreteUUID 0x7fc818d181a0> 7045B650-CDAF-4EC9-9738-83F78E1514D8 pathToXcodeReportingSocket:(null) disablePerformanceMetrics:no treatMissingBaselinesAsFailures:no baselineFileURL:(null) targetApplicationPath:(null) targetApplicationBundleID:(null)
我有相同的問題和[這](http://stackoverflow.com/questions/32276523/nsinternalinconsistencyexception-when-running-uitesting-with-xcode-7?answertab=votes#tab-top)解決了它。 – Kalicz