Not able to run ios application in real iPhone using appium .

1,131 views
Skip to first unread message

Dipti Ranjan Lenka

unread,
May 21, 2014, 1:50:49 AM5/21/14
to appium-...@googlegroups.com
Hi the steps i followed as . iam using appium.app

1->Install the application from xcode to that real device.
2-->Put the bundle ID which i get it from the budnle identifier of the xcode.
3-->the setting preferences i have attached in it.
4-->I am using appium 1.0.0 orion version.
5-->I am getting the follwoing error always 

info: Starting Appium in pre-launch mode

info: Pre-launching app

info: Got configuration error, not starting session

info: Cleaning up appium session


error: Could not determine your device from Appium arguments or desired capabilities. Please make sure to specify the 'deviceName' capability

Attached the screen shot of the prefences.



Dipti Ranjan Lenka

unread,
May 22, 2014, 4:50:33 AM5/22/14
to appium-...@googlegroups.com
Any update on this anyone?

Philipp Kastner

unread,
May 22, 2014, 5:45:27 AM5/22/14
to appium-...@googlegroups.com
How does your code for setting up the test look like?
Do you set the deviceName capability correctly? (see http://appium.io/slate/en/master/?ruby#appium-server-capabilities)

Kind regards,
Philipp

Dipti Ranjan Lenka

unread,
May 23, 2014, 12:46:12 AM5/23/14
to appium-...@googlegroups.com
hi Philipp,

I am using appium.app, where I have put UDID, Bundle ID , then try to run, and another way I put app path and UDID, the application installed in the machine in this method, but not able to launch the application after install in the device using appium.app

Dipti Ranjan Lenka

unread,
May 23, 2014, 2:35:57 AM5/23/14
to appium-...@googlegroups.com
Attaching the log file i get, the application is installed in iPhone 7.1 device through xCode.
I am trying to run the application through appium.app,1.0 version where i only select UDID and App path.




info: Starting Appium in pre-launch mode

info: Pre-launching app

info: Using local app from command line: /Users/tathagatamitra/Library/Developer/Xcode/DerivedData/NativeiOSShell-ftihqpadtkyouwgfzmljsyjswapy/Build/Products/Release-iphoneos/xxx.app

info: Creating new appium session 0bc3d056-b4fe-41e7-b169-aa3fcf5cf241


info: Removing any remaining instruments sockets

info: Cleaned up instruments socket /tmp/instruments_sock

info: Cleaning up any tracedirs


info: No tracedirs to clean up


info: Setting Xcode folder


info: Setting Xcode version


info: Setting iOS SDK Version


info: iOS SDK Version set to 7.0


info: Detecting automation tracetemplate


info: Not auto-detecting udid, running on sim


debug: Creating instruments

info: Parsed app Localizable.strings

info: Not setting locale because we're using a real device

info: Not setting iOS and app preferences since we're on a real device

info: Starting iOS device log capture via idevicesyslog

info: Not setting device type since we're connected to a device

info: Creating iDevice object with udid 81e4999f0822918b713b3d369a0a9a0c3769555f

info: Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller

info: Installing app using cmd: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id 81e4999f0822918b713b3d369a0a9a0c3769555f --bundle "/Users/tathagatamitra/Library/Developer/Xcode/DerivedData/NativeiOSShell-ftihqpadtkyouwgfzmljsyjswapy/Build/Products/Release-iphoneos/xxx.app"

info: Cleaning up appium session

error: Could not pre-launch appium: Error: Unable to install [/Users/tathagatamitra/Library/Developer/Xcode/DerivedData/NativeiOSShell-ftihqpadtkyouwgfzmljsyjswapy/Build/Products/Release-iphoneos/xxx.app] to device with id [81e4999f0822918b713b3d369a0a9a0c3769555f]. Error [Error: Command failed: Assertion failed: (AMDeviceValidatePairing(device) == 0), function handle_device, file fruitstrap.c, line 513.

]

littlefish

unread,
May 23, 2014, 5:21:16 AM5/23/14
to appium-...@googlegroups.com
Hello,have your problem been solved?I have something about ios automation to ask for you.I'm now use appoium on Simulator and .The error message is :"

Simulator session timed out.Instruments Trace Error : Error Starting Recording".Can you run on simulator?


在 2014年5月23日星期五UTC+8下午2时35分57秒,Dipti Ranjan Lenka写道:

Dipti Ranjan Lenka

unread,
May 23, 2014, 5:30:18 AM5/23/14
to appium-...@googlegroups.com

Not yet my problem is not yet solved, now it shows this error message.


info: Starting Appium in pre-launch mode

info: Pre-launching app

info: Using local app from command line: /Users/tathagatamitra/Library/Developer/Xcode/DerivedData/NativeiOSShell-ftihqpadtkyouwgfzmljsyjswapy/Build/Products/Release-iphoneos/xxx.app

info: Creating new appium session 130e950e-aeee-40b3-9876-135943ff10db


info: Removing any remaining instruments sockets

info: Cleaned up instruments socket /tmp/instruments_sock

info: Cleaning up any tracedirs

info: No tracedirs to clean up

info: Setting Xcode folder


info: Setting Xcode version


info: Setting iOS SDK Version

info: iOS SDK Version set to 7.0

info: Detecting automation tracetemplate

info: Not auto-detecting udid, running on sim

info: Parsed app Localizable.strings

info: Not setting locale because we're using a real device

debug: Creating instruments

info: Not setting iOS and app preferences since we're on a real device

info: Starting iOS device log capture via idevicesyslog

info: Not setting device type since we're connected to a device

info: Creating iDevice object with udid 81e4999f0822918b713b3d369a0a9a0c3769555f

info: Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller

info: Installing app using cmd: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id 81e4999f0822918b713b3d369a0a9a0c3769555f --bundle "/Users/tathagatamitra/Library/Developer/Xcode/DerivedData/NativeiOSShell-ftihqpadtkyouwgfzmljsyjswapy/Build/Products/Release-iphoneos/xxx.app"

debug: [IOS_SYSLOG_ROW ] May 23 14:54:36 iPhone mobile_installation_proxy[101] <Warning>: LaunchServices: Please include the kCFBundleIdentifierKey in the options dictionary when installing an app.


debug: [IOS_SYSLOG_ROW ] May 23 14:54:36 iPhone mobile_installation_proxy[101] <Warning>: LaunchServices: installing app for existing placeholder (null)


debug: [IOS_SYSLOG_ROW ] May 23 14:54:36 iPhone installd[17] <Notice>: 0x10050c000 handle_install_for_ls: Install of "/var/mobile/Media/PublicStaging/xxx.app" requested by mobile_installation_proxy


debug: [IOS_SYSLOG_ROW ] May 23 14:54:36 iPhone installd[17] <Notice>: 0x10050c000 MobileInstallationInstall_Server: Installing app com.perceptivesoftware.xxxx


debug: [IOS_SYSLOG_ROW ] May 23 14:54:37 iPhone lockdownd[25] <Error>: FAILURE: Failed to open property list at file:///private/var/db/launchd.db/com.apple.launchd/overrides.plist for reading. (The operation couldn’t be completed. No such file or directory)

debug: [IOS_SYSLOG_ROW ] May 23 14:54:44 iPhone installd[17] <Notice>: 0x10050c000 MobileInstallationInstall_Server: Staging: 0.03s; Waiting: 0.00s; Installation: 7.78s; LS Sync: 0.00s; Overall: 7.81s

debug: [IOS_SYSLOG_ROW ] May 23 14:54:44 iPhone /usr/libexec/lsd[77] <Error>: Need to synchronize with MobileInstallation

debug: [IOS_SYSLOG_ROW ] May 23 14:54:44 iPhone /usr/libexec/lsd[77] <Notice>: LaunchServices: Adding com.perceptivesoftware.xxx to registration list

debug: [IOS_SYSLOG_ROW ] May 23 14:54:44 iPhone lsd[77] <Warning>: LaunchServices: Updating identifier store

debug: Starting instruments

info: Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

debug: [IOS_SYSLOG_ROW ] May 23 14:54:44 iPhone syncdefaultsd[556] <Notice>: (Note ) SYDAccount: no account

info: [INSTSERVER] Instruments socket server started at /tmp/instruments_sock

info: Attempting to run app on real device with UDID 81e4999f0822918b713b3d369a0a9a0c3769555f

info: 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 -w 81e4999f0822918b713b3d369a0a9a0c3769555f /Users/tathagatamitra/Library/Developer/Xcode/DerivedData/NativeiOSShell-ftihqpadtkyouwgfzmljsyjswapy/Build/Products/Release-iphoneos/xxx.app -e UIASCRIPT /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments

info: And extra without-delay env: {}

info: And launch timeouts (in ms): {"global":90000}


debug: [IOS_SYSLOG_ROW ] May 23 14:54:44 iPhone syncdefaultsd[556] <Notice>: (Note ) SYDPIMAccount: no account (null)

debug: [IOS_SYSLOG_ROW ] May 23 14:54:44 iPhone syncdefaultsd[556] <Notice>: (Note ) SYDAlwaysOnAccount: no account (null)

debug: [IOS_SYSLOG_ROW ] May 23 14:54:45 iPhone SpringBoard[16] <Error>: libMobileGestalt MobileGestalt.c:835: any-telephony is static and will never generate a notification

debug: [IOS_SYSLOG_ROW ] May 23 14:54:45 iPhone SpringBoard[16] <Error>: libMobileGestalt MobileGestalt.c:835: magnetometer is static and will never generate a notification

debug: [IOS_SYSLOG_ROW ] May 23 14:54:45 iPhone SpringBoard[16] <Error>: libMobileGestalt MobileGestalt.c:835: still-camera is static and will never generate a notification

debug: [IOS_SYSLOG_ROW ] May 23 14:54:45 iPhone SpringBoard[16] <Error>: libMobileGestalt MobileGestalt.c:835: stand-alone-contacts is static and will never generate a notification

debug: [IOS_SYSLOG_ROW ] May 23 14:54:45 iPhone SpringBoard[16] <Error>: libMobileGestalt MobileGestalt.c:835: nike-ipod is static and will never generate a notification

info: [INST STDERR] Instruments Trace Error : instruments unable to trace device while Instruments is running.  Please try starting instruments after quitting Instruments(7026).

info: [INSTSERVER] Instruments exited with code 1

info: Killall instruments

info: Attempting to retry launching instruments, this is retry #1

info: Killall iPhoneSimulator

info: Attempting to run app on real device with UDID 81e4999f0822918b713b3d369a0a9a0c3769555f

info: 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 -w 81e4999f0822918b713b3d369a0a9a0c3769555f /Users/tathagatamitra/Library/Developer/Xcode/DerivedData/NativeiOSShell-ftihqpadtkyouwgfzmljsyjswapy/Build/Products/Release-iphoneos/xxx.app -e UIASCRIPT /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments

info: And extra without-delay env: {}

info: And launch timeouts (in ms): {"global":90000}

info: [INST STDERR] Instruments Trace Error : instruments unable to trace device while Instruments is running.  Please try starting instruments after quitting Instruments(7026).

info: [INSTSERVER] Instruments exited with code 1

info: Killall instrument

info: Attempting to retry launching instruments, this is retry #2

info: Killall iPhoneSimulator


info: Attempting to run app on real device with UDID 81e4999f0822918b713b3d369a0a9a0c3769555f


info: 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 -w 81e4999f0822918b713b3d369a0a9a0c3769555f /Users/tathagatamitra/Library/Developer/Xcode/DerivedData/NativeiOSShell-ftihqpadtkyouwgfzmljsyjswapy/Build/Products/Release-iphoneos/xxx.app /tmp/appium-instruments

info: And extra without-delay env: {}

info: And launch timeouts (in ms): {"global":90000}

info: [INST STDERR] Instruments Trace Error : instruments unable to trace device while Instruments is running.  Please try starting instruments after quitting Instruments(7026).

info: [INSTSERVER] Instruments exited with code 1

info: Killall instruments

info: Attempting to retry launching instruments, this is retry #3

info: Killall iPhoneSimulator

info: Attempting to run app on real device with UDID 81e4999f0822918b713b3d369a0a9a0c3769555f

info: 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 -w 81e4999f0822918b713b3d369a0a9a0c3769555f /Users/tathagatamitra/Library/Developer/Xcode/DerivedData/NativeiOSShell-ftihqpadtkyouwgfzmljsyjswapy/Build/Products/Release-iphoneos/xxx.app -e UIASCRIPT /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments

info: And extra without-delay env: {}

info: And launch timeouts (in ms): {"global":90000}


debug: [IOS_SYSLOG_ROW ] May 23 14:55:04 iPhone lockdownd[25] <Notice>: 01bcc000 _select_socket: receive secure message timeout!


debug: [IOS_SYSLOG_ROW ] May 23 14:55:04 iPhone lockdownd[25] <Notice>: 01bcc000 _receive_message: walk away - non-SSL 1


info: [INST STDERR] Instruments Trace Error : instruments unable to trace device while Instruments is running.  Please try starting instruments after quitting Instruments(7026).



info: [INSTSERVER] Instruments exited with code 1


info: Killall instruments


error: Instruments crashed on startup


info: Stopping iOS log capture

info: Killing the simulator process


info: Killing any other simulator daemons


info: Cleaning app state.


info: No folders found to remove


error: Could not pre-launch appium: Error: Instruments crashed on startup


info: Cleaning up appium session

ajeesh vl

unread,
May 25, 2014, 11:21:53 PM5/25/14
to appium-...@googlegroups.com

Check whether, you have the matching  development provisioning profile in the device and valid certificate in your machine.

abhinavvce

unread,
May 26, 2014, 3:45:13 AM5/26/14
to appium-...@googlegroups.com
The error clearly shows you don't have ideviceinstaller. 

 Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller

You could manually try to install ideviceinstaller from source on your mac and try launching the appium tests using device

Reply all
Reply to author
Forward
0 new messages