Appium issues at MAC


#1

First of all, thanks for your appium!. Has been awesome this past days I worked with it. And sorry because I am still a newbie.
I have to automatize an app that is cross-platform throught Android and iOS. I already made everything works perfectly at Android side.
But now I am having many many troubles with MAC, Xcode and Appium… I am also new at MAC…

After a lot of research I couldnt fix my problem so here I am to look forward to fix it.

  • MAC version: 10.12.3
  • iOS version: 7.1.2 (iPhone 4)
  • XCode version: 8.2.1
  • Appium version: 1.6.4-beta
  • npm version: 4.3.0

My app is installed perfectly with ideviceinstaller:

$ ideviceinstaller -u 1b42a5a03f9c5ac1a28c58a27cefe9923... -i /Users/user/Documents/MyApp/Payload/MyApp.app
Uploading MyApp.app package contents... DONE.
Installing '(null)'
 - CreatingStagingDirectory (5%)
 - ExtractingPackage (15%)
 - InspectingPackage (20%)
 - TakingInstallLock (20%)
 - PreflightingApplication (30%)
 - VerifyingApplication (40%)
 - CreatingContainer (50%)
 - InstallingApplication (60%)
 - PostflightingApplication (70%)
 - SandboxingApplication (80%)
 - GeneratingApplicationMap (90%)
 - Complete

I made a Hello World app with XCode to test installing and launching the app, but I have the same problems…

Here are my capabilities

        DesiredCapabilities capabilities = new DesiredCapabilities();
		capabilities.setCapability("platformName", "iOS");
		capabilities.setCapability("platformVersion", "9.3"); //Here should go 7.1.2, but version has to be higher than 9.3
		capabilities.setCapability("deviceName", "iPhoneTest");
		capabilities.setCapability("automationName", "XCUITest");
		capabilities.setCapability("bundleId", "com.myapp.sp.tv"); 
		//capabilities.setCapability("showIOSLog", true);
		capabilities.setCapability("udid", "1b42a5a03f9c5ac1a28c58a27cefe9923...");
					
		capabilities.setCapability("app","/Users/user/Documents/MyApp/Payload/MyApp.app");
		//capabilities.setCapability("app","/Users/user/Documents/MyApp.ipa"); //Tried .app and .ipa extension
		driver = new IOSDriver(new URL("http://192.168.0.208:4723/wd/hub"), capabilities);
		driver.launchApp();

Eclipse error displayed at try catch is:

org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{app=/Users/user/Documents/MyApp/Payload/MyApp.app, appium-version=1.6.4-beta, platformVersion=9.3, automationName=XCUITest, bundleId=com.myapp.sp.tv, platformName=iOS, udid=1b42a5a03f9c5ac1a28c58a27cefe9923…, deviceName=iPhoneTest}], required capabilities = Capabilities [{}]
Build info: version: 'unknown', revision: '1969d75', time: '2016-10-18 09:43:45 -0700'
System info: host: 'Mac-mini-de-User.local', ip: '192.168.0.208', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.3', java.version: '1.8.0_101'
Driver info: driver.version: IOSDriver
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:91)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
	at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:69)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
	at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
	at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
	at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:141)
	at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:83)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:93)
	at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:75)
	at MyAppiumTest.<init>(MyAppiumTest.java:38)
	at MyAppiumTest.main(MyAppiumTest.java:71)

And at Appium console I see this:

