2017-11-04 17 views
0

実際のiPhoneでappiumを実行しているとき、appiumは以下のエラーを表示します。そのための任意の解決策を見つけたAppium iOSエラードメイン= NSCocoaErrorDomainコード= 260 "そのようなファイルがないため、" WebDriverAgentRunner-Runner.app "ファイルを開けませんでした。

[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' 
[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj' 

[XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=11.0' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' 

[Xcode] 2017-11-04 17:13:55.690 xcodebuild[3522:289240] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/tcs/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fdc48f69390 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} 


[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 
    at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:374:15) 
[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 
    at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:374:15) 

私はビルドを作ることのXcodeができないことが判明

[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 
    at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:374:15) 

答えて

0

実際のデバイスでWebdriverAgentが開かれていない状態で、デバイスで実行を開始します。同様の問題に直面し、以下の手順で解決しました。

    は、プロジェクトをビルドし
  1. Xcodeの
  2. にWebDriverAgentプロジェクトに署名してから製品 - > [テスト]をクリックします
  3. 。これにより、実際のデバイスでWebdriverAgentが起動します。
  4. appiumを起動します。
関連する問題