I'm wondering, if it's possible to develop an OS X application using Apache Cordova. There is only iOS mentioned on their site. But I'm currently evaluating a possibility to create a cross-platform app for Windows, OS X and than mobile platforms using Visual Studio.
Your suggestion will be highly appreciated.
Thanks
Currently, Visual Studio doesn't provide built-in support for Mac OS X development, using Cordova. However, when you use the Visual Studio Tools for Apache Cordova (Visual Studio TACO) you're really working with a standard Apache Cordova project. This means that you could use a project like the following which adds support for Mac OS X as a platform:
https://github.com/apache/cordova-osx
To use this, you'd need to work with the Cordova command line (e.g. npm install -g cordova) tools. You would install these tools, change into the directory for your Cordova project from Visual Studio, and then you should be able to follow the steps on that GitHub repo's readme. There are caveats for now - this solution only supports full-screen "kiosk" apps on Mac OS X, rather than building a fully integrated desktop app with features like a menu bar.
Related
.NET Core 3.1 Visual Studio 2019
I have created an iOS Xamarin mobile app, using Visual Studio running on Windows. All works fine, even debugging on an iPhone connected to the Mac on my network.
I now need a very simple Console App for the actual Mac (macOS computer). I have already written the Windows version of the Console App.
I cannot work out how to compile the Console App for macOS. Is it possible? Any help appreciated.
If it is not using Xamarin.Mac APIs, then you can "just" use the console app assembl(ies) and run it via dotnet
Or publish it via dotnet as a self-contained executable
dotnet publish --runtime osx.10.11-x64
Or a runtime-dependent cross-platform binary
dotnet publish
re: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-publish
But if your app is using Xamarin.Mac APIs, then review my SO answer here:
re: Compile OSX app on Windows with Xamarin
I've downloaded Android Studio 3.0.1 for Mac and as I started it, it showed the splash screen for loading but did nothing else relevant (in the case, means showing the menu for starting/opening/importing projects).
After some research, I found that I could bypass this screen if I change the idea.properties and put on the following line:
disable.android.first.run=true
After that I can now reach the SDK Manager window, but no SDK update sites, platforms or tools shows up.
I'm running macOS X High Sierra 10.13.2.
Can anyone help me on installing the SDK tools and platforms?
Edit:
SDK Platform Screenshot
SDK Tools Screenshot
SDK Update Sites Screenshot
Uninstall and install it again. It should have downloaded the Android SDK components while installing but it doesn't seem to be the case. Make sure your connected to the internet during the installation, and once the installation is completed, ensure that they have been downloaded by checking the default Android SDK location on MacOS. Then try opening Android Studio without needing to change any config.
By the time this question was made, there was no solution.
The OS requirements were Mac OS High Sierra up to 10.12. There was no Android Studio for Mac OS 10.13.
Currently there is a version that supports Mac OS 10.13.
edit: also, I found out that permission problems may cause unexpected behavior of some apps (Visual Studio Code also broke). After the permissions check, the software worked like a charm.
Hi there I hope this question wasn't answered anywhere else on SO, but 4h spent on research is enough for today.
My simple question is, if it's possible to build a Windows10 App with cordova on Mac OS X (10.12). Why I want to do such kind of thingy is that I just set up jenkins for some of our projects and we are working with Xamarin, Cordava and native ones, I wanted to configure jenkins for each of them to automate iOS, Android and Windows builds. Everything is working so far, but when I try to build windows cordova app it fails with the following message:
cordova build windows --release
Error: spawn ENOTDIR
I watched the logs and recognized at some point cordova is trying to find MsBuildToolsPath in Registry with:
reg query ...
which is acceptable not working on Mac OS. So I tried to build with msbuild directly:
msbuild /p:Platform=AnyCPU /p:Configuration=Release CordovaApp.sln
Which throws following error:
MSB4226: The imported project
"/Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/Microsoft/VisualStudio/v15.0/JavaScript/Microsoft.VisualStudio.WJProject.Default.props"
was not found. Also, tried to find
"Microsoft/VisualStudio/v15.0/JavaScript/Microsoft.VisualStudio.WJProject.Default.props"
in the fallback search path(s) for $(MSBuildExtensionsPath32) -
"/Library/Frameworks/Mono.framework/External/xbuild/" . These search
paths are defined in
"/Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/MSBuild.dll.config".
Confirm that the path in the declaration is correct, and that
the file exists on disk in one of the search paths.
I followed the path and the files cordova is looking for are not existent, but I found nothing on how to install the Javascript Tools on Mac OS without re/installing Visual Studio.
I am not into cordova so excuse me if this question is not worth wasting your time, but if anybody could help me to get this last platform build succeeding with Jenkins I would really appreciate.
If you're talking about Windows 10 UWP apps the answer is no. See the question also linked in the comments and the documentation on Visual Studio 2017 for Mac Platform here:
Visual Studio for Mac does not support Windows client projects like
Windows Forms, WPF, or UWP.
Possible solutions:
Set up your Mac with Windows 10: Microsoft suggests using Bootcamp, Parallels or a virtual machine with VMware or VirtualBox to run Windows 10 and be able to develop UWP apps on you Mac.
Use a build service: Depending on your requirements, you may consider using a build service. Most popular service might be https://build.phonegap.com/. It does support building UWP apps. You can see their plans here.
I have a Xamarin Mac app I've been handed to make some changes. I've got everything working correctly as far as Windows Visual Studio Xamarin connecting to Mac Xamarin -- the Mac ssh agent works and whatnot.
However, how do I compile the app? When I build it on Windows, it generates an .exe file. Is something supposed to be generated on the Mac side, too? Or do I take that .exe file and somehow package it into an OSX app?
I was trying to stay in my Windows environment to do the coding and building as much as possible.
Thank you.
You will need to compile/package/debug it on macOS.
The build process is performed locally on Windows, generating IL assemblies that cannot be used for running or debugging apps, and it doesn't create application bundles.
re: https://developer.xamarin.com/releases/vs/xamarin.vs_4/xamarin.vs_4.2/#Xamarin.Mac_minimum_support.
macOS Apps
Mac apps can be opened and compiled in Visual Studio to check for errors, however to debug or create a working executable the project must currently be built on a Mac. This limited support for Mac projects allows for easier code sharing in Visual Studio between iOS, Android, Windows, and Mac apps.
re: https://developer.xamarin.com/guides/cross-platform/windows/visual-studio/#macOS_Apps
I am developing an app with Ionic framework and I need the application in windows phone. When I try to deploy the application with Visual Studio 2015 I get this error the following error:
Installation of the application failed. There are pending operations
in the deployment queue windows phone
I'm searching for solutions but look like if no one have this problem.
Thanks.
The requirements for developing hybrid applications (Android and Windows SDK) in VS 2015 are as following:
Install Apache Cordova.
Download and point to location of Ant.
Download Android SDK and point to the SDK folder path.
Install Windows App Development Tools.
Install Git and point to this path.
Install Common Tools and SDKs.
All of these can be done from the setup. See this page. Additionally, if you have installed them outside of the setup (excluding common tools), you can point to the path from Tools > Options > Tools for Apache Cordova > Environment variables.
Look at this configuration guide to learn more.
Well, I never find an answer to solve this problem so I start a new cordova project from Visual Studio and then I migrate all the application to this new project. This works really fine and now the app is running correctly in windows phone. I highly recommend do this, because the project created from Visual Studio is now the base to the other platforms.