Xamarin Test Recorder fails installing ipa on iPhone (installation OK with Xcode)

I need to record some test with XTR using an .ipa provided by customer and a real iPhone 5C, the ipa can be installed correctly using Xcode but XTR always fails installing it.
I have installed all the certificate and mobile provision used by the developer.
On the MAC of the developer XTR work fine so it's a problem of my machine, I can't understand where is the problem.

My machine info:
MAC OS: 10.12.1
Xcode: 8.0
Xamarin Studio Community: 6.1.4
Xamarin Test Recorder: 1.1.2

here the XTR log:

[12:47:40] LOG STARTED: Friday, January 27, 2017
[12:47:40] Initializing user preferences
[12:47:40] Initializing Mixpanel
[12:47:40] Setting up iOSDeviceTools
[12:47:40] Checking for Java installation
[12:47:41] Found java installation at /usr/bin/java
[12:47:41] Checking for Android SDK installation
[12:47:41] Checking for Android SDK at: /Users/testautomation/Library/Developer/Xamarin/android-sdk-macosx
[12:47:41] Found Android SDK at /Users/testautomation/Library/Developer/Xamarin/android-sdk-macosx
[12:47:41] Checking for mono installation
[12:47:41] Looking for Mono framework at: /Library/Frameworks/Mono.framework/Commands
[12:47:41] Found mono installation at /Library/Frameworks/Mono.framework/Commands/mono
[12:47:42] Launched Test Recorder
[12:47:42] Mac OS Version: Version 10.12.1 (Build 16B2657)
[12:47:42] Recorder Version 1.1.2
[03:49:53] Tried to clear events when session is null
[03:49:53] Called by: OnAppSelected
[03:49:53] Tried to cancel when no session set
[03:49:53] Called by: OnAppSelected
[03:50:19] Injecting calabash into iOS app
[03:50:19] Installing /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/test-recorder/ios-injection/calabash.dylib
[03:50:20] Linking calabash.dylib
[03:50:25] Installing /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/test-recorder/ios-injection/recorderPluginCalabash.dylib
[03:50:45] XDB: Running: /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/xdb/DeviceAgent.iOS.Dependencies/54daf9e58e37a80353a99c2b3139b615/bin/iOSDeviceManager is_installed -d 79ac6f6c77985b5a1056edb7542f9c4f4eafd4f6 -b com.bticino.termostato :
[03:50:55] XDB: Exit code '2' received from '/var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/xdb/DeviceAgent.iOS.Dependencies/54daf9e58e37a80353a99c2b3139b615/bin/iOSDeviceManager is_installed -d 79ac6f6c77985b5a1056edb7542f9c4f4eafd4f6 -b com.bticino.termostato'
false :
[03:50:55] XDB: 2 - InstallApp:
pathToBundle: /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/tmp6b4ea948.tmp/Payload/EliotAppStopNGoiOS.app
deviceId: 79ac6f6c77985b5a1056edb7542f9c4f4eafd4f6 :
[03:50:55] XDB: Running: /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/xdb/DeviceAgent.iOS.Dependencies/54daf9e58e37a80353a99c2b3139b615/bin/iOSDeviceManager install -d 79ac6f6c77985b5a1056edb7542f9c4f4eafd4f6 -a "/var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/tmp6b4ea948.tmp/Payload/EliotAppStopNGoiOS.app" :
[03:52:26] XDB: Exit code '5' received from '/var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/xdb/DeviceAgent.iOS.Dependencies/54daf9e58e37a80353a99c2b3139b615/bin/iOSDeviceManager install -d 79ac6f6c77985b5a1056edb7542f9c4f4eafd4f6 -a "/var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/tmp6b4ea948.tmp/Payload/EliotAppStopNGoiOS.app"'

/usr/bin/xcrun codesign --force --sign 197F06E612F60D82A501E316B4553EF2E8EBB5F0 --verbose=4 --entitlements /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/00A25898-F36D-4506-A9D7-0AAF6A8F2D6D-27243-0000A4D9AA5AAB44/EliotAppStopNGoiOS.app/EliotAppStopNGoiOS.xcent /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/00A25898-F36D-4506-A9D7-0AAF6A8F2D6D-27243-0000A4D9AA5AAB44/EliotAppStopNGoiOS.app
/var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/00A25898-F36D-4506-A9D7-0AAF6A8F2D6D-27243-0000A4D9AA5AAB44/EliotAppStopNGoiOS.app
    -a,--app-bundle <path/to/app-bundle.app>    Path .app bundle (for .ipas, unzip and look inside of 'Payload')
    -c,--codesign-identity  <codesign-identity> [OPTIONAL]  Identity used to codesign app bundle [device only]  DEFAULT=
    -d,--device-id  <device-identifier> iOS Simulator GUIDs
    -u,--update-app <true-or-false> [OPTIONAL]  When true, will reinstall the app if the device contains an older version than the bundle specified DEFAULT=1
install

Could not resign app bundle at path:
Error creating product bundle for /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/00A25898-F36D-4506-A9D7-0AAF6A8F2D6D-27243-0000A4D9AA5AAB44/EliotAppStopNGoiOS.app: Error Domain=com.facebook.XCTestBootstrap Code=0 "Failed to codesign /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/00A25898-F36D-4506-A9D7-0AAF6A8F2D6D-27243-0000A4D9AA5AAB44/EliotAppStopNGoiOS.app" UserInfo={NSLocalizedDescription=Failed to codesign /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/00A25898-F36D-4506-A9D7-0AAF6A8F2D6D-27243-0000A4D9AA5AAB44/EliotAppStopNGoiOS.app, NSUnderlyingError=0x7f9a8bd84390 {Error Domain=sh.calaba.iOSDeviceManger Code=5 "Code signing failed" UserInfo={NSLocalizedDescription=Code signing failed, NSLocalizedFailureReason=There was a problem code signing. Please check the logs.}}}
timed out after 10.00295088801067 seconds
with command: :
[03:52:26] XDB: 2 - Unsuccessful :
[03:52:26] Failed to install app to device
[03:52:26] Failed to install app /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/tmp6b4ea948.tmp/Payload/EliotAppStopNGoiOS.app

ExitCode: 5

/usr/bin/xcrun codesign --force --sign 197F06E612F60D82A501E316B4553EF2E8EBB5F0 --verbose=4 --entitlements /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/00A25898-F36D-4506-A9D7-0AAF6A8F2D6D-27243-0000A4D9AA5AAB44/EliotAppStopNGoiOS.app/EliotAppStopNGoiOS.xcent /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/00A25898-F36D-4506-A9D7-0AAF6A8F2D6D-27243-0000A4D9AA5AAB44/EliotAppStopNGoiOS.app
/var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/00A25898-F36D-4506-A9D7-0AAF6A8F2D6D-27243-0000A4D9AA5AAB44/EliotAppStopNGoiOS.app
    -a,--app-bundle <path/to/app-bundle.app>    Path .app bundle (for .ipas, unzip and look inside of 'Payload')
    -c,--codesign-identity  <codesign-identity> [OPTIONAL]  Identity used to codesign app bundle [device only]  DEFAULT=
    -d,--device-id  <device-identifier> iOS Simulator GUIDs
    -u,--update-app <true-or-false> [OPTIONAL]  When true, will reinstall the app if the device contains an older version than the bundle specified DEFAULT=1
install

Could not resign app bundle at path:
Error creating product bundle for /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/00A25898-F36D-4506-A9D7-0AAF6A8F2D6D-27243-0000A4D9AA5AAB44/EliotAppStopNGoiOS.app: Error Domain=com.facebook.XCTestBootstrap Code=0 "Failed to codesign /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/00A25898-F36D-4506-A9D7-0AAF6A8F2D6D-27243-0000A4D9AA5AAB44/EliotAppStopNGoiOS.app" UserInfo={NSLocalizedDescription=Failed to codesign /var/folders/tz/pnd65r5n4wj6qg5r3mn0hxpr0000gs/T/00A25898-F36D-4506-A9D7-0AAF6A8F2D6D-27243-0000A4D9AA5AAB44/EliotAppStopNGoiOS.app, NSUnderlyingError=0x7f9a8bd84390 {Error Domain=sh.calaba.iOSDeviceManger Code=5 "Code signing failed" UserInfo={NSLocalizedDescription=Code signing failed, NSLocalizedFailureReason=There was a problem code signing. Please check the logs.}}}
timed out after 10.00295088801067 seconds
with command:
[03:52:26] at Calabash.XDB.Core.Services.iOSDeviceAgentService.WithErrorHandling (System.Int32 eventId, System.Func`1[TResult] action, System.String errorMessage, System.Int32[] successCodes) <0x11989f940 + 0x004d0> in :0
at Calabash.XDB.Core.Services.iOSDeviceAgentService.InstallApp (System.String pathToBundle, System.String deviceId) <0x1198aa880 + 0x0047c> in :0
at Xamarin.TestRecorder.Mac.MaciOSDeviceTools.InstallToDevice (System.String appDir, System.String deviceId) <0x1198aa7d0 + 0x00052> in :0
at Xamarin.TestRecorder.Portable.iOS.iOSRecordingSession+c__async0.MoveNext () <0x119805530 + 0x00b8d> in :0
[MVID] 47f8ee1d9f164786b1ce5a4153163e35 0,1
[MVID] 636358e517d9429693108a3c34bda27a 2
[MVID] fcb30a0328a24d73b8bf18fec0663aac 3

Answers

  • Kent.GreenKent.Green USXamarin Team Xamurai

    Do you have a currently valid code signing identity & provisioning profile of your own on the system for the iOS device you're testing on? If so, can you try building an IPA locally (you can even just use an iOS template app), and then opening it in Xamarin Test Recorder to see if it is able to sign that IPA?

  • Yes, I have.
    I have the same signing file & provisioning profile sent me by developers.
    They also allowed me to build the app myself but I still have the problem above,
    the ipa can be installed directly on the iPhone using Xcode or iTunes but
    it always fail to be installed by Xamarin Test Recorder.

  • Kent.GreenKent.Green USXamarin Team Xamurai

    Thanks for the update, I'm passed your information on to our Test Recorder team and they are investigating.

  • AnthonyJanssens.9324AnthonyJanssens.9324 BEUniversity

    Any update on this? I am having the same issue with build 1.1.14 of the Xamarin test recorder.
    Can also install the app on my device without a problem from Visual Studio but it fails from Xamarin Recorder.

  • Kent.GreenKent.Green USXamarin Team Xamurai

    There were a few updates specifically applied for iOS in build 1.1.15, and there's a more recent update (1.1.18) currently available in the Dev channel. Does updating help with the issue or change any of your observations on the problem?

Sign In or Register to comment.