Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xCode 8, iOS 10 not working with the beta version of appium 1.6.0 #6853

Closed
danqa opened this issue Sep 16, 2016 · 86 comments
Closed

xCode 8, iOS 10 not working with the beta version of appium 1.6.0 #6853

danqa opened this issue Sep 16, 2016 · 86 comments

Comments

@danqa
Copy link

danqa commented Sep 16, 2016

My Caps:

    caps = {
      'platformName' => 'iOS',
      'platformVersion' => '10.0',
      'app' => '/Users/x/Downloads/artifacts/app/ios/emulator/my.app',
      'deviceName' => 'iPhone 6',
      'sendKeyStrategy' => 'setValue',
      'autoWebview' => 'true',
      'fullReset' => 'true',
      'automationName' => 'XCUITest'
    }

using appium_lib ruby gem

I have upgraded to Xcode 8 (not the beta version the main release).

I am getting the following error:

Failure/Error: if e = error()

  Selenium::WebDriver::Error::UnknownError:
    An unknown server-side error occurred while processing the command. Original error: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1
@triager triager added the Needs Triage bugs which are not yet confirmed label Sep 16, 2016
@imurchie
Copy link
Contributor

Can you go into your appium installation, then go into node_modules/appium-xcuitest-driver/WebDriverAgent and try running Scripts/bootstrap.sh -d. What happens then?

@danqa
Copy link
Author

danqa commented Sep 16, 2016

@imurchie Ah I don't have it.

/usr/local/lib/node_modules (master) $ ls
appium coffee-script cordova generator-hubot gulp hubot ios-deploy ios-sim npm yo

How would I install it?

@imurchie
Copy link
Contributor

If you've installed the beta version of appium it should be there.

@danqa
Copy link
Author

danqa commented Sep 16, 2016

@imurchie I did this: npm install -g appium@beta

and have this

appium -v
1.6.0-beta1

so unless I am looking in the wrong directory I don't see it. :(

@imurchie
Copy link
Contributor

Where is that appium installed?

@danqa
Copy link
Author

danqa commented Sep 16, 2016

which appium
/usr/local/bin/appium

@imurchie
Copy link
Contributor

Is that a symlink to somewhere else?

@danqa
Copy link
Author

danqa commented Sep 16, 2016

Not sure. How would I check?

@imurchie
Copy link
Contributor

ls -la /usr/local/bin/appium ought to give some indication.

I just tried installing, and got:

isaac code → which appium
/Users/isaac/.nvm/versions/node/v4.4.7/bin/appium
isaac code → ls -la /Users/isaac/.nvm/versions/node/v4.4.7/bin/appium
lrwxr-xr-x  1 isaac  staff  44 Aug 18 20:16 /Users/isaac/.nvm/versions/node/v4.4.7/bin/appium -> ../lib/node_modules/appium/build/lib/main.js
isaac code →

@imurchie
Copy link
Contributor

From there, the directory where the script ought to be run is

/Users/isaac/.nvm/versions/node/v4.4.7/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

@danqa
Copy link
Author

danqa commented Sep 16, 2016

ls -la /usr/local/bin/appium
lrwxr-xr-x 1 danielstraus admin 44 Apr 27 12:19 /usr/local/bin/appium -> ../lib/node_modules/appium/build/lib/main.js

@imurchie
Copy link
Contributor

Ok, so try looking in /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

@danqa
Copy link
Author

danqa commented Sep 16, 2016

Ok

Local: /usr/local/lib/node_modules (master) $ cd appium/node_modules/appium-xcuitest-driver/WebDriverAgent/
Local: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent (master) $ Scripts/bootstrap.sh -d
Fetching dependencies
Please make sure that you have Carthage installed (https://github.com/Carthage/Carthage)
Note: We are expecting that carthage installed in /usr/local/bin/

that another npm package I need to install?

@imurchie
Copy link
Contributor

Do you have Carthage installed?

@danqa
Copy link
Author

danqa commented Sep 16, 2016

Nope. I don't know what carthage is. I'll install it now. One moment please. And thank you very much for the help :)

@imurchie
Copy link
Contributor

I will make a task to make better error handling for Carthage.

brew install carthage ought to do it. It's a dependency manager that the WebDriverAgent requires. Alas.

@danqa
Copy link
Author

