Unable to run iOS project in VS 2022 for Mac - macos

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.
My iOS Bundle Signing window is empty:

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

Related

Flutter windows build: Nuget is not installed

I uninstalled Visual Studio 2019 and installed it as 2022.
I reinstalled Flutter.
When building Flutter desktop, the following problem is repeated.
If I run it in another project, it works without any problem.
Launching lib\main.dart on Windows in debug mode...
Building Windows application...
Nuget is not installed.
Nuget.exe not found, trying to download or use cached version.
1- make sure you have installed Visual Studio
2-
NuGet Package Manager (PM UI and PM Console) is included with Visual
Studio. The latest NuGet releases are delivered as part of Visual
Studio updates.
HOWEVER: nuget.exe itself is not included with any version of Visual Studio.
so you need to download the latest NuGet Windows x86 Commandline from https://www.nuget.org/downloads
3- put it inside the flutter sdk folder or any folder you like
4- copy the folder path
5- in windows serach, search for env so you can put it as system variables. edit path with a new line and past the folder path
6- restart android studio
7- congrats
there's a video on youtube for the exact steps:
https://www.youtube.com/watch?v=J5b5sj6mG8M
Although I don't know why it would work without this error message on the same machine, I recently ran into this issue as well. The way I fixed it was to download the nuget executable and add it to my path.

Xcode couldn't be found at /Applications/Xcode.app

I get Xcode couldn't be found at /Applications/Xcode.app when I try to run the sample single view app from Visual Studio 2019.
Do I have to install XCode on the windows machine I am using or the Mac that is building the code?
I don't have visual studio on the Mac and was hoping that I wouldn't have to install it. Am I wrong?
Yes, you need to install VS and XCode on the Mac. This is clearly covered in the docs
Set up Windows (Install Visual Studio 2019)
Set up Mac (Install Xcode and Visual Studio for Mac)
Pair to Mac (Connect Visual Studio 2019 to the Mac)

How to fix missing write access error when using remotebuild with cordova ios?

I'm running my ionic cordova project and build ios version using visual taco remotebuild, and I have an error when building my app. It seems related to directory permissions. How to fix this error?
This is for Visual Studio 2017, Xcode 9.1
I fix this error by following this to upgrade vs tool set version 7.1.0 and everything work fine.

how to update cordova-ios version in visual studio 2015 cordova project?

I'm developing ios app using cordova template in visual studio 2015.
I have configured mac book as described in this link .https://taco.visualstudio.com/en-us/docs/ios-guide/#run-your-app-in-an-ios-simulator.
Installed xcode version is 8.3.
when i try to run app in an ios simulator , getting following error. so, how to fix this, please help .thanks.
Error: Remote build error from the build server Build failed with error Remotebuild requires your projects to use cordova-ios 4.3.0 or greater with XCode 8.3. Please update your cordova-ios version.
From this link you can see how to update cordova:
npm update -g cordova
On next link you can find instructions for ios cordova update. Basically its just removing ios platform and adding it back again for projects built with Cordova 4.x version:
cordova platform rm ios
cordova platform add ios
For older versions use:
cordova platform update ios
Visual Studio 2015 was forcing the 4.1.1 version for cordova-ios.
This worked for me on the command line:
cordova platform add ios#4.3.1
cordova-ios 4.3.1
Note: And i deleted the "bld" folder from the cordova project root.
This is what worked for me in Visual Studio 2017 Community Edition.
1) Delete the platforms / ios folder in the root folder of your project
2) In the platforms folder, edit the platforms.json file manually with the version you want, in my case it was:
{
"android": "5.2.1",
"ios": "4.3.0"
}
3) Update your config.xml file in your project like so:
<engine name="ios" spec="4.3.0" />
4) Run your project.

PhoneGap 3.3.0 WP8 project giving MSBuild error

I've decided to try PhoneGap and installed the Node package for it. (Phonegap 3.3.0)
Android projects work fine. But when I try to build a WP8 (or WP7) App I get this error:
An error occurred while building the wp7 project.ERROR: MSBuild failed
to create .xap when building cordova-wp7 for debugging.
I'm running Windows 8 Pro 64 bit, Visual Studio 2013 Ultimate, NodeJS & PhoneGap 3.3.0
A sidenote: WP8 Projects created with the Cordova Project Templates work perfectly fine.
It's the command line version that's giving me trouble.
I faced the same issue...
Perhaps it's an issue of the required files (for compilation) not being at the said path, since I could resolve it by running in the Visual Studio Command Prompt & compile successfully:

Resources