-
Notifications
You must be signed in to change notification settings - Fork 0
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
iOS App is unable to launch using appium 1.6.0 (beta) #1
Comments
I'm getting the same error using Appium 1.6.3 |
Has anyone resolved this issue ? I am having the same issue where the app gets installed fine , but during the launch it fails |
@justbondik has the solution to this:
go to your project home dir when i run test with this .app - application start correctly im using: |
1.Launching WebDriverAgent success
2.Can see driver trying to open the app
3. Launching .app file on simulator failed (It opens the app and then close it immediately)
4. The error from terminal complaints
...users-MacBook-Pro:~ user$ (node:19314) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[Appium] Welcome to Appium v1.6.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"appActivity":"Splash_Screen","app":"/Users/user/Desktop/test.app","platformVersion":"10.0","automationName":"XCUITest","bundleid":"com.company.test","MobleCapabilityType.UDID":"51F9C768-C270-4D00-8DB9-E5176CE56FF5","platformName":"iOS","deviceName":"iPhone 5"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"appActivity":"Splash_Scr...
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] appActivity: 'Splash_Screen'
[Appium] app: '/Users/user/Desktop/test.app'
[Appium] platformVersion: '10.0'
[Appium] automationName: 'XCUITest'
[Appium] bundleid: 'com.company.test'
[Appium] MobleCapabilityType.UDID: '51F9C768-C270-4D00-8DB9-E5176CE56FF5'
[Appium] platformName: 'iOS'
[Appium] deviceName: 'iPhone 5'
[debug] [XCUITest] XCUITestDriver version: 2.0.26
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appActivity, bundleid, MobleCapabilityType.UDID.
[BaseDriver] Session created with session id: bd8c8f73-b037-4387-aa2f-e8856ed8e3ea
[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 '51F9C768-C270-4D00-8DB9-E5176CE56FF5'
[XCUITest] Determining device to run tests on: udid: '51F9C768-C270-4D00-8DB9-E5176CE56FF5', real device: false
[BaseDriver] Using local app '/Users/user/Desktop/test.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/user/Library/Logs/CoreSimulator/51F9C768-C270-4D00-8DB9-E5176CE56FF5/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 '51F9C768-C270-4D00-8DB9-E5176CE56FF5' 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 51F9C768-C270-4D00-8DB9-E5176CE56FF5
[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 31659ms
[debug] [XCUITest] Installing app '/Users/user/Desktop/test.app' on device
[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] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Beginning test with command 'xcodebuild build test -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=51F9C768-C270-4D00-8DB9-E5176CE56FF5 -configuration Debug' 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/user/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/9A4CA5C1-5218-4243-92B4-4B1A5AB8A32C/Session-WebDriverAgentRunner-2016-11-28_152737-DwLkfT.log
user Gmx, [28-Nov-2016, 3:54 PM]:
[debug] [WebDriverAgent] Sim: Nov 28 15:27:40 users-MacBook-Pro CoreSimulatorBridge[19356]: Requesting installation of file:///Users/user/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/user/Library/Developer/CoreSimulator/Devices/51F9C768-C270-4D00-8DB9-E5176CE56FF5/data";
[debug] [WebDriverAgent] Sim: }
[debug] [WebDriverAgent] Sim: Nov 28 15:27:40 users-MacBook-Pro CoreSimulatorBridge[19356]: Getting container class internal daemon!
[debug] [WebDriverAgent] Sim: Nov 28 15:27:44 users-MacBook-Pro CoreSimulatorBridge[19356]: 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/user/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator:/Users/user/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/user/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator:/Users/user/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/92/d5szkdtn6p71n326sw34h7wr0000gn/T/com.apple.dt.XCTest/409B14C5-E533-4CCD-A92B-B5BCBABA9A17/remote-container/tmp/WebDriverAgentRunner-409B14C5-E533-4CCD-A92B-B5BCBABA9A17.xctestconfiguration";
[debug] [WebDriverAgent] Sim: "__XCODE_BUILT_PRODUCTS_DIR_PATHS" = "/Users/user/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator";
[debug] [WebDriverAgent] Sim: "__XPC_DYLD_FRAMEWORK_PATH" = "/Users/user/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator";
[debug] [WebDriverAgent] Sim: "__XPC_DYLD_LIBRARY_PATH" = "/Users/user/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator";
[debug] [WebDriverAgent] Sim: };
[debug] [WebDriverAgent] Sim: stderr = "/dev/ttys001";
[debug] [WebDriverAgent] Sim: stdout = "/dev/ttys001";
[debug] [WebDriverAgent] Sim: "wait_for_debugger" = 0;
[debug] [WebDriverAgent] Sim: }
[debug] [WebDriverAgent] Sim: Nov 28 15:27:44 users-MacBook-Pro CoreSimulatorBridge[19356]: [Common] [FBSSystemService][0xefe5] Sending request to open "com.apple.test.WebDriverAgentRunner-Runner"
[debug] [WebDriverAgent] Sim: Nov 28 15:27:44 users-MacBook-Pro CoreSimulatorBridge[19356]: [Common] [FBSSystemService][0xefe5] Request successful: <FBSProcessHandle: 0x7a686c10; XCTRunner:19690; valid: YES>
[debug] [WebDriverAgent] Sim: Nov 28 15:27:44 users-MacBook-Pro XCTRunner[19690]: assertion failed: 15G31 14A345: libxpc.dylib + 68346 [2D9E5899-C86F-38DE-90C5-35938968B265]: 0x7d
[debug] [WebDriverAgent] Sim: Nov 28 15:27:44 users-MacBook-Pro XCTRunner[19690]: Running tests...
[debug] [WebDriverAgent] Sim: Nov 28 15:27:45 --- last message repeated 5 times ---
[debug] [WebDriverAgent] Sim: Nov 28 15:27:45 users-MacBook-Pro XCTRunner[19690]: Continuing to run tests in the background with task ID 1
[debug] [WebDriverAgent] Sim: Nov 28 15:27:46 --- last message repeated 11 times ---
[debug] [WebDriverAgent] Sim: Nov 28 15:27:46 users-MacBook-Pro XCTRunner[19690]: Built at Nov 28 2016 15:27:38
[XCUITest] Detected that WebDriverAgent is running at url 'http://10.7.22.95:8111'
[debug] [WebDriverAgent] Sim: Nov 28 15:27:46 users-MacBook-Pro XCTRunner[19690]: ServerURLHere->http://10.7.21.95:8100<-ServerURLHere
[XCUITest] WebDriverAgent started at url 'http://10.7.22.95:8111'
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bu...
[debug] [WebDriverAgent] Sim: Nov 28 15:28:46 users-MacBook-Pro XCTRunner[19690]: Enqueue Failure: UI Testing Failure - App accessibility isn't loaded /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 35 1
users-MacBook-Pro:~ user$ [debug] [WebDriverAgent] Sim: Nov 28 15:29:46 users-MacBook-Pro XCTRunner[19690]: Enqueue Failure: UI Testing Failure - '<XCUIApplicationImpl: 0x7b072410 com.company.test>' App state is still not running active, state = XCApplicationStateNotRunning /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 35 1
[JSONWP Proxy] Got response with status 200: {"sessionId":"B17529C0-9DE6...
[Appium] New XCUITestDriver session created successfully, session bd8c8f73-b037-4387-aa2f-e8856ed8e3ea added to master session list
[MJSONWP] Responding to client with driver.createSession() result: {"webStorageEnabled":false,...
[HTTP] <-- POST /wd/hub/session 200 173076 ms - 535
[HTTP] --> POST /wd/hub/session/bd8c8f73-b037-4387-aa2f-e8856ed8e3ea/timeouts {"type":"implicit","ms":30000}
The text was updated successfully, but these errors were encountered: