appium / appium

Cross-platform automation framework for all kinds of apps, built on top of the W3C WebDriver protocol
http://appium.io/
Apache License 2.0
18.67k stars 6.06k forks source link

The file “WebDriverAgentRunner-Runner.app” couldn’t be opened ::Followed several forums still the same iOS real device with Xcode 8.3 #8723

Closed wfmmurali closed 7 years ago

wfmmurali commented 7 years ago

The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file

When I Codesign in with Terminal using the below command , The web driver agent gets installed fine. xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=8895ca6624277cc534a3350296ad3cea7b019726' test

writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/90afcc4491ff4fa0dec1f742d763a188/8895ca6624277cc534a3350296ad3cea7b019726/ManifestCache.plist 2017-06-23 12:11:53.429354-0500 XCTRunner[350:51272] Running tests... 2017-06-23 12:11:54.393806-0500 XCTRunner[350:51272] Continuing to run tests in the background with task ID 1 Test Suite 'All tests' started at 2017-06-23 12:11:54.443 Test Suite 'WebDriverAgentRunner.xctest' started at 2017-06-23 12:11:54.444 Test Suite 'UITestingUITests' started at 2017-06-23 12:11:54.444 Test Case '-[UITestingUITests testRunner]' started. t = 0.00s Start Test at 2017-06-23 12:11:54.445 t = 0.00s Set Up 2017-06-23 12:11:54.455347-0500 XCTRunner[350:51362] [User Defaults] Failed to write value for key AutomationDisableFauxCollectionCells in CFPrefsPlistSource<0x17411e9f0> (Domain: com.apple.Accessibility, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null)): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access, switching to read-only 2017-06-23 12:11:54.456180-0500 XCTRunner[350:51272] Built at Jun 23 2017 12:11:45 2017-06-23 12:11:54.477723-0500 XCTRunner[350:51272] ServerURLHere->http://192.168.0.101:8100<-ServerURLHere 2017-06-23 12:11:54.478362-0500 XCTRunner[350:51272] Listening on USB

The issue happens when you try to launch appium and run the web driver agent.

a) Followed several forums and all dependancies are in place. rm -rf Carthage ./Scripts/bootstrap.sh -d Everything in this article has been followed. Including adding a new provisioning profile.

appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md

mykola-mokhnach commented 7 years ago

Please fill out issue reporting form and attach full Appium log

wfmmurali commented 7 years ago

Full Appium Log Below

The server is running Start New SessionStop Server [Appium] Welcome to Appium v1.6.5 [Appium] Appium REST http interface listener started on 0.0.0.0:4723 [HTTP] --> POST /wd/hub/session {"capabilities":{"desiredCapabilities":{"app":"/Users/murali/Desktop/simbuild/wholefoods.ipa","appium-version":"1.6.5","noReset":"true","platformVersion":"10.3","xcodeOrgId":"9893K596GS","automationName":"XCUITest","platformName":"iOS","udid":"8895ca6624277cc534a3350296ad3cea7b019726","deviceName":"Wfm iPhone","xcodeSigningId":"iPhone Developer"},"requiredCapabilities":{}},"desiredCapabilities":{"app":"/Users/murali/Desktop/simbuild/wholefoods.ipa","appium-version":"1.6.5","noReset":"true","platformVersion":"10.3","xcodeOrgId":"9893K596GS","automationName":"XCUITest","platformName":"iOS","udid":"8895ca6624277cc534a3350296ad3cea7b019726","deviceName":"Wfm iPhone","xcodeSigningId":"iPhone Developer"},"requiredCapabilities":{}} [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/murali/Desktop/simbuild/wholefoods.ipa","appium-version":"1.6.5","noReset":"true","platformVersion":"10.3","xcodeOrgId":"9893K596GS","automationName":"XCUITest","platformName":"iOS","udid":"8895ca6624277cc534a3350296ad3cea7b019726","deviceName":"Wfm iPhone","xcodeSigningId":"iPhone Developer"},{},{"desiredCapabilities":{"app":"/Users/murali/Desktop/simbuild/wholefoods.ipa","appium-version":"1.6.5","noReset":"true","platformVersion":"10.3","xcodeOrgId":"9893K596GS","automationName":"XCUITest","platformName":"iOS","udid":"8895ca6624277cc534a3350296ad3cea7b019726","deviceName":"Wfm iPhone","xcodeSigningId":"iPhone Developer"},"requiredCapabilities":{}}] [BaseDriver] Event 'newSessionRequested' logged at 1498239500028 (12:38:20 GMT-0500 (CDT)) [Appium] Creating new XCUITestDriver (v2.30.0) session [Appium] Capabilities: [Appium] app: '/Users/murali/Desktop/simbuild/wholefoods.ipa' [Appium] appium-version: '1.6.5' [Appium] noReset: 'true' [Appium] platformVersion: '10.3' [Appium] xcodeOrgId: '9893K596GS' [Appium] automationName: 'XCUITest' [Appium] platformName: 'iOS' [Appium] udid: '8895ca6624277cc534a3350296ad3cea7b019726' [Appium] deviceName: 'Wfm iPhone' [Appium] xcodeSigningId: 'iPhone Developer' [XCUITest] XCUITestDriver version: 2.30.0 [BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior [BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version. [BaseDriver] Session created with session id: 806411d3-8999-46e4-9783-f5ebef012c4b [XCUITest] Xcode version set to '8.3.3' (tools v8.2.0.0.1.1480973914) [XCUITest] iOS SDK Version set to '10.3' [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1498239500237 (12:38:20 GMT-0500 (CDT)) [XCUITest] Available devices: 8895ca6624277cc534a3350296ad3cea7b019726 [XCUITest] Creating iDevice object with udid '8895ca6624277cc534a3350296ad3cea7b019726' [XCUITest] Determining device to run tests on: udid: '8895ca6624277cc534a3350296ad3cea7b019726', real device: true [BaseDriver] Using local app '/Users/murali/Desktop/simbuild/wholefoods.ipa' [BaseDriver] Copying local zip to tmp dir [BaseDriver] Unzipping /var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-192fvez.o9qt6e0zfr/appium-app.zip [BaseDriver] Testing zip archive: /var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-192fvez.o9qt6e0zfr/appium-app.zip [BaseDriver] Unzipped local app to '/var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-192fvez.o9qt6e0zfr/Payload/WholeFoodsMarket.app' [BaseDriver] Event 'appConfigured' logged at 1498239503513 (12:38:23 GMT-0500 (CDT)) [XCUITest] Checking whether app '/var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-192fvez.o9qt6e0zfr/Payload/WholeFoodsMarket.app' is actually present on file system [XCUITest] App is present [iOS] Getting bundle ID from app '/var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-192fvez.o9qt6e0zfr/Payload/WholeFoodsMarket.app': 'com.wholefoods.WholeFoodsMarket.alpha.qa' [BaseDriver] Event 'resetStarted' logged at 1498239503530 (12:38:23 GMT-0500 (CDT)) [XCUITest] Reset: fullReset not set. Leaving as is [BaseDriver] Event 'resetComplete' logged at 1498239503530 (12:38:23 GMT-0500 (CDT)) [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog' [BaseDriver] Event 'logCaptureStarted' logged at 1498239503667 (12:38:23 GMT-0500 (CDT)) [XCUITest] Setting up real device [XCUITest] App 'com.wholefoods.WholeFoodsMarket.alpha.qa' is already installed. No need to reinstall. [BaseDriver] Event 'appInstalled' logged at 1498239503834 (12:38:23 GMT-0500 (CDT)) [BaseDriver] Event 'wdaStartAttempted' logged at 1498239503836 (12:38:23 GMT-0500 (CDT)) [XCUITest] Using WDA path: '/Applications/Appium 2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [XCUITest] Using WDA agent: '/Applications/Appium 2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj' [XCUITest] Launching WebDriverAgent on the device [XCUITest] Carthage found: '/usr/local/bin/carthage' [XCUITest] Killing hanging processes [XCUITest] Generating xcode config file for orgId '9893K596GS' and signingId 'iPhone Developer' [XCUITest] Writing xcode config file to /var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-14kqy0a.vkq76qolxr/appium-temp.xcconfig [XCUITest] Using Xcode configuration file: '/var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-14kqy0a.vkq76qolxr/appium-temp.xcconfig' [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium 2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=8895ca6624277cc534a3350296ad3cea7b019726 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-14kqy0a.vkq76qolxr/appium-temp.xcconfig' in directory '/Applications/Appium 2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [XCUITest] Output from xcodebuild will not be logged [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB [XCUITest] Waiting up to 60000ms for WebDriverAgent to start [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"10.3.1\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"10.3.1\"\n },\n \"build\" : {\n \"time\" : \"Jun 23 2017 12:11:45\"\n }\n },\n \"sessionId\" : \"BA3EE66D-6220-4D5F-B27D-89435581F1BF\",\n \"status\" : 0\n}" [XCUITest] WebDriverAgent successfully started after 613ms [BaseDriver] Event 'wdaSessionAttempted' logged at 1498239509580 (12:38:29 GMT-0500 (CDT)) [XCUITest] Sending createSession command to WDA [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.wholefoods.WholeFoodsMarket.alpha.qa","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [XCUITest] Log file for xcodebuild test: /Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-folfazwwukpzfkegdblpnfuwlvfn/Logs/Test/E51F4FB3-0E6D-4887-BC21-9F9AFD90ACB0/Session-WebDriverAgentRunner-2017-06-23_123830-7gNMVj.log [Xcode] 2017-06-23 12:38:30.348 xcodebuild[43141:676322] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-folfazwwukpzfkegdblpnfuwlvfn/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7f8b84b6b9d0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} [Xcode] 2017-06-23 12:38:30.348 xcodebuild[43141:676322] 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} [Xcode] [Xcode] TEST EXECUTE FAILED [Xcode] [Xcode] [XCUITest] xcodebuild exited with code '65' and signal 'null'

