Xamarin Test Recorder - "Failed to launch simulator" and "Failed to install app" issues.

I am trying to use the Xamarin Test Recorder for Mac to record some UI tests on an iOS application. The iOS application was developed using Visual Studio 2017 for Mac and the Windows counterpart. I archived the files using Visual Studio 2017 for Mac then opened Xcode (9.2) to export archive. When trying to open the exported archive on Xamarin Test Recorder, I receive the two following messages when opening on simulator and on a physical device respectively.

Failed to launch simulator

ExitCode: 134
0 CoreFoundation 0x00007fff4542a32b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff6caa3c76 objc_exception_throw + 48
10 libobjc.A.dylib 0x00007fff6caa62de CALLING_SOME_+initialize_METHOD + 19
11 libobjc.A.dylib 0x00007fff6ca973c9 class_initialize + 288
12 libobjc.A.dylib 0x00007fff6ca96e8f lookUpImpOrForward + 228
13 libobjc.A.dylib 0x00007fff6ca96914 _objc_msgSend_uncached + 68
14 iOSDeviceManager 0x000000010c067fdf +[Device withID:] + 105
15 iOSDeviceManager 0x000000010c06d05e +[Command simulatorFromArgs:] + 227
16 iOSDeviceManager 0x000000010c079803 +[LaunchSimulatorCommand execute:] + 20
17 iOSDeviceManager 0x000000010c06f285 +[CLI process:] + 1106
18 iOSDeviceManager 0x000000010c03c9a1 main + 121
19 libdyld.dylib 0x00007fff6d6bd015 start + 1
2 CoreFoundation 0x00007fff454300c2 +[NSException raise:format:arguments:] + 98
20 ??? 0x0000000000000004 0x0 + 4
3 Foundation 0x00007fff4754c340 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
4 FBControlCore 0x000000010c13184b +[FBControlCoreFrameworkLoader loadPrivateFrameworksOrAbort] + 462
5 libobjc.A.dylib 0x00007fff6caa62de CALLING_SOME
+initialize_METHOD + 19
6 libobjc.A.dylib 0x00007fff6ca973c9 _class_initialize + 288
7 libobjc.A.dylib 0x00007fff6ca96e8f lookUpImpOrForward + 228
8 libobjc.A.dylib 0x00007fff6ca96914 _objc_msgSend_uncached + 68
9 iOSDeviceManager 0x000000010c073b41 +[Simulator initialize] + 40
(
)
*** First throw call stack:
2018-04-22 14:09:50.352 iOSDeviceManager[39500:1178849] *** Assertion failure in +[FBSimulatorControlFrameworkLoader loadPrivateFrameworksOrAbort], /Users/moody/git/calabash/FBSimulatorControl/FBControlCore/Utility/FBControlCoreFrameworkLoader.m:41
2018-04-22 14:09:50.355 iOSDeviceManager[39500:1178849] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to private frameworks for FBSimulatorControl with error Error Domain=com.facebook.FBControlCore Code=0 "Attempting to load a file at path '/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework', but it does not exist" UserInfo={NSLocalizedDescription=Attempting to load a file at path '/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework', but it does not exist}'
libc++abi.dylib: terminating with uncaught exception of type NSException

Failed to install app /var/folders/lb/wgsr_z7d3l35kf78wbvdd_1c0000gp/T/tmp2546f72a.tmp/Payload/[appName.iOS].app

ExitCode: 134
2018-04-22 13:06:52.405 iOSDeviceManager[97764:15365850] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.dbg.DebuggerFoundation (/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation): Library not loaded: @rpath/DebugHierarchyFoundation.framework/Versions/A/DebugHierarchyFoundation
Referenced from: /Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation
Reason: image not found" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary aresources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation, NSDebugDescription=dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation): Library not loaded: @rpath/DebugHierarchyFoundation.framework/Versions/A/DebugHierarchyFoundation
Referenced from: /Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation
Reason: image not found, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin, NSLocalizedDescription=The bundle “DebuggerFoundation” couldn’t be loaded because it is damaged or missing necessary resources.}, dyldError =
2018-04-22 13:06:52.406 iOSDeviceManager[97764:15365850] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-13772/IDEFoundation/Initialization/IDEInitialization.m:264
Details: Xcode failed its initial plug-in scan, error = Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.dbg.DebuggerFoundation, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=, NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin, NSLocalizedFailureReason=The plug-in “com.apple.dt.dbg.DebuggerFoundation” at path “/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin” could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x7f86315865e0 {Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation): Library not loaded: @rpath/DebugHierarchyFoundation.framework/Versions/A/DebugHierarchyFoundation
Referenced from: /Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation
Reason: image not found" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation, NSDebugDescription=dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation): Library not loaded: @rpath/DebugHierarchyFoundation.framework/Versions/A/DebugHierarchyFoundation
Referenced from: /Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation
Reason: image not found, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin, NSLocalizedDescription=The bundle “DebuggerFoundation” couldn’t be loaded because it is damaged or missing necessary resources.}}}
Function: BOOL _IDEInitializePlugInManager(IDEInitializationOptions, NSError *__autoreleasing *)
Thread: {number = 1, name = main}
Please file a bug at --- with this warning message and any useful information you can provide.

Note this is the first time I've used Xamarin Test Recorder and I haven't been able record a test using the software. I am able to run my own, coded Xamarin UI Tests on a physical device though. I've also reported the bug for the "Failed to install app" message to apple as instructed at the bottom but I've reported here in case there is a work around. I know someone else reported a similar issue in this for a physical device but the solution didn't seem to work for me. The thread link is attached to the txt file since I can't make a post with a link yet.

Thanks in advance.

Sign In or Register to comment.