danqa commented Sep 16, 2016

this looks better:

Local: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent (master) $ brew install carthage
==> Downloading https://homebrew.bintray.com/bottles/carthage-0.11.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring carthage-0.11.el_capitan.bottle.tar.gz
🍺 /usr/local/Cellar/carthage/0.11: 29 files, 11.4M
Local: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent (master) $ Scripts/bootstrap.sh -d
Fetching dependencies
*** Downloading RoutingHTTPServer.framework binary at "v1.0.1"
*** Downloading peertalk.framework binary at "v1.0"
*** Downloading KissXML.framework binary at "5.0.5"
*** xcodebuild output can be found in /var/folders/l1/wcd0m9kx6676h8dg4bp6n4b80000gn/T/carthage-xcodebuild.ovo0gR.log

I reran my automation and getting a different error now:

Failure/Error: if e = error()

  Selenium::WebDriver::Error::IndexOutOfBoundsError:
    Unhandled endpoint: /session/605A4FFC-8009-4DBB-A5B7-693C33F195E9/location -- http://localhost:8100/ with parameters {
        wildcards =     (
            "session/605A4FFC-8009-4DBB-A5B7-693C33F195E9/location"
        );
    }

@imurchie
Copy link
Contributor

I'll need the whole server log to make any sense of things.

@danqa
Copy link
Author

danqa commented Sep 16, 2016