mykola-mokhnach commented 7 years ago

Can you also attach the content of xcodebuild log file (/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-folfazwwukpzfkegdblpnfuwlvfn/Logs/Test/E51F4FB3-0E6D-4887-BC21-9F9AFD90ACB0/Session-WebDriverAgentRunner-2017-06-23_123830-7gNMVj.log)

wfmmurali commented 7 years ago

There you go

12:38:30.335 xcodebuild[43141:676322] Beginning test session WebDriverAgentRunner-04F5161B-C9F2-429B-B9C2-FE94CD174423 at 2017-06-23 12:38:30.334 with Xcode 8E3004b on target <DVTiOSDevice: 0x7f8b8458dda0> { deviceSerialNumber: F17QD42KGRXV identifier: 8895ca6624277cc534a3350296ad3cea7b019726 deviceClass: iPhone deviceName: Wfm iphone deviceIdentifier: 8895ca6624277cc534a3350296ad3cea7b019726 productVersion: 10.3.1 buildVersion: 14E304 deviceSoftwareVersion: 10.3.1 (14E304) deviceArchitecture: arm64 deviceTotalCapacity: 12337905664 deviceAvailableCapacity: 9594462208 deviceIsTransient: NO ignored: NO deviceIsBusy: NO deviceIsActivated: YES deviceActivationState: Activated isPasscodeLocked: NO deviceType: supportedDeviceFamilies: ( 1 ) applications: (null) provisioningProfiles: (null) activityProgress: -2 activityTitle:
hasInternalSupport: NO isSupportedOS: YES developerDiskMountError: (null) (null) bootArgs: } (10.3.1 (14E304)) 12:38:30.335 xcodebuild[43141:676322] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /Applications/Appium 2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=8895ca6624277cc534a3350296ad3cea7b019726 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-14kqy0a.vkq76qolxr/appium-temp.xcconfig 12:38:30.335 xcodebuild[43141:676322] Launching with Xcode.IDEFoundation.Launcher.PosixSpawn 12:38:30.342 xcodebuild[43141:676325] Connecting to mobile device: 8895ca6624277cc534a3350296ad3cea7b019726 12:38:30.344 xcodebuild[43141:676322] Launch session started. 12:38:30.345 xcodebuild[43141:676325] Starting session with mobile device 12:38:30.348 xcodebuild[43141:676322] Test operation failure: Launch session expired before checking in. 12:38:30.348 xcodebuild[43141:676322] _finishWithError:Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Launch session expired before checking in." UserInfo={NSLocalizedDescription=Launch session expired before checking in.} didCancel: 1

mykola-mokhnach commented 7 years ago

Try to build custom WDA server and connect to it with Appium like it is described in https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/wda-custom-server.md

wfmmurali commented 7 years ago

1) awesome ..Created a class ..do we have all the imports for this module ? public class WDAServer { private static final Logger log = ZLogger.getLog(WDAServer.class.getSimpleName());

2) also DO I specify 2017-06-23 12:11:54.477723-0500 XCTRunner[350:51272] ServerURLHere->http://192.168.0.101:8100<-ServerURLHere

Is this correct format ? capabilities.setCapability("webDriverAgentUrl", WDAServer.http://192.168.0.101:8100);

mykola-mokhnach commented 7 years ago

server host will be always localhost (iproxy cares about it). logger can be anything (SL4J, LOG4J, etc.)

wfmmurali commented 7 years ago

screen shot 2017-06-23 at 1 15 41 pm

Thanks ...Too many items in that class file unable to resolve, hence the imports would be helpful

mykola-mokhnach commented 7 years ago

This piece code is just an example to demonstrate the main implementation idea. It is expected, that one should modify it and make compatible to the local codebase.

pavanbachu0604 commented 7 years ago

@wfmmurali : Are you signing the WDA manually or mentioning code signing identities as Capabilities ?

wfmmurali commented 7 years ago

@pavanbachu0604 yes here is the exact capabilities I provided . Still the same ..correct me if I am wrong. Attached is the screenshot from my keychain and also

screen shot 2017-06-28 at 11 57 47 am

capabilities.setCapability("automationName", "XCUITest");
    capabilities.setCapability("appium-version", "1.6.5");
    capabilities.setCapability("platformName", "iOS");
    //capabilities.setCapability("deviceName", "iPhone 6s");
    capabilities.setCapability("deviceName", "Wfm iPhone");
    capabilities.setCapability("platformVersion", "10.3");
    capabilities.setCapability("udid", "8895ca6624277cc534a3350296ad3cea7b019726");
  //    capabilities.setCapability("noReset","true");
//  capabilities.setCapability("updatedWDABundleId", "appium.wfmtest.WebdriverAgent");
  //    capabilities.setCapability("xcodeConfigfile","/Users/murali/node_modules/appium-xcuitest-driver/WebDriverAgent/newXcodeConfig.xcconfig");
    capabilities.setCapability("xcodeOrgId", "9893*****S" );
    capabilities.setCapability("xcodeSigningId","iPhone Developer" );
wfmmurali commented 7 years ago

Also when I Run this command on terminal it signs fine

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=8895ca6624277cc534a3350296ad3cea7b019726' test

Signing Identity: "iPhone Developer: idcmurali@gmail.com (9893****S)" Provisioning Profile: "iOS Team Provisioning Profile: appium.wfmtest.WebdriverAgentRunner" (3368f5cc-950e-4ee8-b6bd-3b60255cc951)

/usr/bin/codesign --force --sign DCD1A0E1286F38645A569F0A77478F7BFFE03C94 --deep --entitlements /Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-ctzbzcgswmxsyyczrkzvjbjwjwub/Build/Intermediates/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent --timestamp=none /Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-ctzbzcgswmxsyyczrkzvjbjwjwub/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app

/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-ctzbzcgswmxsyyczrkzvjbjwjwub/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app: replacing existing signature

writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/90afcc4491ff4fa0dec1f742d763a188/8895ca6624277cc534a3350296ad3cea7b019726/ManifestCache.plist 2017-06-28 12:11:42.352820-0500 XCTRunner[292:11180] Running tests... 2017-06-28 12:11:43.771262-0500 XCTRunner[292:11180] Continuing to run tests in the background with task ID 1 Test Suite 'All tests' started at 2017-06-28 12:11:43.836 Test Suite 'WebDriverAgentRunner.xctest' started at 2017-06-28 12:11:43.837 Test Suite 'UITestingUITests' started at 2017-06-28 12:11:43.837 Test Case '-[UITestingUITests testRunner]' started. t = 0.00s Start Test at 2017-06-28 12:11:43.839 t = 0.00s Set Up 2017-06-28 12:11:43.848594-0500 XCTRunner[292:11200] [User Defaults] Failed to write value for key AutomationDisableFauxCollectionCells in CFPrefsPlistSource<0x17010cc30> (Domain: com.apple.Accessibility, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null)): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access, switching to read-only 2017-06-28 12:11:43.849420-0500 XCTRunner[292:11180] Built at Jun 28 2017 12:11:31 2017-06-28 12:11:43.872693-0500 XCTRunner[292:11180] ServerURLHere->http://10.5.246.177:8100<-ServerURLHere 2017-06-28 12:11:43.873244-0500 XCTRunner[292:11180] Listening on USB 2017-06-28 12:11:56.869039-0500 XCTRunner[292:11180] Continuing to run tests in the background with task ID 5

imurchie commented 7 years ago

Can you try with the command that your setup produces in Appium:

xcodebuild build-for-testing test-without-building -project /Applications/Appium 2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=8895ca6624277cc534a3350296ad3cea7b019726 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-14kqy0a.vkq76qolxr/appium-temp.xcconfig
wfmmurali commented 7 years ago

@imurchie Thats the response I got.

muralis-mbp-2:WebDriverAgent murali$ xcodebuild build-for-testing test-without-building -project /Applications/Appium 2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=8895ca6624277cc534a3350296ad3cea7b019726 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-14kqy0a.vkq76qolxr/appium-temp.xcconfig Ignoring configuration file '/var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-14kqy0a.vkq76qolxr/appium-temp.xcconfig' because it could not be loaded. Reason: File could not be parsed due to preprocessing errors: The file “appium-temp.xcconfig” couldn’t be opened because there is no such file. (/var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-14kqy0a.vkq76qolxr/appium-temp.xcconfig)Build settings from command line: IPHONEOS_DEPLOYMENT_TARGET = 10.3

xcodebuild: error: Unknown build action '2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'. muralis-mbp-2:WebDriverAgent murali$

imurchie commented 7 years ago

The config file is generated by Appium. If you've done something to your temp directory then it might be gone. Re-running Appium will provide a new one, and the command is available in the logs on the line beginning [XCUITest] Beginning test with command`.

The second issue is because your path has a space in it. You'll need to escape that.

wfmmurali commented 7 years ago

@imurchie Restarted Appium and ran the same command got the same output

muralis-mbp-2:WebDriverAgent murali$ xcodebuild build-for-testing test-without-building -project /Applications/Appium 2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=8895ca6624277cc534a3350296ad3cea7b019726 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-14kqy0a.vkq76qolxr/appium-temp.xcconfig Ignoring configuration file '/var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-14kqy0a.vkq76qolxr/appium-temp.xcconfig' because it could not be loaded. Reason: File could not be parsed due to preprocessing errors: The file “appium-temp.xcconfig” couldn’t be opened because there is no such file. (/var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017523-42544-14kqy0a.vkq76qolxr/appium-temp.xcconfig)Build settings from command line: IPHONEOS_DEPLOYMENT_TARGET = 10.3

Which path space are you talking about ? on the capabilities ?

wfmmurali commented 7 years ago

@imurchie got this response , when I tried with var/log file when I ran Appium

muralis-mbp-2:WebDriverAgent murali$ xcodebuild build-for-testing test-without-building -project /Applications/Appium 2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=8895ca6624277cc534a3350296ad3cea7b019726 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017528-5909-57cstt.nl6iveipb9/appium-temp.xcconfig Build settings from command line: IPHONEOS_DEPLOYMENT_TARGET = 10.3

Build settings from configuration file '/var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017528-5909-57cstt.nl6iveipb9/appium-temp.xcconfig': CODE_SIGN_IDENTITY = iPhone Developer DEVELOPMENT_TEAM = 989*****S

xcodebuild: error: Unknown build action '2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'.

mykola-mokhnach commented 7 years ago

Remove spaces from the path where Appium is installed

wfmmurali commented 7 years ago

Ok I see that issue. I had 2 Appium version installed ..here is the logs from

muralis-mbp-2:WebDriverAgent murali$ 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=8895ca6624277cc534a3350296ad3cea7b019726 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017528-5909-57cstt.nl6iveipb9/appium-temp.xcconfig Build settings from command line: IPHONEOS_DEPLOYMENT_TARGET = 10.3

Build settings from configuration file '/var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017528-5909-57cstt.nl6iveipb9/appium-temp.xcconfig': CODE_SIGN_IDENTITY = iPhone Developer DEVELOPMENT_TEAM = 989*****S

=== BUILD TARGET WebDriverAgentLib OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===

Check dependencies No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "9893K596GS" with a private key was found.

2017-06-28 14:19:12.737 xcodebuild[71584:768953] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 "The folder “WebDriverAgentRunner_iphoneos10.3-arm64.xctestrun” doesn’t exist." UserInfo={NSFilePath=/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/WebDriverAgentRunner_iphoneos10.3-arm64.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7f973bc12f20 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} 2017-06-28 14:19:12.738 xcodebuild[71584:768953] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 "The folder “WebDriverAgentRunner_iphoneos10.3-arm64.xctestrun” doesn’t exist." UserInfo={NSFilePath=/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/WebDriverAgentRunner_iphoneos10.3-arm64.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7f973d9a66a0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} TEST BUILD FAILED

The following build commands failed: Check dependencies (1 failure) 2017-06-28 14:19:12.759 xcodebuild[71584:768928] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/7E7673E2-B122-45B9-A2C5-0D84CA8CAA1A/Session-WebDriverAgentRunner-2017-06-28_141912-ehnvlX.log 2017-06-28 14:19:12.760 xcodebuild[71584:768923] [MT] IDETestOperationsObserverDebug: (89732412-4437-43A3-A037-BA44AE0D0B5F) Beginning test session WebDriverAgentRunner-89732412-4437-43A3-A037-BA44AE0D0B5F at 2017-06-28 14:19:12.759 with Xcode 8E3004b on target <DVTiOSDevice: 0x7f973df30c00> { deviceSerialNumber: F17QD42KGRXV identifier: 8895ca6624277cc534a3350296ad3cea7b019726 deviceClass: iPhone deviceName: Wfm iphone deviceIdentifier: 8895ca6624277cc534a3350296ad3cea7b019726 productVersion: 10.3.1 buildVersion: 14E304 deviceSoftwareVersion: 10.3.1 (14E304) deviceArchitecture: arm64 deviceTotalCapacity: 12337905664 deviceAvailableCapacity: 9125900288 deviceIsTransient: NO ignored: NO deviceIsBusy: NO deviceIsActivated: YES deviceActivationState: Activated isPasscodeLocked: NO deviceType: supportedDeviceFamilies: ( 1 ) applications: (null) provisioningProfiles: (null) activityProgress: -2 activityTitle:
hasInternalSupport: NO isSupportedOS: YES developerDiskMountError: (null) (null) bootArgs: } (10.3.1 (14E304)) 2017-06-28 14:19:12.772 xcodebuild[71584:768923] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7f973b843aa0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} 2017-06-28 14:19:12.772 xcodebuild[71584:768923] 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} TEST EXECUTE FAILED

wfmmurali commented 7 years ago

@imurchie any suggestions based on the above ?

imurchie commented 7 years ago

You need to create a signing certificate:

No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "9893K596GS" with a private key was found.
wfmmurali commented 7 years ago

@imurchie But this command executed fine with the signing certificate

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=8895ca6624277cc534a3350296ad3cea7b019726' test

I am trying to understand why Appium is not seeing this ?

imurchie commented 7 years ago

It's because of the identity/team you're passing in. Since from the command line you don't need to specify any xcconfig file, try running from Appium without any xcodeOrgId, xcodeSigningId or xcodeConfigFile capabilities.

wfmmurali commented 7 years ago

@imurchie Removed all of them failed with this message

E74-97D6-6D246BE11D39/Session-WebDriverAgentRunner-2017-06-29_130041-BvevA9.log [Xcode] 2017-06-29 13:00:41.615 xcodebuild[78522:1172284] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7ffab63bd5a0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} [Xcode] 2017-06-29 13:00:41.615 xcodebuild[78522:1172284] 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} [Xcode] [Xcode] TEST EXECUTE FAILED [Xcode] [Xcode] [XCUITest] xcodebuild exited with code '65' and signal 'null' [BaseDriver] Event 'wdaStartFailed' logged at 1498759241635 (13:00:41 GMT-0500 (CDT)) [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying [XCUITest] Shutting down sub-processes [XCUITest] Shutting down iproxy process (pid 78496) [XCUITest] iproxy exited with code 'null' [XCUITest] Removing WDA application from device

imurchie commented 7 years ago

Ok. What is the xcodebuild command generated for that run? We want to compare against what works to see what is wrong.

wfmmurali commented 7 years ago

@imurchie Sorry didn't get you... Do you want me re-run the Terminal Command again ?

I also saw this from the whole appium log [XCUITest] Output from xcodebuild will not be logged

[XCUITest] App is present [iOS] Getting bundle ID from app '/var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017529-1741-wfqws9.fm56i27qfr/Payload/WholeFoodsMarket.app': 'com.wholefoods.WholeFoodsMarket.alpha.qa' [BaseDriver] Event 'resetStarted' logged at 1498759272240 (13:01:12 GMT-0500 (CDT)) [XCUITest] Reset: running ios real device reset flow [BaseDriver] Event 'resetComplete' logged at 1498759272240 (13:01:12 GMT-0500 (CDT)) [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog' [BaseDriver] Event 'logCaptureStarted' logged at 1498759272344 (13:01:12 GMT-0500 (CDT)) [XCUITest] Setting up real device [XCUITest] Reset requested. Removing app with id 'com.wholefoods.WholeFoodsMarket.alpha.qa' from the device [XCUITest] Installing '/var/folders/fp/3163zlhn3gs955d5w0bv6bjw0000gp/T/2017529-1741-wfqws9.fm56i27qfr/Payload/WholeFoodsMarket.app' on device with UUID '8895ca6624277cc534a3350296ad3cea7b019726'... [XCUITest] The app has been installed successfully. [BaseDriver] Event 'appInstalled' logged at 1498759283192 (13:01:23 GMT-0500 (CDT)) [BaseDriver] Event 'wdaStartAttempted' logged at 1498759283192 (13:01:23 GMT-0500 (CDT)) [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] Launching WebDriverAgent on the device [XCUITest] Carthage found: '/usr/local/bin/carthage' [XCUITest] Killing hanging processes [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=8895ca6624277cc534a3350296ad3cea7b019726 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [XCUITest] Output from xcodebuild will not be logged [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB [XCUITest] Waiting up to 60000ms for WebDriverAgent to start [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [XCUITest] Log file for xcodebuild test: /Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/2141B66F-0946-44AA-ADE3-AC4136DA307D/Session-WebDriverAgentRunner-2017-06-29_130129-uGdBsv.log [Xcode] 2017-06-29 13:01:29.859 xcodebuild[79017:1174050] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7f9b5da0b6b0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} [Xcode] 2017-06-29 13:01:29.859 xcodebuild[79017:1174050] 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} [Xcode] [Xcode] TEST EXECUTE FAILED [Xcode] [Xcode] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body

imurchie commented 7 years ago

The xcode logging in Appium can be turned on with the showXcodeLog capability set to true.

But what I mean is that Appium generates an xcodebuild command, which it then runs. You can build form the command line, so we need to see what is different between the working command, and the failing one that Appium runs.

For the latest run, Appium is using:

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=8895ca6624277cc534a3350296ad3cea7b019726 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3

Since you say the following works:

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=8895ca6624277cc534a3350296ad3cea7b019726' test

We can think of the differences:

wfmmurali commented 7 years ago

@imurchie find my 3 results attached

1) xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=8895ca6624277cc534a3350296ad3cea7b019726' build-for-testing

returned TEST BUILD SUCCEEDED

CodeSign /Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-ctzbzcgswmxsyyczrkzvjbjwjwub/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app
    cd /Users/murali/node_modules/appium-xcuitest-driver/WebDriverAgent
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home:/Users/murali/Downloads/apache-maven-3.3.9/bin:/Users/murali/Library/Android/sdk"

Signing Identity:     "iPhone Developer: idcmurali@gmail.com (9893****S)"
Provisioning Profile: "iOS Team Provisioning Profile: appium.wfmtest.WebdriverAgentRunner"
                      (3368f5cc-950e-4ee8-b6bd-3b60255cc951)

 /usr/bin/codesign --force --sign DCD1A0E1286F38645A569F0A77478F7BFFE03C94 --deep --entitlements /Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-ctzbzcgswmxsyyczrkzvjbjwjwub/Build/Intermediates/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent --timestamp=none /Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-ctzbzcgswmxsyyczrkzvjbjwjwub/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app
/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-ctzbzcgswmxsyyczrkzvjbjwjwub/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app: replacing existing signature

** TEST BUILD SUCCEEDED **

2) xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=8895ca6624277cc534a3350296ad3cea7b019726' test-without-building

returned

2017-06-29 16:45:23.600588-0500 XCTRunner[306:30949] [User Defaults] Failed to write value for key AutomationDisableFauxCollectionCells in CFPrefsPlistSource<0x17410a950> (Domain: com.apple.Accessibility, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null)): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access, switching to read-only
2017-06-29 16:45:23.601292-0500 XCTRunner[306:30901] Built at Jun 29 2017 16:42:37
2017-06-29 16:45:23.622953-0500 XCTRunner[306:30901] ServerURLHere->http://localhost:8100<-ServerURLHere
2017-06-29 16:45:23.623400-0500 XCTRunner[306:30901] Listening on USB

3) Tried with Configuration debug , it said TEST execute failed

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=8895ca6624277cc534a3350296ad3cea7b019726 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3
Build settings from command line:
    IPHONEOS_DEPLOYMENT_TARGET = 10.3

=== BUILD TARGET WebDriverAgentLib OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET WebDriverAgentRunner OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===

Check dependencies
Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.3'
Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.3'
Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.3'
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.3'

** TEST BUILD FAILED **

The following build commands failed:
    Check dependencies
(1 failure)
2017-06-29 16:48:39.898 xcodebuild[47904:1425005]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/FC09010C-DA2B-4405-9622-FBF3F9F279A2/Session-WebDriverAgentRunner-2017-06-29_164839-koz5Be.log
2017-06-29 16:48:39.898 xcodebuild[47904:1424995] [MT] IDETestOperationsObserverDebug: (98941D02-4CBF-48FF-BA6C-A3DFECEAFA3B) Beginning test session WebDriverAgentRunner-98941D02-4CBF-48FF-BA6C-A3DFECEAFA3B at 2017-06-29 16:48:39.898 with Xcode 8E3004b on target <DVTiOSDevice: 0x7fc1b4570b70> {
        deviceSerialNumber:         F17QD42KGRXV
        identifier:                 8895ca6624277cc534a3350296ad3cea7b019726
        deviceClass:                iPhone
        deviceName:                  Wfm iphone
        deviceIdentifier:           8895ca6624277cc534a3350296ad3cea7b019726
        productVersion:             10.3.2
        buildVersion:               14F89
        deviceSoftwareVersion:      10.3.2 (14F89)
        deviceArchitecture:         arm64
        deviceTotalCapacity:        12301463552
        deviceAvailableCapacity:    9334489088
        deviceIsTransient:          NO
        ignored:                    NO
        deviceIsBusy:               NO
        deviceIsActivated:          YES
        deviceActivationState:      Activated
        isPasscodeLocked:           NO
        deviceType:                 <DVTDeviceType:0x7fc1b04f5c10 Xcode.DeviceType.iPhone>
        supportedDeviceFamilies:    (
    1
)
        applications:              (null)
        provisioningProfiles:      (null)
        activityProgress:          -2
        activityTitle:             
        hasInternalSupport:        NO
        isSupportedOS:             YES
        developerDiskMountError:   (null)
(null)
    bootArgs:                  <unavailable>
        } (10.3.2 (14F89))
2017-06-29 16:48:39.910 xcodebuild[47904:1424995] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fc1b4a53420 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2017-06-29 16:48:39.910 xcodebuild[47904:1424995] 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}
** TEST EXECUTE FAILED **
imurchie commented 7 years ago

Interesting. I will look into making the configuration configurable through a desired capability.

In the meantime, one more permutation: can you try running:

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=8895ca6624277cc534a3350296ad3cea7b019726' build-for-testing

Which ought to work. And then:

xcodebuild 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=8895ca6624277cc534a3350296ad3cea7b019726 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3

Essentially, the first step is your successful build step. The second is the fully-qualified test-only step.

wfmmurali commented 7 years ago

@imurchie 1st one succeeded , but the second one failed. attached logs

1) xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=8895ca6624277cc534a3350296ad3cea7b019726' build-for-testing

/usr/bin/codesign --force --sign DCD1A0E1286F38645A569F0A77478F7BFFE03C94 --deep --entitlements /Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-ctzbzcgswmxsyyczrkzvjbjwjwub/Build/Intermediates/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent --timestamp=none /Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-ctzbzcgswmxsyyczrkzvjbjwjwub/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app /Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-ctzbzcgswmxsyyczrkzvjbjwjwub/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app: replacing existing signature

TEST BUILD SUCCEEDED

2) muralis-mbp-2:WebDriverAgent murali$ xcodebuild 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=8895ca6624277cc534a3350296ad3cea7b019726 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 Build settings from command line: IPHONEOS_DEPLOYMENT_TARGET = 10.3

2017-06-30 11:25:03.312 xcodebuild[18207:1691310] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/B59D415D-A559-476A-9CA8-9094F425D5E8/Session-WebDriverAgentRunner-2017-06-30_112503-7dCqcV.log 2017-06-30 11:25:03.312 xcodebuild[18207:1691290] [MT] IDETestOperationsObserverDebug: (DCADBB64-F8B2-4741-BA61-6DB0D0011BC9) Beginning test session WebDriverAgentRunner-DCADBB64-F8B2-4741-BA61-6DB0D0011BC9 at 2017-06-30 11:25:03.312 with Xcode 8E3004b on target <DVTiOSDevice: 0x7fae97f1a3c0> { deviceSerialNumber: F17QD42KGRXV identifier: 8895ca6624277cc534a3350296ad3cea7b019726 deviceClass: iPhone deviceName: Wfm iphone deviceIdentifier: 8895ca6624277cc534a3350296ad3cea7b019726 productVersion: 10.3.2 buildVersion: 14F89 deviceSoftwareVersion: 10.3.2 (14F89) deviceArchitecture: arm64 deviceTotalCapacity: 12301463552 deviceAvailableCapacity: 9297281024 deviceIsTransient: NO ignored: NO deviceIsBusy: NO deviceIsActivated: YES deviceActivationState: Activated isPasscodeLocked: NO deviceType: supportedDeviceFamilies: ( 1 ) applications: (null) provisioningProfiles: (null) activityProgress: -2 activityTitle:
hasInternalSupport: NO isSupportedOS: YES developerDiskMountError: (null) (null) bootArgs: } (10.3.2 (14F89)) 2017-06-30 11:25:03.335 xcodebuild[18207:1691290] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fae979954e0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} 2017-06-30 11:25:03.335 xcodebuild[18207:1691290] 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} TEST EXECUTE FAILED

imurchie commented 7 years ago

Ok. Some changes have been made. Can you try getting the latest version (npm uninstall -g appium && npm cache clean && npm install -g appium@beta)? It should have appium-xcuitest-driver@2.37.1. Let me know if it helps.

