Bug 61244 - IOS 'Cannot start process because a file name has not been provided'
Summary: IOS 'Cannot start process because a file name has not been provided'
Status: NEW
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: 4.8.0 (15.5)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2018-02-28 19:10 UTC by Jason Smith [MSFT]
Modified: 2018-03-12 15:13 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 61244 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
NEW

Description Jason Smith [MSFT] 2018-02-28 19:10:56 UTC
Original report: https://github.com/xamarin/Xamarin.Forms/issues/1994

### Description
I'm getting the error in the title when trying to build and run on IOS emulator.
Corresponding with the following log entries:
```
System.InvalidOperationException: Cannot start process because a file name has not been provided.
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Extensions.RunAsync(Process process, ProcessStartInfo startInfo, CancellationToken cancellationToken, Func`2 failureCondition) in C:\d\lanes\5409\fc93f3f5\source\xamarinvs\External\messaging\src\Xamarin.Messaging.Common\Extensions\ProcessExtensions.cs:line 68
   at Xamarin.VisualStudio.IOS.RemoteSimulatorLauncher.LaunchApplication(Simulator simulator, AppInfo appInfo, Boolean debugging, IProgressReport progress) in C:\d\lanes\5409\fc93f3f5\source\xamarinvs\src\Core\VisualStudio.IOS\Devices\RemoteSimulatorLauncher.cs:line 81
   at Xamarin.VisualStudio.IOS.MonoTouchDevice.StartApplication(MonoTouchRunSessionInfo runSessionInfo, IProgressReport progress, Boolean debugging, Int32 debugPort) in C:\d\lanes\5409\fc93f3f5\source\xamarinvs\src\Core\VisualStudio.IOS\Devices\MonoTouchDevice.cs:line 319
   at Xamarin.VisualStudio.IOS.MonoTouchDebuggerSession.StartMonoTouchOnServer(MonoTouchStartInfo info) in C:\d\lanes\5409\fc93f3f5\source\xamarinvs\src\Core\VisualStudio.IOS\Debugging\MonoTouchDebuggerSession.cs:line 160
   at Xamarin.VisualStudio.IOS.MonoTouchDebuggerSession.OnRun(DebuggerStartInfo startInfo) in C:\d\lanes\5409\fc93f3f5\source\xamarinvs\src\Core\VisualStudio.IOS\Debugging\MonoTouchDebuggerSession.cs:line 103
   at Mono.Debugging.Client.DebuggerSession.<>c__DisplayClass87_0.<Run>b__0() in E:\A\_work\160\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Client\DebuggerSession.cs:line 326
System.Net.Mqtt.Sdk.ClientPacketListener|Information|0|Client vs17964jnixo - Dispatching Publish message to flow PublishReceiverFlow and topic xma/message-status
System.Net.Mqtt.Sdk.MqttClientImpl|Information|0|Client vs17964jnixo - An application message for topic xma/message-status was received
Mono.Debugging.VisualStudio.MonoDebuggerLauncher|Error|0|System.InvalidOperationException: Cannot start process because a file name has not been provided.
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Extensions.RunAsync(Process process, ProcessStartInfo startInfo, CancellationToken cancellationToken, Func`2 failureCondition) in C:\d\lanes\5409\fc93f3f5\source\xamarinvs\External\messaging\src\Xamarin.Messaging.Common\Extensions\ProcessExtensions.cs:line 68
   at Xamarin.VisualStudio.IOS.RemoteSimulatorLauncher.LaunchApplication(Simulator simulator, AppInfo appInfo, Boolean debugging, IProgressReport progress) in C:\d\lanes\5409\fc93f3f5\source\xamarinvs\src\Core\VisualStudio.IOS\Devices\RemoteSimulatorLauncher.cs:line 81
   at Xamarin.VisualStudio.IOS.MonoTouchDevice.StartApplication(MonoTouchRunSessionInfo runSessionInfo, IProgressReport progress, Boolean debugging, Int32 debugPort) in C:\d\lanes\5409\fc93f3f5\source\xamarinvs\src\Core\VisualStudio.IOS\Devices\MonoTouchDevice.cs:line 319
   at Xamarin.VisualStudio.IOS.MonoTouchDebuggerSession.StartMonoTouchOnServer(MonoTouchStartInfo info) in C:\d\lanes\5409\fc93f3f5\source\xamarinvs\src\Core\VisualStudio.IOS\Debugging\MonoTouchDebuggerSession.cs:line 160
   at Xamarin.VisualStudio.IOS.MonoTouchDebuggerSession.OnRun(DebuggerStartInfo startInfo) in C:\d\lanes\5409\fc93f3f5\source\xamarinvs\src\Core\VisualStudio.IOS\Debugging\MonoTouchDebuggerSession.cs:line 103
   at Mono.Debugging.Client.DebuggerSession.<>c__DisplayClass87_0.<Run>b__0() in E:\A\_work\160\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Client\DebuggerSession.cs:line 326
```

There have not been significant changes since the last time I tried emulating on IOS, but will continue to look down that path.

Seems to build and load fine onto actual devices.

### Steps to Reproduce

1.  Currently unknown, will work on getting them in - Posting the issue before I know this, in case someone already knows what's wrong.

### Expected Behavior
Sideload/load on IOS emulator

### Actual Behavior
Fails to launch

### Basic Information

- Version with issue: 2.5.0.280555
- Last known good version: 2.5.0.280555
- IDE: Visual Studio - Windows
- Platform Target Frameworks: <!-- All that apply -->
  - iOS:  11.2
- Nuget Packages: 
  - CarouselView.FormsPlugin (5.2.0)
  - NewtonsoftJson (11.0.1)
  - Rg.Plugins.Popup (1.1.4.145-pre)
  - Xamarin.FFImageLoading.Forms (2.3.4)
- Affected Devices:
  - IOS Emulator - iPhone 6 Plus (11.2)
Comment 1 Nieminen432 2018-03-12 15:13:08 UTC
This bug was submitted on my behalf, and I found the issue. 

At some point my IOS Simulator (in Windows) had somehow become uninstalled, and the compiler was still trying to push to it, instead of the emulator on our local mac. Reinstalling the Simulator in windows fixed this issue.