Closed kariasbolster closed 6 years ago
[1] 1740 segmentation fault ideviceinstaller -i app/sprint-18-01978093-asia-sit.ipa -u
ideviceinstaller failed.
'CBXException', reason: 'Unable to find appropriate codesign identity for device 165c9664ca547378051ded382112a814b6759046 / app com.apple.test.DeviceAgent-Runner combo'
As the error says, there is no codesign identity available to sign the DeviceAgent app for your device.
sorry i am not sure if this is the right thread to post this, But i seem to be having an issue with codesigning too
Timed out after 120.05 seconds executing
/Users/dben/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.6.3/lib/run_loop/device_agent/bin/iOSDeviceManager install /Users/dben/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.6.3/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app --device-id 3749aff8df3d3f63a9ef20342503e54eea84c227 --codesign-identity iPhone Developer: dben Enfield (AxxxxxxxV)
with a timeout of 120 (RunLoop::Shell::TimeoutError) ./features/support/ios/01_launch.rb:27:in `Before'
Device OS = 11.2.1 Mac OS = 10.13.2 Xcode = 9.1
In my case, it seems the correct identity is being supplied but times out. I have tried several times, even tried using a different device and I still get the same error. any idea on what to do will be greatly appreciated
Try running without setting the code signing identity.
Tail the log:
$ tail -F ~/.calabash/iOSDeviceManager/logs/current.log
Make sure the device appears in Xcode as "available" in the Devices + Simulators window (Shift + Command + 2).
I am not sure if this is what you are expecting
dben-Mac-mini:svn-2110 dben$ tail -F ~/.calabash/iOSDeviceManager/logs/current.log
2017-12-15 13:34:29.698 DEBUG FBControlCoreLogger:279 | IDESourceEditor: Successfully loaded
2017-12-15 13:34:29.698 DEBUG FBControlCoreLogger:279 | DFRSupportKit: Loading from /Applications/Xcode.app/Contents/Frameworks/DFRSupportKit.framework
2017-12-15 13:34:29.699 DEBUG FBControlCoreLogger:279 | DFRSupportKit: Successfully loaded
2017-12-15 13:34:29.699 DEBUG FBControlCoreLogger:279 | DVTKit: Loading from /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework
2017-12-15 13:34:29.700 DEBUG FBControlCoreLogger:279 | DVTKit: Successfully loaded
2017-12-15 13:34:29.700 DEBUG FBControlCoreLogger:279 | DebugHierarchyFoundation: Loading from /Applications/Xcode.app/Contents/SharedFrameworks/DebugHierarchyFoundation.framework
2017-12-15 13:34:29.702 DEBUG FBControlCoreLogger:279 | DebugHierarchyFoundation: Successfully loaded
2017-12-15 13:34:29.702 DEBUG FBControlCoreLogger:279 | DebugHierarchyKit: Loading from /Applications/Xcode.app/Contents/SharedFrameworks/DebugHierarchyKit.framework
2017-12-15 13:34:29.704 DEBUG FBControlCoreLogger:279 | DebugHierarchyKit: Successfully loaded
2017-12-15 13:34:29.705 DEBUG FBControlCoreLogger:279 | Loaded All Private Frameworks [DTXConnectionServices, IDEFoundation, IDEiOSSupportCore, IBAutolayoutFoundation, IDEKit, IDESourceEditor, DFRSupportKit, DVTKit, DebugHierarchyFoundation, DebugHierarchyKit]
^X^C
I got this on the terminal
2017-12-15 13:34:57.772 iOSDeviceManager[5601:691363] iPhoneConnect: ## Unable to mount developer disk image, (Error Domain=com.apple.dtdevicekit Code=601 "Could not locate device support files." UserInfo={DeviceType=iPhone6,2, NSLocalizedDescription=Could not locate device support files., NSLocalizedRecoverySuggestion=This iPhone 5s (Model A1457, A1518, A1528, A1530) is running iOS 11.2.1 (15C153), which may not be supported by this version of Xcode.}) {
DeviceType = "iPhone6,2";
NSLocalizedDescription = "Could not locate device support files.";
NSLocalizedRecoverySuggestion = "This iPhone 5s (Model A1457, A1518, A1528, A1530) is running iOS 11.2.1 (15C153), which may not be supported by this version of Xcode.";
}
iPhoneConnect: ## Unable to mount developer disk image iPhone 5s is running iOS 11.2.1 (15C153), which may not be supported by this version of Xcode.})
Is this the device you are trying to connect to?
If so, the error message tells you exactly what is wrong - the device has an iOS version greater than the version that your current Xcode can support.
In order to target iOS 11.2, your active Xcode must be at least 9.2.
$ xcrun xcodebuild -version
Thanks @jmoody I have now updated my xcod to 9.2 Updated Mac OS to HighSiera 10.13.2 (17C88) and Run_loop 2.6.3
Then I restarted the system and re-run my test
Thank you
@jmoody
I am getting error failed to install device agent exit code 5.
Xamarin.UITest.XDB.Exceptions.DeviceAgentException : Failed to install DeviceAgent ExitCode: 5 Reason: image not found" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., Error installing application: Failed to install application with path /var/folders/dd/ymbnyhwx4cd5fs2mr63vssmr0000gp/T/xdb/DeviceAgent.iOS.Dependencies/14b8db96af88a1b519aed9c325d95624/ipa/DeviceAgent-Runner.app
Below are iPad details.
Model Name - iPad (5th gen) Software Version - 14.0.1 Model Number - MP2F2LL/A
Nuget Package Details.
Xamarin ui test(3.0.12) NUnit3TestAdapter(3.17.0) NUnit(3.12.0)
Xcode ver 12.1
Below are mac configuration details.
=== Operating System ===
Mac OS X 10.15.6 Darwin 19.6.0 Darwin Kernel Version 19.6.0 Sun Jul 5 00:43:10 PDT 2020 root:xnu-6153.141.1~9/RELEASE_X86_64 x86_64
=== Xamarin.iOS ===
Version: 14.2.0.12 (Visual Studio Community) Hash: e0ce49680 Branch: xcode12.1 Build date: 2020-10-20 09:52:06-0400
=== Apple Developer Tools ===
Xcode 12.1 (17222) Build 12A7403
=== Visual Studio Community 2019 for Mac ===
Version 8.7.9 (build 9) Installation UUID: 2280762c-b293-458e-a352-5a8d1bbe2af0 GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
=== Mono Framework MDK ===
Runtime: Mono 6.12.0.93 (2020-02/620cf538206) (64-bit) Package version: 612000093
MacOs Version: 10.13.1 IphoneSE iOs Version: 10.3.3
These are the commands I ran
And then I tried running the same commands in iPhone 7 and I got a different set of error.
iPhone 7 iOS Version: 10.3.3
Nothing makes sense to me at all. Can you help with this?