wfmmurali commented 7 years ago

@imurchie Hmm ...it did not go through the complete installation

dateformat@2.0.0 node_modules/appium/node_modules/dateformat

npm ERR! Darwin 16.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "appium@beta" npm ERR! node v6.9.1 npm ERR! npm v3.10.8 npm ERR! path /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver npm ERR! code ENOTEMPTY npm ERR! errno -66 npm ERR! syscall rename

npm ERR! ENOTEMPTY: directory not empty, rename '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver' -> '/usr/local/lib/node_modules/appium/node_modules/.appium-xcuitest-driver.DELETE' npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /Users/murali/npm-debug.log npm ERR! code 1

imurchie commented 7 years ago

Your uninstall did not fully uninstall. You might need to manually delete /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver, which seems to be the offending thing.

wfmmurali commented 7 years ago

@imurchie hmm interesting ...This could be a hidden file ...There is no folder like that present here.. ?

screen shot 2017-06-30 at 2 38 21 pm
imurchie commented 7 years ago

Seems like something messed up with npm. Can you try running npm uninstall -g appium and check, then re-install?

wfmmurali commented 7 years ago

@imurchie Hmm Still the same error ...uninstallation went fine then executed npm cache clean and then executed npm install -g appium@beta

screen shot 2017-06-30 at 3 10 50 pm

screen shot 2017-06-30 at 3 16 26 pm

imurchie commented 7 years ago

This has been reported a number of times to npm. Very strange. Can you try what is recommended here: https://github.com/npm/npm/issues/17444#issuecomment-311522791

wfmmurali commented 7 years ago

@imurchie Things I tried following the recommendation (there is no complete fix referred in the #17444 , but retried installation as per the suggestion

a) Installed Npm 4 to 5 times . ran into the same issue b) tried creating a new user account on my MacBook - nogo went into the same issue

monadmon commented 7 years ago

For me it helps when I executed command:

xcodebuild -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=XYZ -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.1 test

Then I was able to performe test on the phisical device. Even if I remove WDA from the device appium will be able to install it automaticly on device. Hope that it helps you.

2017-06-30 23:13 GMT+02:00 wfmmurali notifications@github.com:

@imurchie https://github.com/imurchie Things I tried following the recommendation (there is no complete fix referred in the #17444 , but retried installation as per the suggestion

a) Installed Npm 4 to 5 times . ran into the same issue b) tried creating a new user account on my MacBook - nogo went into the same issue

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/appium/appium/issues/8723#issuecomment-312374179, or mute the thread https://github.com/notifications/unsubscribe-auth/AXuZQxekkPC1bxsxaZGHbFbPvjXzpNc4ks5sJWTngaJpZM4OD2A5 .

imurchie commented 7 years ago

@wfmmurali Can you try installing locally?

mkdir local_appium
cd local_appium
npm install appium@beta

This will create a directory node_modules, and an executable node_modules/.bin/appium to start Appium.

wfmmurali commented 7 years ago

@imurchie Thanks ..that did install Appium fine in the other directory

ios_app_tests@1.0.0 /Users/murali └─┬ appium@1.6.6-beta.2 ├─┬ appium-android-driver@1.24.0 │ ├─┬ appium-adb@2.23.7 │ │ ├─┬ appium-support@2.8.2 │ │ │ ├─┬ archiver@1.3.0 │ │ │ │ ├─┬ glob@7.1.2 │ │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ │ └── balanced-match@1.0.0 │ │ │ │ ├── lodash@4.17.4 │ │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ │ └── bl@1.2.1 │ │ │ │ └─┬ zip-stream@1.2.0 │ │ │ │ ├─┬ compress-commons@1.2.0 │ │ │ │ │ └── crc32-stream@2.0.0 │ │ │ │ └── lodash@4.17.4 │ │ │ ├── bluebird@2.11.0 │ │ │ └── lodash@4.17.4 │ │ └── bluebird@3.5.0 │ ├─┬ appium-android-bootstrap@2.9.1 │ │ ├─┬ appium-support@2.8.2 │ │ │ ├─┬ archiver@1.3.0 │ │ │ │ ├─┬ glob@7.1.2 │ │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ │ └── balanced-match@1.0.0 │ │ │ │ ├── lodash@4.17.4 │ │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ │ └── bl@1.2.1 │ │ │ │ └─┬ zip-stream@1.2.0 │ │ │ │ ├─┬ compress-commons@1.2.0 │ │ │ │ │ └── crc32-stream@2.0.0 │ │ │ │ └── lodash@4.17.4 │ │ │ ├── lodash@4.17.4 │ │ │ └─┬ source-map-support@0.4.15 │ │ │ └── source-map@0.5.6 │ │ ├─┬ appium-uiautomator@1.1.1 │ │ │ ├─┬ appium-support@2.8.2 │ │ │ │ ├─┬ archiver@1.3.0 │ │ │ │ │ ├─┬ glob@7.1.2 │ │ │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ │ │ └── balanced-match@1.0.0 │ │ │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ │ │ └── bl@1.2.1 │ │ │ │ │ └─┬ zip-stream@1.2.0 │ │ │ │ │ └─┬ compress-commons@1.2.0 │ │ │ │ │ └── crc32-stream@2.0.0 │ │ │ │ └─┬ source-map-support@0.4.15 │ │ │ │ └── source-map@0.5.6 │ │ │ └─┬ source-map-support@0.3.3 │ │ │ └── source-map@0.1.32 │ │ └─┬ source-map-support@0.3.3 │ │ └── source-map@0.1.32 │ ├─┬ appium-chromedriver@2.12.0 │ │ ├─┬ appium-support@2.8.2 │ │ │ ├─┬ archiver@1.3.0 │ │ │ │ ├─┬ glob@7.1.2 │ │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ │ └── balanced-match@1.0.0 │ │ │ │ ├── lodash@4.17.4 │ │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ │ └── bl@1.2.1 │ │ │ │ └─┬ zip-stream@1.2.0 │ │ │ │ ├─┬ compress-commons@1.2.0 │ │ │ │ │ └── crc32-stream@2.0.0 │ │ │ │ └── lodash@4.17.4 │ │ │ ├── lodash@4.17.4 │ │ │ └─┬ source-map-support@0.4.15 │ │ │ └── source-map@0.5.6 │ │ └─┬ source-map-support@0.3.3 │ │ └── source-map@0.1.32 │ ├─┬ appium-support@2.8.2 │ │ ├─┬ archiver@1.3.0 │ │ │ ├─┬ archiver-utils@1.3.0 │ │ │ │ ├─┬ glob@7.1.2 │ │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ │ └── balanced-match@1.0.0 │ │ │ │ ├── lazystream@1.0.0 │ │ │ │ └─┬ normalize-path@2.1.1 │ │ │ │ └── remove-trailing-separator@1.0.2 │ │ │ ├── async@2.5.0 │ │ │ ├─┬ glob@7.1.2 │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ └── balanced-match@1.0.0 │ │ │ ├── lodash@4.17.4 │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ └── bl@1.2.1 │ │ │ ├── walkdir@0.0.11 │ │ │ └─┬ zip-stream@1.2.0 │ │ │ ├─┬ compress-commons@1.2.0 │ │ │ │ └─┬ crc32-stream@2.0.0 │ │ │ │ └── crc@3.4.4 │ │ │ └── lodash@4.17.4 │ │ ├── bluebird@2.11.0 │ │ ├─┬ extract-zip@1.6.5 │ │ │ ├─┬ concat-stream@1.6.0 │ │ │ │ └── typedarray@0.0.6 │ │ │ ├── mkdirp@0.5.0 │ │ │ └── yauzl@2.4.1 │ │ ├── lodash@4.17.4 │ │ ├─┬ source-map-support@0.4.15 │ │ │ └── source-map@0.5.6 │ │ └─┬ yauzl@2.8.0 │ │ └─┬ fd-slicer@1.0.1 │ │ └── pend@1.2.0 │ ├── bluebird@3.5.0 │ ├── io.appium.settings@2.2.1 │ ├─┬ jimp@0.2.28 │ │ ├── bmp-js@0.0.3 │ │ ├─┬ load-bmfont@1.3.0 │ │ │ ├─┬ parse-bmfont-xml@1.1.3 │ │ │ │ ├── xml-parse-from-string@1.0.1 │ │ │ │ └─┬ xml2js@0.4.17 │ │ │ │ └── sax@1.2.4 │ │ │ └─┬ xhr@2.4.0 │ │ │ └── global@4.3.2 │ │ └── pngjs@3.2.0 │ ├── portfinder@1.0.13 │ ├─┬ source-map-support@0.3.3 │ │ └── source-map@0.1.32 │ ├─┬ teen_process@1.9.0 │ │ └─┬ source-map-support@0.2.10 │ │ └── source-map@0.1.32 │ └─┬ yargs@6.6.0 │ ├── camelcase@3.0.0 │ ├─┬ cliui@3.2.0 │ │ └── wrap-ansi@2.1.0 │ ├── get-caller-file@1.0.2 │ ├─┬ read-pkg-up@1.0.1 │ │ ├─┬ find-up@1.1.2 │ │ │ └── path-exists@2.1.0 │ │ └─┬ read-pkg@1.1.0 │ │ ├─┬ load-json-file@1.1.0 │ │ │ ├─┬ parse-json@2.2.0 │ │ │ │ └─┬ error-ex@1.3.1 │ │ │ │ └── is-arrayish@0.2.1 │ │ │ ├── pify@2.3.0 │ │ │ └─┬ strip-bom@2.0.0 │ │ │ └── is-utf8@0.2.1 │ │ ├─┬ normalize-package-data@2.4.0 │ │ │ ├── hosted-git-info@2.5.0 │ │ │ ├─┬ is-builtin-module@1.0.0 │ │ │ │ └── builtin-modules@1.1.1 │ │ │ └─┬ validate-npm-package-license@3.0.1 │ │ │ ├─┬ spdx-correct@1.0.2 │ │ │ │ └── spdx-license-ids@1.2.2 │ │ │ └── spdx-expression-parse@1.0.4 │ │ └── path-type@1.1.0 │ ├── require-directory@2.1.1 │ ├── require-main-filename@1.0.1 │ ├── which-module@1.0.0 │ └── yargs-parser@4.2.1 ├─┬ appium-base-driver@2.10.1 │ ├─┬ appium-support@2.8.2 │ │ └─┬ archiver@1.3.0 │ │ ├─┬ glob@7.1.2 │ │ │ └─┬ minimatch@3.0.4 │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ └── balanced-match@1.0.0 │ │ ├─┬ tar-stream@1.5.4 │ │ │ └── bl@1.2.1 │ │ └─┬ zip-stream@1.2.0 │ │ └─┬ compress-commons@1.2.0 │ │ └── crc32-stream@2.0.0 │ ├─┬ body-parser@1.17.2 │ │ ├─┬ debug@2.6.7 │ │ │ └── ms@2.0.0 │ │ ├── http-errors@1.6.1 │ │ ├── iconv-lite@0.4.15 │ │ ├── qs@6.4.0 │ │ ├── raw-body@2.2.0 │ │ └── type-is@1.6.15 │ ├─┬ express@4.15.3 │ │ ├── content-disposition@0.5.2 │ │ ├─┬ debug@2.6.7 │ │ │ └── ms@2.0.0 │ │ ├── etag@1.8.0 │ │ ├─┬ finalhandler@1.0.3 │ │ │ └─┬ debug@2.6.7 │ │ │ └── ms@2.0.0 │ │ ├── fresh@0.5.0 │ │ ├─┬ proxy-addr@1.1.4 │ │ │ └── ipaddr.js@1.3.0 │ │ ├── qs@6.4.0 │ │ ├─┬ send@0.15.3 │ │ │ ├── debug@2.6.7 │ │ │ └── ms@2.0.0 │ │ ├── serve-static@1.12.3 │ │ ├── setprototypeof@1.0.3 │ │ └── vary@1.1.1 │ ├─┬ method-override@2.3.9 │ │ └─┬ debug@2.6.8 │ │ └── ms@2.0.0 │ ├─┬ morgan@1.8.2 │ │ ├── basic-auth@1.1.0 │ │ └─┬ debug@2.6.8 │ │ └── ms@2.0.0 │ ├─┬ request-promise@4.2.1 │ │ ├── bluebird@3.5.0 │ │ └── stealthy-require@1.1.1 │ └─┬ serve-favicon@2.4.3 │ ├── ms@2.0.0 │ └── safe-buffer@5.0.1 ├─┬ appium-espresso-driver@1.0.0-beta.3 │ ├─┬ appium-support@2.8.2 │ │ ├─┬ archiver@1.3.0 │ │ │ ├─┬ glob@7.1.2 │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ └── balanced-match@1.0.0 │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ └── bl@1.2.1 │ │ │ └─┬ zip-stream@1.2.0 │ │ │ └─┬ compress-commons@1.2.0 │ │ │ └── crc32-stream@2.0.0 │ │ └── bluebird@2.11.0 │ ├── bluebird@3.5.0 │ ├── lodash@4.17.4 │ ├─┬ portscanner@2.1.1 │ │ ├── async@1.5.2 │ │ └─┬ is-number-like@1.0.8 │ │ └── lodash.isfinite@3.3.2 │ ├── request-promise@4.2.1 │ ├─┬ teen_process@1.9.0 │ │ └── source-map-support@0.2.10 │ └─┬ yargs@8.0.2 │ ├── camelcase@4.1.0 │ ├─┬ os-locale@2.0.0 │ │ ├─┬ execa@0.5.1 │ │ │ ├─┬ cross-spawn@4.0.2 │ │ │ │ └─┬ lru-cache@4.1.1 │ │ │ │ ├── pseudomap@1.0.2 │ │ │ │ └── yallist@2.1.2 │ │ │ ├── get-stream@2.3.1 │ │ │ ├── is-stream@1.1.0 │ │ │ ├─┬ npm-run-path@2.0.2 │ │ │ │ └── path-key@2.0.1 │ │ │ ├── p-finally@1.0.0 │ │ │ ├── signal-exit@3.0.2 │ │ │ └── strip-eof@1.0.0 │ │ └─┬ mem@1.1.0 │ │ └── mimic-fn@1.1.0 │ ├─┬ read-pkg-up@2.0.0 │ │ ├─┬ find-up@2.1.0 │ │ │ └─┬ locate-path@2.0.0 │ │ │ ├─┬ p-locate@2.0.0 │ │ │ │ └── p-limit@1.1.0 │ │ │ └── path-exists@3.0.0 │ │ └─┬ read-pkg@2.0.0 │ │ ├─┬ load-json-file@2.0.0 │ │ │ └── strip-bom@3.0.0 │ │ └── path-type@2.0.0 │ ├─┬ string-width@2.1.0 │ │ ├── is-fullwidth-code-point@2.0.0 │ │ └─┬ strip-ansi@4.0.0 │ │ └── ansi-regex@3.0.0 │ ├── which-module@2.0.0 │ └── yargs-parser@7.0.0 ├─┬ appium-fake-driver@0.1.11 │ ├─┬ appium-support@2.8.2 │ │ ├─┬ archiver@1.3.0 │ │ │ ├─┬ glob@7.1.2 │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ └── balanced-match@1.0.0 │ │ │ ├── lodash@4.17.4 │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ └── bl@1.2.1 │ │ │ └─┬ zip-stream@1.2.0 │ │ │ ├─┬ compress-commons@1.2.0 │ │ │ │ └── crc32-stream@2.0.0 │ │ │ └── lodash@4.17.4 │ │ ├── bluebird@2.11.0 │ │ └── lodash@4.17.4 │ ├─┬ babel-core@5.8.24 │ │ ├── convert-source-map@1.5.0 │ │ ├── is-integer@1.0.7 │ │ ├─┬ output-file-sync@1.1.2 │ │ │ └── object-assign@4.1.1 │ │ ├── path-exists@1.0.0 │ │ ├── private@0.1.7 │ │ ├─┬ regenerator@0.8.35 │ │ │ ├─┬ commoner@0.10.8 │ │ │ │ ├─┬ detective@4.5.0 │ │ │ │ │ └── acorn@4.0.13 │ │ │ │ └─┬ recast@0.11.23 │ │ │ │ ├── ast-types@0.9.6 │ │ │ │ └── esprima@3.1.3 │ │ │ └─┬ defs@1.1.1 │ │ │ ├─┬ alter@0.2.0 │ │ │ │ └── stable@0.1.6 │ │ │ └─┬ yargs@3.27.0 │ │ │ └─┬ cliui@2.1.0 │ │ │ └─┬ center-align@0.1.3 │ │ │ └─┬ align-text@0.1.4 │ │ │ └─┬ kind-of@3.2.2 │ │ │ └── is-buffer@1.1.5 │ │ ├─┬ resolve@1.3.3 │ │ │ └── path-parse@1.0.5 │ │ └── to-fast-properties@1.0.3 │ ├── bluebird@3.5.0 │ └─┬ yargs@3.32.0 │ └── camelcase@2.1.1 ├─┬ appium-ios-driver@1.25.0 │ ├─┬ appium-ios-simulator@1.24.1 │ │ ├─┬ appium-support@2.8.2 │ │ │ └─┬ archiver@1.3.0 │ │ │ ├─┬ glob@7.1.2 │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ └── balanced-match@1.0.0 │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ └── bl@1.2.1 │ │ │ └─┬ zip-stream@1.2.0 │ │ │ └─┬ compress-commons@1.2.0 │ │ │ └── crc32-stream@2.0.0 │ │ └─┬ fkill@4.1.0 │ │ ├─┬ aggregate-error@0.1.0 │ │ │ ├── clean-stack@1.3.0 │ │ │ └── indent-string@3.1.0 │ │ ├── arrify@1.0.1 │ │ ├─┬ execa@0.2.2 │ │ │ ├── cross-spawn-async@2.2.5 │ │ │ ├── npm-run-path@1.0.0 │ │ │ └── path-key@1.0.0 │ │ └─┬ taskkill@2.0.0 │ │ └── execa@0.1.1 │ ├─┬ appium-remote-debugger@3.5.0 │ │ ├─┬ appium-support@2.8.2 │ │ │ ├─┬ archiver@1.3.0 │ │ │ │ ├─┬ glob@7.1.2 │ │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ │ └── balanced-match@1.0.0 │ │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ │ └── bl@1.2.1 │ │ │ │ └─┬ zip-stream@1.2.0 │ │ │ │ └─┬ compress-commons@1.2.0 │ │ │ │ └── crc32-stream@2.0.0 │ │ │ └── bluebird@2.11.0 │ │ ├── bluebird@3.5.0 │ │ ├── request-promise@4.2.1 │ │ └── ws@1.1.4 │ ├─┬ appium-support@2.8.2 │ │ └─┬ archiver@1.3.0 │ │ ├─┬ glob@7.1.2 │ │ │ └─┬ minimatch@3.0.4 │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ └── balanced-match@1.0.0 │ │ ├─┬ tar-stream@1.5.4 │ │ │ └── bl@1.2.1 │ │ └─┬ zip-stream@1.2.0 │ │ └─┬ compress-commons@1.2.0 │ │ └── crc32-stream@2.0.0 │ ├─┬ appium-xcode@3.3.0 │ │ ├─┬ appium-support@2.8.2 │ │ │ ├─┬ archiver@1.3.0 │ │ │ │ ├─┬ glob@7.1.2 │ │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ │ └── balanced-match@1.0.0 │ │ │ │ ├── lodash@4.17.4 │ │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ │ └── bl@1.2.1 │ │ │ │ └─┬ zip-stream@1.2.0 │ │ │ │ ├─┬ compress-commons@1.2.0 │ │ │ │ │ └── crc32-stream@2.0.0 │ │ │ │ └── lodash@4.17.4 │ │ │ ├── lodash@4.17.4 │ │ │ └─┬ source-map-support@0.4.15 │ │ │ └── source-map@0.5.6 │ │ └─┬ source-map-support@0.3.3 │ │ └── source-map@0.1.32 │ ├─┬ node-simctl@3.7.0 │ │ └─┬ appium-support@2.8.2 │ │ └─┬ archiver@1.3.0 │ │ ├─┬ glob@7.1.2 │ │ │ └─┬ minimatch@3.0.4 │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ └── balanced-match@1.0.0 │ │ ├─┬ tar-stream@1.5.4 │ │ │ └── bl@1.2.1 │ │ └─┬ zip-stream@1.2.0 │ │ └─┬ compress-commons@1.2.0 │ │ └── crc32-stream@2.0.0 │ ├─┬ path@0.12.7 │ │ └── process@0.11.10 │ ├── pem@1.9.7 │ ├─┬ request-promise@4.2.1 │ │ └── bluebird@3.5.0 │ └─┬ yargs@3.32.0 │ └── camelcase@2.1.1 ├─┬ appium-mac-driver@1.0.2 │ ├─┬ appium-support@2.8.2 │ │ ├─┬ archiver@1.3.0 │ │ │ ├─┬ glob@7.1.2 │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ └── balanced-match@1.0.0 │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ └── bl@1.2.1 │ │ │ └─┬ zip-stream@1.2.0 │ │ │ └─┬ compress-commons@1.2.0 │ │ │ └── crc32-stream@2.0.0 │ │ └─┬ source-map-support@0.4.15 │ │ └── source-map@0.5.6 │ ├── punycode@2.1.0 │ ├─┬ request-promise@3.0.0 │ │ └── bluebird@3.5.0 │ ├─┬ source-map-support@0.3.3 │ │ └── source-map@0.1.32 │ └─┬ yargs@3.32.0 │ └── camelcase@2.1.1 ├─┬ appium-selendroid-driver@1.6.2 │ ├─┬ appium-support@2.8.2 │ │ ├─┬ archiver@1.3.0 │ │ │ ├─┬ glob@7.1.2 │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ └── balanced-match@1.0.0 │ │ │ ├── lodash@4.17.4 │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ └── bl@1.2.1 │ │ │ └─┬ zip-stream@1.2.0 │ │ │ ├─┬ compress-commons@1.2.0 │ │ │ │ └── crc32-stream@2.0.0 │ │ │ └── lodash@4.17.4 │ │ ├── lodash@4.17.4 │ │ └─┬ source-map-support@0.4.15 │ │ └── source-map@0.5.6 │ ├─┬ request-promise@4.2.1 │ │ └── bluebird@3.5.0 │ ├─┬ source-map-support@0.3.3 │ │ └── source-map@0.1.32 │ └─┬ yargs@3.32.0 │ └── camelcase@2.1.1 ├─┬ appium-uiautomator2-driver@0.3.4 │ ├─┬ adbkit@2.10.0 │ │ ├── adbkit-logcat@1.1.0 │ │ ├─┬ adbkit-monkey@1.0.1 │ │ │ └── async@0.2.10 │ │ ├── bluebird@2.9.34 │ │ ├─┬ debug@2.6.8 │ │ │ └── ms@2.0.0 │ │ ├── node-forge@0.6.49 │ │ └── split@0.3.3 │ ├─┬ appium-support@2.8.2 │ │ ├─┬ archiver@1.3.0 │ │ │ ├─┬ glob@7.1.2 │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ └── balanced-match@1.0.0 │ │ │ ├── lodash@4.17.4 │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ └── bl@1.2.1 │ │ │ └─┬ zip-stream@1.2.0 │ │ │ ├─┬ compress-commons@1.2.0 │ │ │ │ └── crc32-stream@2.0.0 │ │ │ └── lodash@4.17.4 │ │ ├── lodash@4.17.4 │ │ └─┬ source-map-support@0.4.15 │ │ └── source-map@0.5.6 │ ├── appium-uiautomator2-server@0.1.6 │ ├─┬ request-promise@4.2.1 │ │ └── bluebird@3.5.0 │ ├─┬ source-map-support@0.3.3 │ │ └── source-map@0.1.32 │ └─┬ yargs@3.32.0 │ └── camelcase@2.1.1 ├─┬ appium-windows-driver@0.5.0 │ ├─┬ appium-support@2.8.2 │ │ ├─┬ archiver@1.3.0 │ │ │ ├─┬ glob@7.1.2 │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ └── balanced-match@1.0.0 │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ └── bl@1.2.1 │ │ │ └─┬ zip-stream@1.2.0 │ │ │ └─┬ compress-commons@1.2.0 │ │ │ └── crc32-stream@2.0.0 │ │ └─┬ source-map-support@0.4.15 │ │ └── source-map@0.5.6 │ ├── punycode@2.1.0 │ ├─┬ request-promise@3.0.0 │ │ └── bluebird@3.5.0 │ ├─┬ source-map-support@0.3.3 │ │ └── source-map@0.1.32 │ └─┬ yargs@3.32.0 │ └── camelcase@2.1.1 ├─┬ appium-xcuitest-driver@2.37.1 │ ├─┬ appium-support@2.8.2 │ │ ├─┬ archiver@1.3.0 │ │ │ ├─┬ glob@7.1.2 │ │ │ │ └─┬ minimatch@3.0.4 │ │ │ │ └─┬ brace-expansion@1.1.8 │ │ │ │ └── balanced-match@1.0.0 │ │ │ ├─┬ tar-stream@1.5.4 │ │ │ │ └── bl@1.2.1 │ │ │ └─┬ zip-stream@1.2.0 │ │ │ └─┬ compress-commons@1.2.0 │ │ │ └── crc32-stream@2.0.0 │ │ └── bluebird@2.11.0 │ ├── bluebird@3.5.0 │ ├── request-promise@4.2.1 │ ├── xmldom@0.1.27 │ └─┬ yargs@3.32.0 │ └── camelcase@2.1.1 ├── appium-youiengine-driver@1.0.13 ├─┬ asyncbox@2.3.1 │ └─┬ es6-mapify@1.0.0 │ └─┬ traceur@0.0.111 │ └── rsvp@3.6.1 ├─┬ continuation-local-storage@3.2.0 │ ├─┬ async-listener@0.6.7 │ │ └── shimmer@1.1.0 │ └─┬ emitter-listener@1.0.1 │ └── shimmer@1.0.0 ├── dateformat@2.0.0 ├─┬ fsevents@1.1.2 │ ├── nan@2.6.2 │ └─┬ node-pre-gyp@0.6.36 │ ├─┬ mkdirp@0.5.1 │ │ └── minimist@0.0.8 │ ├─┬ nopt@4.0.1 │ │ ├── abbrev@1.1.0 │ │ └─┬ osenv@0.1.4 │ │ ├── os-homedir@1.0.2 │ │ └── os-tmpdir@1.0.2 │ ├─┬ npmlog@4.1.0 │ │ ├─┬ are-we-there-yet@1.1.4 │ │ │ └── delegates@1.0.0 │ │ ├── console-control-strings@1.1.0 │ │ ├─┬ gauge@2.7.4 │ │ │ ├── aproba@1.1.1 │ │ │ ├── has-unicode@2.0.1 │ │ │ ├── object-assign@4.1.1 │ │ │ ├── signal-exit@3.0.2 │ │ │ ├─┬ string-width@1.0.2 │ │ │ │ ├── code-point-at@1.1.0 │ │ │ │ └─┬ is-fullwidth-code-point@1.0.0 │ │ │ │ └── number-is-nan@1.0.1 │ │ │ ├─┬ strip-ansi@3.0.1 │ │ │ │ └── ansi-regex@2.1.1 │ │ │ └── wide-align@1.1.2 │ │ └── set-blocking@2.0.0 │ ├─┬ rc@1.2.1 │ │ ├── deep-extend@0.4.2 │ │ ├── ini@1.3.4 │ │ ├── minimist@1.2.0 │ │ └── strip-json-comments@2.0.1 │ ├─┬ request@2.81.0 │ │ ├── aws-sign2@0.6.0 │ │ ├── aws4@1.6.0 │ │ ├── caseless@0.12.0 │ │ ├─┬ combined-stream@1.0.5 │ │ │ └── delayed-stream@1.0.0 │ │ ├── extend@3.0.1 │ │ ├── forever-agent@0.6.1 │ │ ├─┬ form-data@2.1.4 │ │ │ └── asynckit@0.4.0 │ │ ├─┬ har-validator@4.2.1 │ │ │ ├─┬ ajv@4.11.8 │ │ │ │ ├── co@4.6.0 │ │ │ │ └─┬ json-stable-stringify@1.0.1 │ │ │ │ └── jsonify@0.0.0 │ │ │ └── har-schema@1.0.5 │ │ ├─┬ hawk@3.1.3 │ │ │ ├── boom@2.10.1 │ │ │ ├── cryptiles@2.0.5 │ │ │ ├── hoek@2.16.3 │ │ │ └── sntp@1.0.9 │ │ ├─┬ http-signature@1.1.1 │ │ │ ├── assert-plus@0.2.0 │ │ │ ├─┬ jsprim@1.4.0 │ │ │ │ ├── assert-plus@1.0.0 │ │ │ │ ├── extsprintf@1.0.2 │ │ │ │ ├── json-schema@0.2.3 │ │ │ │ └── verror@1.3.6 │ │ │ └─┬ sshpk@1.13.0 │ │ │ ├── asn1@0.2.3 │ │ │ ├── assert-plus@1.0.0 │ │ │ ├── bcrypt-pbkdf@1.0.1 │ │ │ ├─┬ dashdash@1.14.1 │ │ │ │ └── assert-plus@1.0.0 │ │ │ ├── ecc-jsbn@0.1.1 │ │ │ ├─┬ getpass@0.1.7 │ │ │ │ └── assert-plus@1.0.0 │ │ │ ├── jodid25519@1.0.2 │ │ │ ├── jsbn@0.1.1 │ │ │ └── tweetnacl@0.14.5 │ │ ├── is-typedarray@1.0.0 │ │ ├── isstream@0.1.2 │ │ ├── json-stringify-safe@5.0.1 │ │ ├─┬ mime-types@2.1.15 │ │ │ └── mime-db@1.27.0 │ │ ├── oauth-sign@0.8.2 │ │ ├── performance-now@0.2.0 │ │ ├── qs@6.4.0 │ │ ├── safe-buffer@5.0.1 │ │ ├── stringstream@0.0.5 │ │ ├─┬ tough-cookie@2.3.2 │ │ │ └── punycode@1.4.1 │ │ ├── tunnel-agent@0.6.0 │ │ └── uuid@3.0.1 │ ├─┬ rimraf@2.6.1 │ │ └─┬ glob@7.1.2 │ │ ├── fs.realpath@1.0.0 │ │ ├── inflight@1.0.6 │ │ ├─┬ minimatch@3.0.4 │ │ │ └─┬ brace-expansion@1.1.7 │ │ │ ├── balanced-match@0.4.2 │ │ │ └── concat-map@0.0.1 │ │ └── path-is-absolute@1.0.1 │ ├── semver@5.3.0 │ ├─┬ tar@2.2.1 │ │ ├── block-stream@0.0.9 │ │ ├─┬ fstream@1.0.11 │ │ │ └── graceful-fs@4.1.11 │ │ └── inherits@2.0.3 │ └─┬ tar-pack@3.4.0 │ ├─┬ debug@2.6.8 │ │ └── ms@2.0.0 │ ├── fstream-ignore@1.0.5 │ ├─┬ once@1.4.0 │ │ └── wrappy@1.0.2 │ ├─┬ readable-stream@2.2.9 │ │ ├── buffer-shims@1.0.0 │ │ ├── core-util-is@1.0.2 │ │ ├── isarray@1.0.0 │ │ ├── process-nextick-args@1.0.7 │ │ ├── string_decoder@1.0.1 │ │ └── util-deprecate@1.0.2 │ └── uid-number@0.0.6 ├── heapdump@0.3.9 ├─┬ request@2.81.0 │ ├── aws4@1.6.0 │ ├── caseless@0.12.0 │ ├── extend@3.0.1 │ ├── form-data@2.1.4 │ ├─┬ har-validator@4.2.1 │ │ ├─┬ ajv@4.11.8 │ │ │ ├── co@4.6.0 │ │ │ └── json-stable-stringify@1.0.1 │ │ └── har-schema@1.0.5 │ ├─┬ http-signature@1.1.1 │ │ ├── jsprim@1.4.0 │ │ └─┬ sshpk@1.13.1 │ │ ├── bcrypt-pbkdf@1.0.1 │ │ ├── getpass@0.1.7 │ │ ├── jsbn@0.1.1 │ │ └── tweetnacl@0.14.5 │ ├─┬ mime-types@2.1.15 │ │ └── mime-db@1.27.0 │ ├── performance-now@0.2.0 │ ├── qs@6.4.0 │ ├── safe-buffer@5.1.1 │ ├── tunnel-agent@0.6.0 │ └── uuid@3.1.0 ├── source-map-support@0.4.15 └─┬ winston@2.3.1 └── stack-trace@0.0.10

npm WARN ios_app_tests@1.0.0 No repository field.

wfmmurali commented 7 years ago

@imurchie It doesn't seem to be recognizing Appium command to get it started ..also tried changing directory to

muralis-mbp-2:~ murali$ cd /Users/murali/node_modules muralis-mbp-2:node_modules murali$ appium -bash: appium: command not found

still not able to start it

Also don't see anything under local_appium folder

screen shot 2017-07-05 at 1 23 20 pm
imurchie commented 7 years ago

I guess it noticed the node_modules directory in the containing directory.

You can either do it again but create a node_modules directory in the local_appium directory before running npm install appium@beta, or you can go into /Users/murali/node_modules and see if there is an appium file in the .bin directory.

wfmmurali commented 7 years ago

did install it again .after making a directory node_modules inside local_appium. It installed but gave this warning message

npm WARN enoent ENOENT: no such file or directory, open '/Users/murali/local_appium/package.json' npm WARN local_appium No description npm WARN local_appium No repository field. npm WARN local_appium No README data npm WARN local_appium No license field.

@imurchie Stil not able to start Appium though , There is no .bin folder

screen shot 2017-07-05 at 1 48 17 pm
imurchie commented 7 years ago

The warnings are normal, as you are not inside an npm package.

The .bin directory would be at the top of the list, and not visible in the Finder (Finder does not display files or directories that begin with a dot). You need to start it from the command line.

