Can you help me? Do I need Provisioning Profiles (Development) to run correctly appium?
Eachscape is online app builder. (http://builder.eachscape.com).
This bilder request a iOS Provisioning Files and iOS Certificates, but do not request iOS Provisioning Profiles (Development).
I generate iOS app, ant try to test it in appium (on 1.31. and 1.3.3)
Both test is failed.
Log from 1.3.3:
info: Welcome to Appium v1.3.3 (REV 34e21b01b87d4e3959e1c97c0a8d0b1a610bdc78)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {“app”:“com.eachscape.worldnow3”,“udid”:“ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb”,“logNoColors”:true,“nativeInstrumentsLib”:true,“deviceName”:“iPhone 5”}
info: Console LogLevel: debug
info: —> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.3”,“revision”:“34e21b01b87d4e3959e1c97c0a8d0b1a610bdc78”}}}
info: <— GET /wd/hub/status 200 6.870 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.3”,“revision”:“34e21b01b87d4e3959e1c97c0a8d0b1a610bdc78”}}}
info: —> GET /wd/hub/sessions {}
info: [debug] Responding to client with success: {“status”:0,“value”:[]}
info: <— GET /wd/hub/sessions 200 1.446 ms - 23 {“status”:0,“value”:[]}
info: —> POST /wd/hub/session {“desiredCapabilities”:{“platformName”:“iOS”,“platformVersion”:“7.1.1”,“newCommandTimeout”:“999999”,“automationName”:“Appium”,“deviceName”:“iPhone 5”}}
info: Client User-Agent string: Appium (unknown version) CFNetwork/673.0.3 Darwin/13.0.0 (x86_64) (Macmini6%2C1)
info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session 12a39eae-f79b-4bab-8583-be6e0b31bf09
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder
info: [debug] Setting Xcode version
info: —> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.3”,“revision”:“34e21b01b87d4e3959e1c97c0a8d0b1a610bdc78”},“isShuttingDown”:false},“sessionId”:“12a39eae-f79b-4bab-8583-be6e0b31bf09”}
info: <— GET /wd/hub/status 200 1.773 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.3.3”,“revision”:“34e21b01b87d4e3959e1c97c0a8d0b1a610bdc78”},“isShuttingDown”:false},“sessionId”:“12a39eae-f79b-4bab-8583-be6e0b31bf09”}
info: [debug] Setting iOS SDK Version
info: [debug] Getting sdk version from xcrun with a timeout
info: [debug] iOS SDK Version set to 7.1
info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /Volumes/Appium 1/Appium.app/Contents/Resources/node_modules/appium/com.eachscape.worldnow3/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Volumes/Appium 1/Appium.app/Contents/Resources/node_modules/appium/com.eachscape.worldnow3/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings; assuming it doesn’t exist
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/admin/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Volumes/Appium 1/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Volumes/Appium 1/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“sendKeyStrategy”:“grouped”}
parseFileSync()
is deprecated. Use parseStringSync()
instead.
info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
…
info: [debug] Dynamic bootstrap path: /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-b68f81badbd951b6.js
info: [debug] Reusing dynamic bootstrap: /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-b68f81badbd951b6.js
info: [debug] Getting device string from opts:
15:58:26
{“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“5.1.1”,“iOSSDKVersion”:“7.1”,“deviceName”:“iPhone 5”,“platformVersion”:“7.1.1”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone - Simulator - iOS 7.1.1’
info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iPhoneSimulator
info: [debug] Killing any other simulator daemons
info: [debug] On a real device; cannot clean device state
info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole
info: [debug] Not pre-launching simulator
info: [debug] Creating iDevice object with udid ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb
info: [debug] Couldn’t find ideviceinstaller, trying built-in at /Volumes/Appium 1/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
info: [debug] Checking app install status using: /Volumes/Appium 1/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled —id ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb —bundle com.eachscape.worldnow3
error: Failed to start an Appium session, err was: Error: Unable to install [com.eachscape.worldnow3] to device with id [ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb]. Error [Error: Command failed: /bin/sh: /Volumes/Appium: is a directory
]
info: [debug] App is not installed. Will try to install the app.
info: [debug] Installing app using cmd: /Volumes/Appium 1/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install —id ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb —bundle “com.eachscape.worldnow3”
info: [debug] Cleaning up appium session
info: [debug] Error: Unable to install [com.eachscape.worldnow3] to device with id [ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb]. Error [Error: Command failed: /bin/sh: /Volumes/Appium: is a directory
]
at /Volumes/Appium 1/Appium.app/Contents/Resources/node_modules/appium/lib/devices/common.js:147:10
at ChildProcess.exithandler (child_process.js:652:7)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Socket. (child_process.js:969:11)
at Socket.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Unable to install [com.eachscape.worldnow3] to device with id [ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb]. Error [Error: Command failed: /bin/sh: /Volumes/Appium: is a directory\n])”,“origValue”:“Unable to install [com.eachscape.worldnow3] to device with id [ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb]. Error [Error: Command failed: /bin/sh: /Volumes/Appium: is a directory\n]”},“sessionId”:null}
info: <— POST /wd/hub/session 500 2236.356 ms - 480
Log from 1.3.1:
info: Welcome to Appium v1.3.1 (REV 1160ce02bb89c354cb99317985123acf39f0e7d3)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {“app”:“com.eachscape.worldnow3”,“udid”:“ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb”,“logNoColors”:true,“nativeInstrumentsLib”:true,“deviceName”:“iPhone 5”}
info: Console LogLevel: debug
info: —> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”}}}
info: <— GET /wd/hub/status 200 6.840 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”}}}
info: —> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”}}}
info: <— GET /wd/hub/status 200 2.121 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”}}}
info: —> GET /wd/hub/sessions {}
info: [debug] Responding to client with success: {“status”:0,“value”:[]}
info: <— GET /wd/hub/sessions 200 0.978 ms - 23 {“status”:0,“value”:[]}
info: —> POST /wd/hub/session {“desiredCapabilities”:{“platformName”:“iOS”,“platformVersion”:“7.1.1”,“newCommandTimeout”:“999999”,“automationName”:“Appium”,“deviceName”:“iPhone 5”}}
info: Client User-Agent string: Appium (unknown version) CFNetwork/673.0.3 Darwin/13.0.0 (x86_64) (Macmini6%2C1)
info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session 6420dab5-7331-41ea-9040-85d4f8eaaeb2
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder
info: [debug] Setting Xcode version
info: [debug] Setting iOS SDK Version
info: [debug] Getting sdk version from xcrun with a timeout
info: [debug] iOS SDK Version set to 7.1
info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
parseFileSync()
is deprecated. Use parseStringSync()
instead.
info: [debug] Could not parse plist file (as binary) at /Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/com.eachscape.worldnow3/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/com.eachscape.worldnow3/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings; assuming it doesn’t exist
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/admin/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Volumes/Appium/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
…
info: [debug] Dynamic bootstrap path: /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-9280a4dc9be20ec9.js
info: [debug] Reusing dynamic bootstrap: /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-9280a4dc9be20ec9.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“5.1.1”,“iOSSDKVersion”:“7.1”,“deviceName”:“iPhone 5”,“platformVersion”:“7.1.1”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone - Simulator - iOS 7.1.1’
info: [debug] Not setting device type since
16:00:01
we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iPhoneSimulator
info: [debug] Killing any other simulator daemons
info: [debug] On a real device; cannot clean device state
info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole
info: [debug] Not pre-launching simulator
info: [debug] Creating iDevice object with udid ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb
info: [debug] Couldn’t find ideviceinstaller, trying built-in at /Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
info: [debug] Checking app install status using: /Volumes/Appium/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled —id ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb —bundle com.eachscape.worldnow3
info: [debug] App is installed.
info: [debug] fullReset not requested. No need to install.
info: [debug] Starting command proxy.
info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments
info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb
info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w ef0f6a62bace1d87f2e5c7310b8923b4bafa69cb com.eachscape.worldnow3 -e UIASCRIPT “/Users/admin/Library/Application Support/appium/bootstrap/bootstrap-9280a4dc9be20ec9.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:90000}
info: —> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”},“isShuttingDown”:false},“sessionId”:“6420dab5-7331-41ea-9040-85d4f8eaaeb2”}
info: <— GET /wd/hub/status 200 1.749 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”},“isShuttingDown”:false},“sessionId”:“6420dab5-7331-41ea-9040-85d4f8eaaeb2”}
info: [debug] [INST STDERR] 2014-11-28 15:59:37.447 instruments[1715:507] Permission to debug com.eachscape.worldnow3 was denied. The app must be signed with a development identity (e.g. iOS Developer).
info: [debug] [INST STDERR] Instruments Trace Error : Error Starting Recording
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #1
info: [debug] Killall iPhoneSimulator
What i need to do?