[debug] [BaseDriver] Event 'newSessionRequested' logged at 1489072335797 (16:12:15 GMT+0100 (CET))
[Appium] Creating new XCUITestDriver (v2.15.0) session
[Appium] Capabilities:
[Appium]   app: '/Users/user/Documents/MyApp/Payload/MyApp.app'
[Appium]   appium-version: '1.6.4-beta'
[Appium]   platformVersion: '9.3'
[Appium]   automationName: 'XCUITest'
[Appium]   bundleId: 'com.myapp.sp.tv'
[Appium]   platformName: 'iOS'
[Appium]   udid: '1b42a5a03f9c5ac1a28c58a27cefe9923...'
[Appium]   deviceName: 'iPhoneTest'
[debug] [XCUITest] XCUITestDriver version: 2.15.0
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version.
[BaseDriver] Session created with session id: 7d370310-0610-4ab6-8ee2-84313b98141d
[debug] [XCUITest] Xcode version set to '8.2.1' (tools v8.2.0.0.1.1480973914)
[debug] [XCUITest] iOS SDK Version set to '10.2'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1489072335831 (16:12:15 GMT+0100 (CET))
[debug] [XCUITest] Available devices: 1b42a5a03f9c5ac1a28c58a27cefe9923...
[debug] [XCUITest] Creating iDevice object with udid '1b42a5a03f9c5ac1a28c58a27cefe9923...'
[XCUITest] Determining device to run tests on: udid: '1b42a5a03f9c5ac1a28c58a27cefe9923...', real device: true
[BaseDriver] Using local app '/Users/user/Documents/MyApp/Payload/MyApp.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1489072336813 (16:12:16 GMT+0100 (CET))
[debug] [XCUITest] Checking whether app '/Users/user/Documents/MyApp/Payload/MyApp.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [BaseDriver] Event 'resetStarted' logged at 1489072336814 (16:12:16 GMT+0100 (CET))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [BaseDriver] Event 'resetComplete' logged at 1489072336815 (16:12:16 GMT+0100 (CET))
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1489072336966 (16:12:16 GMT+0100 (CET))
[XCUITest] Setting up real device
[debug] [XCUITest] Reset requested. Removing app with id 'com.myapp.sp.tv' from the device
[debug] [XCUITest] Installing '/Users/user/Documents/MyApp/Payload/MyApp.app' on device with UUID '1b42a5a03f9c5ac1a28c58a27cefe9923...'...
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1489072351129 (16:12:31 GMT+0100 (CET))
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1489072351130 (16:12:31 GMT+0100 (CET))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=1b42a5a03f9c5ac1a28c58a27cefe9923... -configuration Debug' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[XCUITest] xcodebuild exited with code '70' and signal 'null'
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying

I can see at the phone that the app is installed and at appium server that session is created and I get a session_id, but the thing is that the process repeats a few times (installing, uninstalling, installing…) before the exception is thrown…

Just for the record, I haven’t paid to become an Apple member developer or however is called to develop…

Can someone help me?
Thank you!


#2

Hello again,

I asked a friend for his iPhone 6 Plus and tried testing (changing platformVersion, deviceName and udid). Similar result. Output:

    `[HTTP] --> POST /wd/hub/session {"capabilities":{"desiredCapabilities":{"app":"/Users/user/Documents/MyApp/Payload/MyApp.app","platformVersion":"10.2.1","automationName":"XCUITest","bundleId":"com.myapp.sp.tv","platformName":"iOS","udid":"ec928bd04a3702c00d8cdf29e680b9850d...","deviceName":"iPhone de Alex"},"requiredCapabilities":{}},"desiredCapabilities":{"app":"/Users/user/Documents/MyApp/Payload/MyApp.app","platformVersion":"10.2.1","automationName":"XCUITest","bundleId":"com.myapp.sp.tv","platformName":"iOS","udid":"ec928bd04a3702c00d8cdf29e680b9850d...","deviceName":"iPhone de Alex"},"requiredCapabilities":{}}`
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/user/Documents/MyApp/Payload/MyApp.app","platformVersion":"10.2.1","automationName":"XCUITest","bundleId":"com.myapp.sp.tv","platformName":"iOS","udid":"ec928bd04a3702c00d8cdf29e680b9850d...","deviceName":"iPhone de Alex"},{},{"desiredCapabilities":{"app":"/Users/user/Documents/MyApp/Payload/MyApp.app","platformVersion":"10.2.1","automationName":"XCUITest","bundleId":"com.myapp.sp.tv","platformName":"iOS","udid":"ec928bd04a3702c00d8cdf29e680b9850d...","deviceName":"iPhone de Alex"},"requiredCapabilities":{}},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1489077520926 (17:38:40 GMT+0100 (CET))
[Appium] Creating new XCUITestDriver (v2.15.0) session
[Appium] Capabilities:
[Appium]   app: '/Users/user/Documents/MyApp/Payload/MyApp.app'
[Appium]   platformVersion: '10.2.1'
[Appium]   automationName: 'XCUITest'
[Appium]   bundleId: 'com.myapp.sp.tv'
[Appium]   platformName: 'iOS'
[Appium]   udid: 'ec928bd04a3702c00d8cdf29e680b9850d...'
[Appium]   deviceName: 'iPhone de Alex'
[debug] [XCUITest] XCUITestDriver version: 2.15.0
[BaseDriver] Session created with session id: c63793a7-0915-44c1-8cdb-0c06cd81db41
[debug] [XCUITest] Xcode version set to '8.2.1' (tools v8.2.0.0.1.1480973914)
[debug] [XCUITest] iOS SDK Version set to '10.2'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1489077522088 (17:38:42 GMT+0100 (CET))
[debug] [XCUITest] Available devices: ec928bd04a3702c00d8cdf29e680b9850d..., 1b42a5a03f9c5ac1a28c58a27cefe9923e2a2b86
[debug] [XCUITest] Creating iDevice object with udid 'ec928bd04a3702c00d8cdf29e680b9850d...'
[XCUITest] Determining device to run tests on: udid: 'ec928bd04a3702c00d8cdf29e680b9850d...', real device: true
[BaseDriver] Using local app '/Users/user/Documents/MyApp/Payload/MyApp.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1489077523352 (17:38:43 GMT+0100 (CET))
[debug] [XCUITest] Checking whether app '/Users/user/Documents/MyApp/Payload/MyApp.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [BaseDriver] Event 'resetStarted' logged at 1489077523353 (17:38:43 GMT+0100 (CET))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [BaseDriver] Event 'resetComplete' logged at 1489077523354 (17:38:43 GMT+0100 (CET))
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1489077523475 (17:38:43 GMT+0100 (CET))
[XCUITest] Setting up real device
[debug] [XCUITest] Installing '/Users/user/Documents/MyApp/Payload/MyApp.app' on device with UUID 'ec928bd04a3702c00d8cdf29e680b9850d...'...
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1489077529374 (17:38:49 GMT+0100 (CET))
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1489077529375 (17:38:49 GMT+0100 (CET))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=ec928bd04a3702c00d8cdf29e680b9850d... -configuration Debug' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [XCUITest] Log file for xcodebuild test: /Users/user/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/66CEBAB3-8E12-4145-AB4D-EA5F4944C856/Session-WebDriverAgentRunner-2017-03-09_173909-6KHEov.log
[Xcode] 2017-03-09 17:39:09.985 xcodebuild[30880:545262] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/user/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fe7abb45090 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
[Xcode] 
[Xcode] 2017-03-09 17:39:09.986 xcodebuild[30880:545262] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "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'
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1489077550026 (17:39:10 GMT+0100 (CET))
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying

#3
[debug] [XCUITest] Log file for xcodebuild test: /Users/user/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/66CEBAB3-8E12-4145-AB4D-EA5F4944C856/Session-WebDriverAgentRunner-2017-03-09_173909-6KHEov.log
[Xcode] 2017-03-09 17:39:09.985 xcodebuild[30880:545262] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/user/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fe7abb45090 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
[Xcode] 
[Xcode] 2017-03-09 17:39:09.986 xcodebuild[30880:545262] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "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'

So here seems where the problem is. Check/share this log file (first line).

Are You setting xcodeOrgId: ? (don’t know if you need to be registered in apple developers, but I supose yes… )


#4

Thanks for your reply.
I don’t have any folder 66CEBAB3-8E12-4145-AB4D-EA5F4944C856 at path:
/Users/user/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/

And no, I am not setting xcodeOrgId… what is this and how can I set it?

(Sorry… New to Appium and the whole MAC world)


#5

Sorry! It was hidden. But anyway, the log is not 66CEBAB3… but I guess is because I launched after the one I pasted here:

17:40:20.811 xcodebuild[31001:546486] Beginning test session WebDriverAgentRunner-F8564754-45CF-4273-8A3E-7D2F5DE87EE3 at 2017-03-09 17:40:20.809 with Xcode 8C1002 on target <DVTiOSDevice: 0x7ffbf1743c30> {
		deviceSerialNumber:         F2LP1DQFG5QV
		identifier:                 ec928bd04a3702c00d8cdf29e680b9850d...
		deviceClass:                iPhone
		deviceName:                 iPhone de Alex
		deviceIdentifier:           ec928bd04a3702c00d8cdf29e680b9850d...
		productVersion:             10.2.1
	buildVersion:               14D27
	deviceSoftwareVersion:      10.2.1 (14D27)
	deviceArchitecture:         arm64
	deviceTotalCapacity:        58920345600
	deviceAvailableCapacity:    42840805376
	deviceIsTransient:          NO
	ignored:                    NO
	deviceIsBusy:               NO
	deviceIsActivated:          YES
	deviceActivationState:      Activated
	deviceType:                 <DVTDeviceType:0x7ffbf1572160 Xcode.DeviceType.iPhone>
	supportedDeviceFamilies:    (
1
)
		applications:              (null)
		provisioningProfiles:      (null)
		activityProgress:          -2
		activityTitle:             
		hasInternalSupport:        NO
		isSupportedOS:             YES
		developerDiskMountError:   (null)
(null)
	} (10.2.1 (14D27))

#6

I think has to be the xcode configuration. Check this out:


#7

Both already installed… I guess I might need xcodeOrgId…


#8

what is the output for the below command ?

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=’ test


#9

what is the output for the below command ?

$ xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=' test
xcodebuild: error: missing value for key 'id' of option 'Destination'

#11

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=your device id’ test


#12

@pfernandez if you are still facing the issue

follow the steps https://www.youtube.com/watch?v=ySglJIrDVMQ as mentioned in the video.


#13

Sorry… As I said… I am a newbie haha

Here it is:

$ xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=ec928bd04a3702c00d8cdf29e680b9850d...'
xcodebuild: error: 'WebDriverAgent.xcodeproj' does not exist.

Thanks again for everything!!


#14

it seems you never followed these steps mentioned in the link : https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md


#15

it seems you never followed these steps mentioned in the link : https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md

Ok so I need 100% to register as an Apple developer
I was trying to avoid this, but this is Apple…


#16

Hey guys, I paid and became a member of Apple development program… But things are still not working…

with
$ xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=ec928bd04a3702c00d8cdf29e680b9850d...'

Testing failed:
	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.2'
** TEST FAILED **

And I am getting error in XCode creating the provisioning profile…

The bundle identifier is: io.appium.WebDriverAgentRunner
I choose my account from Team List…

What can I do?


#17

Try Experitest’s version. It is easy as hell - http://experitest.com/appium-studio/


#18

Hi again guys!

First of all thanks for everything!

I am still having problems… I bought an iPhone 6s to make all of this testing, it came today but I think I am making progress…

I was able to compile the app with my certificate, provisioning, etc… And also the WebDriverAgent. Eveything looks good

When I execute this command:

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=<udid>' test

I am getting an OK result such as in the manual…

Getting this message:
{
“value” : “Unhandled endpoint: / – http://192.168.0.154:8100/ with parameters {\n wildcards = (\n “”\n );\n}”,
“sessionId” : “C31B0DCF-4698-4A1E-A44D-3B0B957A76F1”,
“status” : 1
}

But the problem comes from Appium (Versión 1.0.0-beta.6 (1.0.0-beta.6))… I am getting this error that tells me I have no access to system file:

[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: EROFS: read-only file system, mkdir '/private/var/folders/p1/jhqmkqr95v39w3jb7y3vxgw80000gn/T/AppTranslocation/6BE8F650-E2DE-478E-85C3-0445D111C1E7/d/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/Resources'

How is it possible that appium is trying to work with this folder… I was asuming it was going to be working with WebDriverAgent located at:

/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

Can someone help me?

Thanks!


#19

@pfernandez you are not alone! i have CI that running in 24h mode with Simulators. Today moved to 10.3 with latest xCode and got your error in one of run on driver start (this thread the only link in Google :slight_smile: with such error). Due to implemented retry logic this does not affect test - third try succeded.

BTW why you do not use Simulator (just wonder)?

IOSDriver: http://0.0.0.0:4727/wd/hub
[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70
...
IOSDriver: http://0.0.0.0:4727/wd/hub
[simctl] Error: simctl error running 'uninstall': An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=53):
Error returned in reply: Connection interrupted

#20

@Aleksei Unfortunately my client need to test his app at real devices

I finally was able to test on the device!
Thanks to everyone for your replies, help and time. I came to paste how I solved the problem:

[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: EROFS: read-only file system, mkdir '/private/var/folders/p1/jhqmkqr95v39w3jb7y3vxgw80000gn/T/AppTranslocation/6BE8F650-E2DE-478E-85C3-0445D111C1E7/d/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/Resources'

It was because when I had downloaded appium-desktop, I was executing Appium.app from Downloads folder… To avoid this permission thing you have to move it to /Applications folder… (As I said I am new to MAC… so i am really a newbie)

Thank you!


#21

look at this - Appium Studio, anyone tried?