-1

I just upgraded from VS 2019 to VS 2022 for Mac. I'm now unable to "run" a project in iOS Simulator. I can build it just fine. I can "run" the project on Android Emulator just fine.

I'm only presented with the "Hammer" icon and not the "Run/Arrow" icon.

VS 2022 Mac Version: 17.3.8 macOS Version: 12.6

I have tried the following:

  • Full uninstall using the Microsoft-provided uninstall scripts.
  • Full reinstall from scratch.
  • I have XCode 14 and I have opened it to make sure it installed the additional components.

enter image description here

My iOS Bundle Signing window is empty:

enter image description here

fnllc
  • 3,047
  • 4
  • 25
  • 42
  • Does your solution contain multiple projects? Are you targeting the correct one (i.e. is it your start up project?) I don't _think_ that should make the debug button disappear but I'm not sure. – Timothy G. Oct 25 '22 at 20:31
  • I have the iOS project as the Startup Project. It's a Xamarin solution. So, it has 4 projects: Main, Android, iOS and Test. – fnllc Oct 26 '22 at 09:45
  • My problem might be the Deployment Target setting. However, I cannot figure out where you find that in VS 2022. – fnllc Oct 26 '22 at 11:26
  • This issue seems similar to [this](https://stackoverflow.com/questions/66939015/cant-run-a-xamarin-app-in-iphone-simulator-from-visual-studio-for-mac). Please take a look. – Liqun Shen-MSFT Oct 27 '22 at 08:19
  • Didn't help. I also realized my iOS Bundle Signing settings window is blank (See above) – fnllc Oct 27 '22 at 12:31
  • Well, find another [issue](https://stackoverflow.com/questions/73018751/ios-bundle-signing-project-option-is-blank-in-vs-for-mac-2022) which seems similar to your question. – Liqun Shen-MSFT Oct 28 '22 at 08:12
  • Sadly, that didn't change anything. – fnllc Oct 28 '22 at 12:26
  • Did you have valid certificate in your keychain? – Liqun Shen-MSFT Nov 01 '22 at 01:31
  • I have valid Apple Developer and Distribution certificates. XCode 14 does not have the option to create iOS Developer certificates. Just Apple or Mac. – fnllc Nov 01 '22 at 12:56
  • No problem when I create a new VS 2022 project. I get the Play" button and the iOS Bundle Signing page is working properly. – fnllc Nov 01 '22 at 13:06
  • I get a lot of MacOS error: -25294 for the VisualStudio process in the console log messages. – fnllc Nov 01 '22 at 16:40
  • Error -25294 seems something wrong with keychain. See this [link](https://developer.apple.com/forums/thread/675290) – Liqun Shen-MSFT Nov 02 '22 at 09:37
  • I just created an empty project and reimported all my files into it. This fixed it. – fnllc Nov 02 '22 at 16:07
  • That's really great!!! You could post an answer if you want for this question, that might be helpful for others. – Liqun Shen-MSFT Nov 03 '22 at 01:32

1 Answers1

1

The only solution I found is to create a new empty project and import all my files from the broken project.

fnllc
  • 3,047
  • 4
  • 25
  • 42