jlipps commented 7 years ago

Closing, no repsonse in some time.

ArpitaPrabhat commented 7 years ago

Issue similar to this. Can deploy WDA using xcode. But appium gives xcode 65 error!

crhoads1024 commented 6 years ago

I kept getting this same error: {NSFilePath=/Users/murali/Library/Developer/Xcode/DerivedData/WebDriverAgent-folfazwwukpzfkegdblpnfuwlvfn/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7f8b84b6b9d0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

The workaround which got me up and running was to follow the path listed in the error and when I did I found I had 3 WebDriverAgents image

image

The WebDriverAgent referenced in the error originally did not have the file but I found the WebDriverAgentRunner-Runner.app in a separate WebDriverAgent Debug-iPhoneos folder and the same runner.app file in the agent referenced by Appium's Debug-iphonesimulator folder , for whatever reason it just wasn't where Appium thought it would/should be.

So I copied WebDriverAgentRunner-Runner.app to the WebDriverAgent folder Appium was calling and it loaded and launched the app to my target device without issue.

Hope this helps.

sridharrajendran1 commented 6 years ago

@crhoads1024 Exactly the same issue I had faced and your recommendation solved my problem. Thanks.

fdPoornima commented 6 years ago

@crhoads1024 : That really did the trick. Had wasted a lot of time over this issue. Thank you for taking the time to add such a descriptive response