ocal: ~ $ appium
[Appium] Welcome to Appium v1.6.0-beta1 (REV 5b4713a677bb0f195485a91b356ade895e8db1b7)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","platformVersion":"10.0","app":"/Users/danielstraus/Downloads/artifacts/S Operator/ios/emulator/S Operator.app","deviceName":"iPhone 7","sendKeyStrategy":"setValue","autoWebview":"true","fullReset":"true","automationName":"XCUITest","name":"operator_sessions_spec","build":"2016-09-16 11:04:56 -0400"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","pla...
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium]   platformName: 'iOS'
[Appium]   platformVersion: '10.0'
[Appium]   app: '/Users/danielstraus/Downloads/artifacts/S Operator/ios/emulator/S Operator.app'
[Appium]   deviceName: 'iPhone 7'
[Appium]   sendKeyStrategy: 'setValue'
[Appium]   autoWebview: 'true'
[Appium]   fullReset: 'true'
[Appium]   automationName: 'XCUITest'
[Appium]   name: 'operator_sessions_spec'
[Appium]   build: '2016-09-16 11:04:56 -0400'
[BaseDriver] Capability 'autoWebview' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'fullReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by appium: name, build.
[BaseDriver] Session created with session id: d0b11471-18f8-4c3f-a6e1-aad6fa8654da
[debug] [XCUITest] Xcode version set to '8.0'
[debug] [XCUITest] iOS SDK Version set to '10.0'
[iOSSim] Constructing iOS simulator for Xcode version 8.0 with udid 'E4C6F80B-A87B-4299-88B4-7F4708B566A4'
[debug] [iOSSim] Killing any simulator daemons for E4C6F80B-A87B-4299-88B4-7F4708B566A4
[iOSSim] Cleaning simulator E4C6F80B-A87B-4299-88B4-7F4708B566A4
[debug] [iOSSim] Killing all iOS Simulators
[XCUITest] Determining device to run tests on: udid: 'E4C6F80B-A87B-4299-88B4-7F4708B566A4', real device: false
[BaseDriver] Using local app '/Users/danielstraus/Downloads/artifacts/S Operator/ios/emulator/S Operator.app'
[debug] [XCUITest] Checking whether app is actually present
[debug] [ios-app-utils] Getting bundle ID from app
[debug] [iOSLog] Starting iOS 10.0 simulator log capture
[debug] [iOSLog] System log path: /Users/danielstraus/Library/Logs/CoreSimulator/E4C6F80B-A87B-4299-88B4-7F4708B566A4/system.log
[XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid 'E4C6F80B-A87B-4299-88B4-7F4708B566A4' not booted. Booting up now
[debug] [iOSSim] Killing all iOS Simulators
[iOSSim] Starting simulator with command: open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID E4C6F80B-A87B-4299-88B4-7F4708B566A4
[iOSSim] Tailing simulator logs until we encounter the string "SMS Plugin initialized"
[iOSSim] We will time out after 60000ms
[debug] [iOSSim] Waiting an extra 10000ms for the simulator to really finish booting
[debug] [iOSSim] Done waiting extra time for simulator
[iOSSim] Simulator booted in 28744ms
[XCUITest] Using default agent: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Beginning test with command 'xcodebuild -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=E4C6F80B-A87B-4299-88B4-7F4708B566A4 build test' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/danielstraus/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/E606E776-45F8-4025-8F9B-C974D346596B/Session-WebDriverAgentRunner-2016-09-16_110535-m0q60Q.log
[debug] [WebDriverAgent] Sim: Sep 16 11:05:39 Daniels-MBP-2 CoreSimulatorBridge[6140]: Requesting installation of file:///Users/danielstraus/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app/ with options: {
[debug] [WebDriverAgent] Sim:       CFBundleIdentifier = "com.apple.test.WebDriverAgentRunner-Runner";
[debug] [WebDriverAgent] Sim:       PackageType = Developer;
[debug] [WebDriverAgent] Sim:       SimulatorRootPath = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk";
[debug] [WebDriverAgent] Sim:       SimulatorUserPath = "/Users/danielstraus/Library/Developer/CoreSimulator/Devices/E4C6F80B-A87B-4299-88B4-7F4708B566A4/data";
[debug] [WebDriverAgent] Sim:   }
[debug] [WebDriverAgent] Sim: Sep 16 11:05:43 Daniels-MBP-2 CoreSimulatorBridge[6140]: Requesting launch of com.apple.test.WebDriverAgentRunner-Runner with options: {
[debug] [WebDriverAgent] Sim:       arguments =     (
[debug] [WebDriverAgent] Sim:           "-NSTreatUnknownArgumentsAsOpen",
[debug] [WebDriverAgent] Sim:           NO,
[debug] [WebDriverAgent] Sim:           "-ApplePersistenceIgnoreState",
[debug] [WebDriverAgent] Sim:           YES
[debug] [WebDriverAgent] Sim:       );
[debug] [WebDriverAgent] Sim:       environment =     {
[debug] [WebDriverAgent] Sim:           "DTX_CONNECTION_SERVICES_PATH" = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Developer/Library/PrivateFrameworks/DTXConnectionServices.framework";
[debug] [WebDriverAgent] Sim:           "DYLD_FRAMEWORK_PATH" = "/Users/danielstraus/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator:/Users/danielstraus/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks";
[debug] [WebDriverAgent] Sim:           "DYLD_LIBRARY_PATH" = "/Users/danielstraus/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator:/Users/danielstraus/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks";
[debug] [WebDriverAgent] Sim:           NSUnbufferedIO = YES;
[debug] [WebDriverAgent] Sim:           "OS_ACTIVITY_DT_MODE" = YES;
[debug] [WebDriverAgent] Sim:           "XCODE_DBG_XPC_EXCLUSIONS" = "com.apple.dt.xctestSymbolicator";
[debug] [WebDriverAgent] Sim:           XCTestConfigurationFilePath = "/var/folders/l1/wcd0m9kx6676h8dg4bp6n4b80000gn/T/com.apple.dt.XCTest/86B726E1-CF51-455C-B42F-655B5B7A7903/remote-container/tmp/WebDriverAgentRunner-86B726E1-CF51-455C-B42F-655B5B7A7903.xctestconfiguration";
[debug] [WebDriverAgent] Sim:           "__XCODE_BUILT_PRODUCTS_DIR_PATHS" = "/Users/danielstraus/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator";
[debug] [WebDriverAgent] Sim:           "__XPC_DYLD_FRAMEWORK_PATH" = "/Users/danielstraus/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator";
[debug] [WebDriverAgent] Sim:           "__XPC_DYLD_LIBRARY_PATH" = "/Users/danielstraus/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator";
[debug] [WebDriverAgent] Sim:       };
[debug] [WebDriverAgent] Sim:       stderr = "/dev/ttys011";
[debug] [WebDriverAgent] Sim:       stdout = "/dev/ttys011";
[debug] [WebDriverAgent] Sim:       "wait_for_debugger" = 0;
[debug] [WebDriverAgent] Sim:   }
[debug] [WebDriverAgent] Sim: Sep 16 11:05:43 Daniels-MBP-2 CoreSimulatorBridge[6140]: [Common] [FBSSystemService][0xe060] Sending request to open "com.apple.test.WebDriverAgentRunner-Runner"
[debug] [WebDriverAgent] Sim: Sep 16 11:05:43 Daniels-MBP-2 CoreSimulatorBridge[6140]: [Common] [FBSSystemService][0xe060] Request successful: <FBSProcessHandle: 0x7fe1ca90eea0; XCTRunner:6473; valid: YES>
[debug] [WebDriverAgent] Sim: Sep 16 11:05:43 Daniels-MBP-2 XCTRunner[6473]: assertion failed: 15G1004 14A345: libxpc.dylib + 62597 [37A9DF49-35C1-3D93-B854-B35CACF0100F]: 0x7d
[debug] [WebDriverAgent] Sim: Sep 16 11:05:43 Daniels-MBP-2 XCTRunner[6473]: Running tests...
[debug] [WebDriverAgent] Sim: Sep 16 11:05:44 --- last message repeated 4 times ---
[debug] [WebDriverAgent] Sim: Sep 16 11:05:44 Daniels-MBP-2 XCTRunner[6473]: Continuing to run tests in the background with task ID 1
[debug] [WebDriverAgent] Sim: Sep 16 11:05:44 --- last message repeated 13 times ---
[debug] [WebDriverAgent] Sim: Sep 16 11:05:44 Daniels-MBP-2 XCTRunner[6473]: Built at Sep 16 2016 11:05:37
[XCUITest] Detected that WebDriverAgent is running at url 'http://192.168.1.199:8100'
[debug] [WebDriverAgent] Sim: Sep 16 11:05:44 Daniels-MBP-2 XCTRunner[6473]: ServerURLHere->http://192.168.1.199:8100<-ServerURLHere
[XCUITest] WebDriverAgent started at url 'http://192.168.1.199:8100'
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bu...
[debug] [WebDriverAgent] Sim: Sep 16 11:05:44 Daniels-MBP-2 XCTRunner[6473]: Listening on USB
[debug] [WebDriverAgent] Sim: Sep 16 11:05:44 Daniels-MBP-2 assertiond[6135]: Could not create or rename power assertion for <BKNewProcess: 0x7fb49b105070; com.apple.test.WebDriverAgentRunner-Runner; pid: 6473; hostpid: -1>: 0xe00002c9
[debug] [WebDriverAgent] Sim: Sep 16 11:05:44 Daniels-MBP-2 SpringBoard[6131]: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"772A...
[Appium] New XCUITestDriver session created successfully, session d0b11471-18f8-4c3f-a6e1-aad6fa8654da added to master session list
[MJSONWP] Responding to client with driver.createSession() result: {"webStorageEnabled":false,...
[HTTP] <-- POST /wd/hub/session 200 50990 ms - 591
[HTTP] --> POST /wd/hub/session/d0b11471-18f8-4c3f-a6e1-aad6fa8654da/timeouts/implicit_wait {"ms":0}
[MJSONWP] Calling AppiumDriver.implicitWait() with args: [0,"d0b11471-18f8-4c3f-a6e1...
[debug] [XCUITest] Executing command 'implicitWait'
[debug] [BaseDriver] Set implicit wait to 0ms
[MJSONWP] Responding to client with driver.implicitWait() result: null
[HTTP] <-- POST /wd/hub/session/d0b11471-18f8-4c3f-a6e1-aad6fa8654da/timeouts/implicit_wait 200 6 ms - 76
[HTTP] --> POST /wd/hub/session/d0b11471-18f8-4c3f-a6e1-aad6fa8654da/location {"location":{"latitude":40.7128,"longitude":74.0059,"altitude":0}}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command 'proxyReqRes'
[JSONWP Proxy] Proxying [POST /wd/hub/session/d0b11471-18f8-4c3f-a6e1-aad6fa8654da/location] to [POST http://localhost:8100/session/772A8156-3779-41E7-B434-01A23DC5CA3C/location] with body: {"location":{"latitude":40....
[JSONWP Proxy] Got response with status 200: {"value":"Unhandled endpoin...
[JSONWP Proxy] Replacing sessionId 772A8156-3779-41E7-B434-01A23DC5CA3C with d0b11471-18f8-4c3f-a6e1-aad6fa8654da
[HTTP] <-- POST /wd/hub/session/d0b11471-18f8-4c3f-a6e1-aad6fa8654da/location 200 17 ms - 293
[HTTP] --> DELETE /wd/hub/session/d0b11471-18f8-4c3f-a6e1-aad6fa8654da {}
[MJSONWP] Calling AppiumDriver.deleteSession() with args: ["d0b11471-18f8-4c3f-a6e1-a...
[XCUITest] Shutting down WebDriverAgent
[XCUITest] Simulator log exited with code 'null'
[XCUITest] xcodebuild exited with code 'null' and signal 'SIGTERM'
[debug] [XCUITest] Resetting simulator
[debug] [XCUITest] Shutting down simulator
[debug] [iOSSim] Killing all iOS Simulators
[debug] [iOSLog] Stopping iOS log capture
[Appium] Removing session d0b11471-18f8-4c3f-a6e1-aad6fa8654da from our master session list
[debug] [MJSONWP] Received response: null
[debug] [MJSONWP] But deleting session, so not returning
[MJSONWP] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /wd/hub/session/d0b11471-18f8-4c3f-a6e1-aad6fa8654da 200 11362 ms - 76```

@imurchie
Copy link
Contributor

Alright. The location endpoint has not been implemented yet. The underlying system does not do it. I've made a task to do it, and will begin looking at how.

@danqa
Copy link
Author

danqa commented Sep 16, 2016

Thank you at @imurchie

@imurchie
Copy link
Contributor

You're welcome. Thanks for being patient, as we work through the kinks in this.

@shay777
Copy link

shay777 commented Sep 19, 2016

hi
I ran Scripts/bootstrap.sh -d from node_modules/appium-xcuitest-driver/WebDriverAgent and this was the result:
$ Scripts/bootstrap.sh -d
Fetching dependencies

And nothing happens. Is there anything I should do?
thanks

@imurchie
Copy link
Contributor

You should get some stuff downloaded:

isaac WebDriverAgent → git 151eb91 → ./Scripts/bootstrap.sh -d
Fetching dependencies
*** Downloading KissXML.framework binary at "5.0.5"
*** Downloading peertalk.framework binary at "v1.0"
*** Downloading RoutingHTTPServer.framework binary at "v1.0.1"
*** xcodebuild output can be found in /var/folders/1l/3rb7r9kd00x7wsf72472ylnc0000gn/T/carthage-xcodebuild.kTgCR1.log
isaac WebDriverAgent → git 151eb91* →

But you shouldn't need to do this. Appium will do it for you. That was not the problem on this issue.

@Hellengo
Copy link

Hellengo commented Sep 22, 2016

Hi,
Scripts/bootstrap.sh -d
Fetching dependencies
*** Downloading KissXML.framework binary at "5.0.5"
Failed to write to /Users/Hellengo/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Build/iOS: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “iOS” in the folder “Build”." UserInfo={NSFilePath=/Users/Hellengo/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Build/iOS, NSUnderlyingError=0x7ff788447da0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}

so you can run:
sudo chmod -R 777 /Users/yourname/.npm-packages/lib/node_modules/appium/node_modules/appium-xcuitest-driver/

then
Scripts/bootstrap.sh -d
Fetching dependencies
*** Downloading KissXML.framework binary at "5.0.5"
*** Downloading peertalk.framework binary at "v1.0"
*** Downloading RoutingHTTPServer.framework binary at "v1.0.1"
*** Downloading RoutingHTTPServer.framework binary at "v1.0.1"
*** xcodebuild output can be found in /var/folders/br/9sgfr0m94g56qmxgp61pf33r0000gn/T/carthage-xcodebuild.wgkJgF.log

@phoebusliang
Copy link

@LiudasTumasonis Definitely, they're no detail documents for this. All element will present when you use ARC "page" command, but the stable method to locate element are find_elements(:xpath, '') or find_elements(:id,'') or find_elements(:id,'') etc.

@phoebusliang
Copy link

@vishwathma The 1.6.0 release does not support the iOS 10/xcode 8 now.

@mohanngs
Copy link

mohanngs commented Oct 17, 2016

plzz help me to solve the issue..i am stucked here..

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: xcodebuild failed with code 65 (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 32.63 seconds
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
System info: host: 'Sanchas-MacBook-Pro.local', ip: '192.168.0.6', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: io.appium.java_client.ios.IOSDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
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:249)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:144)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:37)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:162)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:171)
at io.appium.java_client.ios.IOSDriver.(IOSDriver.java:56)
at com.config.ConfigCapa.createDeviceInstance(ConfigCapa.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:216)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:143)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1225)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1150)
at org.testng.TestNG.runSuites(TestNG.java:1075)
at org.testng.TestNG.run(TestNG.java:1047)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:137)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:58)

@mohanngs
Copy link

mohanngs commented Oct 17, 2016

system used: MAC
Xcode version : 8
appium version: 1.6 beta
IOS REAL DEVICE UPDATED 10.0.2

@imurchie
Copy link
Contributor

@mohanngs: Can you post the Appium server logs as a gist?

@mohanngs
Copy link

It should be a public or secret gist..

@mohanngs
Copy link

@imurchie...it should be a public or secret gist.

@imurchie
Copy link
Contributor

@mohanngs It doesn't matter. Public is probably easier, but I think if you have the link, a secret one is the same.

@mohanngs
Copy link

@imurchie..i hav posted it plz go through that and help me to solve the issue thank you very much..

@imurchie
Copy link
Contributor

@mohanngs You need to post a link here.

@mohanngs
Copy link

@mohanngs
Copy link

@imurchie
Copy link
Contributor

@mohanngs Have you done anything to handle code signing?

https://github.com/appium/appium-xcuitest-driver#configuration

@mohanngs
Copy link

No...What is code signing..We dont have any idea about that..What we need to do?can u guide me..?

@mohanngs
Copy link

We hav apple id and we have downloaded the certificates and we have launched the app using xcode 8 on real device ios 10..but not able to launch the app using my automation scripts..

@imurchie
Copy link
Contributor

@mohanngs I provided a link in the previous post.

If it does not make sense, I suggest getting whoever developed the app you are testing to tell you how iOS apps on real devices work.

@mohanngs
Copy link

And there is a small doubt with respect to sauce lab for web application..I am running by scripts in sauce lab and there are file uploading scenarios in my script.but during running of that script the we are getting invalid file path.Bcoz the file path is of our local machine...Then how to perform this.

@imurchie
Copy link
Contributor

This is not the place for that. Please open a new issue if you want to discuss.

@mohanngs
Copy link

k thank you..

@mohanngs
Copy link

mohanngs commented Oct 18, 2016

please anyone can help me with this.. I am not able to find WebDriverRunner and WebDriverAgent in my targets of xcode..

@imurchie
Copy link
Contributor

Have you tried using an xcode config file, @mohanngs ? It is much easier.

https://github.com/appium/appium-xcuitest-driver#configuration

@uzmasyed00
Copy link

How do we start the appium node server?

@mohanngs
Copy link

Stop appium server with command: killall node or you can try: ps aux | grep appium, find the process and kill it.

@mohanngs
Copy link

start the appium server by using this command in terminal appium &

@shabana-parveen
Copy link

I got the same error, then I try to follow above steps and getting below error, Now I am unable to run my iOS automation suit with appium 1.6.0 version, Please help

Synchronizing submodule url for 'Externals/Nimble'
==> make prefix_install PREFIX=/usr/local/Cellar/carthage/0.16.2
Last 15 lines from /Users/f2849/Library/Logs/Homebrew/carthage/01.make:
=== CLEAN TARGET PrettyColors-Mac OF PROJECT PrettyColors WITH CONFIGURATION Release ===

Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

** CLEAN FAILED **

The following build commands failed:
Check dependencies
Check dependencies
Check dependencies
Check dependencies
(4 failures)
make: *** [clean] Error 65
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/Homebrew/homebrew-core/issues

Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.

@saikrishna321
Copy link
Member

@shabana-parveen please raise a new defect, this thread has lot of discussions

@mohanngs
Copy link

Hi everyone..how to inspect element for ios 10..?using appium 1.6.0 beta..

@saikrishna321
Copy link
Member

@mohanngs pls raise question on discuss.appium.io

@appium appium locked and limited conversation to collaborators Oct 19, 2016
@imurchie imurchie removed the Needs Triage bugs which are not yet confirmed label Apr 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests