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

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.

Related

Xamarin android project fails to build after installing Xamarin.Google.Android.ODML.Image -Version 1.0.0.2-beta1

I'm trying to include the Xamarin.Google.MLKit.BarcodeScanning in my Xamarin android project. The Xamarin.Google.Android.ODML.Image is one of the dependencies which is a pre-release version. When I install it, it also installs the Xamarin.Build.Download (version=0.11.3).
When I try to build the project afterwards, it give this error => Invalid item ID image-1.0.0-beta1
Does anyone know how to make this work?
I have created a new project to add the Xamarin.Google.Android.ODML.Image nuget package lastest versoin 1.0.0.2-beta1. And it also installed the Xamarin.Build.Download (version=0.11.3).
When I build the project, there was no error. So you can also try to download the lastest version instead of the 1.0.0-beta1.
In addition, you can create a new project to test or clean and rebuild your project. I used visual studio 2022 17.4 preview 2.1. The TargetSdk is Android api 33.

Unable to run iOS project in VS 2022 for Mac

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.

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.

Cannot select Cordova Global on Visual Studio 2017

I have a cordova app on visual studio 2017. VS2017 uses Cordova 6.3.1 however I need to use Cordova version 7.1.0.
So I had to install cordova globally as specified in this link https://evothings.com/doc/build/cordova-install-windows.html
Then I opened config.xml from my project and went to change Toolset Name, but it shows "Global Cordova Version (not currently installed)"
Any help to fix this issue?
If you have already installed Node.js, you can install Cordova 7.1.0 by typing this in a command line interface window (cmd.exe):
npm install -g cordova#7.1.0
Now, because changing the CLI version is not as reliable as we would want, I suggest to follow these steps to create your new app in Visual Studio 2017:
Go to File > New > Project > Blank App (Apache Cordova)
Open config.xml in View Code mode and find this:
<vs:toolsetVersion>6.3.1</vs:toolsetVersion>
<engine name="android" spec="5.2.1" />
Replace with:
<vs:toolsetVersion>7.1.0</vs:toolsetVersion>
<engine name="android" spec="6.3.0" />
Where 7.1.0 is your globally installed Cordova version.
Select Device as target.
Now Build > Build Solution
Save, close and reload the project. When you access config.xml in designer mode you'll see Global Cordova 7.1.0 as the selected toolset.
In order to build you may need to use the external Android SDK Build Tools (API 26) instead of the ones provided by Visual Studio (API 25).
Use the Android SDK Manager to manage versions, no need to get Android Studio for this.
Remember to follow the guidelines from Microsoft when changing the CLI on existing projects. However I strongly recommend creating a new one and then importing your files and adding your plugins to avoid potential problems.

occurred evaluating root project 'android' No installed build tools found. Install the Android build tools version 19.1.0 ionic 3

i'm getting this error for building unsigned apk for ionic 3
i'm getting this error
What went wrong: problem occurred evaluating root project 'android'.
No installed build tools found. Install the Android build tools
version 19.1.0 or higher.
i have installed android studio 9.*
which looks like this
the command that i followed
ionic cordova platform rm android
cordova run android
Thanks in Advance!!
Seems like your Android SDK is not updated.

Resources