I am trying to make an installer file for mac for my application, and I can't find a way to do this. I am using Xamarin STudio and mono (not monomac), classic windows forms.
So here is what I did:
a)I created in Visual Studio on Windows a hello world app, with a simple window and a button
b)I installed Xamarin Studio in my VMWare mac os X image
c)I open the SLN from windows PC with xamarin studio
Everything is good. The solution opens, if I press run it runs on Mac using mono.
Now my problem. How do I compile and make the setup for Mac Os X so I can distribute my file (not in the store)?
I tried with right click on solution->tools->create package . But i Have no option to make a mac os x file. How can I do that?
***EDIT
I managed to compile and run the software on mac. I use the following code:
export PATH=/Library/Frameworks/Mono.framework/Commands:$PATH
export AS="as -arch i386"
export CC="cc -arch i386 -lobjc -liconv -framework Foundation"
# Build: --static
mkbundle "/VOLUMES/C/Proiecte/TestMono3/TestMono3/bin/Release/TestMono3.exe" --deps -o hello3
When I open hello3, it opens a terminal. Can this be avoided?
Also, if I don't use --static in mkbundle, can I still distribute the software without the user needing to install mono?
Thanks!
Do the following:
Switch your Project to the Release configuration from the Debug one.
In the Build menu, select Archive for Publishing.
The project will be built, archived and displayed in the Archive Explorer.
Select the desired version of the app and click the Sign and Distribute button.
From the Sign and Distribute dialog box, select Mac Installer Package and click the Next button.
Fill in the required Provisioning profile signing information. Note: You will have to have an developer account with Apple to correctly sign an installer, even for apps NOT released on the Mac App Store.
Continue with the rest of the prompts from the Sign and Distribute dialog box to create the installer.
I would suggest reading over the Publishing to the App Store guide as the steps are basically the same for a self-released installer package.
Related
I just finished my first C# console app on Visual Studio 2022 on Mac and I need to publish it to a standalone executable app. I am able to get the exe on Mac working fine. But my teacher needs to open it on Windows. How can I do that?
When publishing, VS on Mac does not ask for the target runtime machine at all...
Thanks.
Sure, you can always publish for a different platform, e.g:
dotnet publish MyProject.csproj --runtime win-x64
This should give you a publish\win-x64 directory with a windows exe file in it. You can give that folder to your teacher.
I build a Xamarin Forms application and I am using VMware to run my ios project. I generated an APK for android successfully, but I don't know how to generate IPA for the IOS project. Any idea?
iOS executable file format is ipa, not APK.
Here is documentation about building iOS ipa using xamarin.
You need MacOs to compile Mac based binary files :
Use a Mac as your main development machine and run a Windows virtual machine with Visual Studio installed. using VM software such as Parallels or VMWare .
Use a Mac just as a build host. In this scenario it would be connected to the same network as a Windows machine with the necessary tools installed.
Using below steps you can generate IPA for ios:
Connect your project with Mac using VMWare.
Select Release mode instead of Debug:
Right click on your iOS Project and go to properties.
Then go to iOS Bundle Signing and select appropriate Provisional
Profile and Certificate.
Then move to next option i.e.iOS IPA Options and Mark checkbox true
name with Build iTunes Package Archive(IPA).
Add Package name as per your Certificate.
Now Just clean and Build your Project for iPhone mode
.
You can find your IPA in your release/iPhone folder.
Good morning,
I Need some help to solve an issue that I found on my android application.
I have created an android application that has device administrator permission using a PC A
now I have moved to a different PC, B and when I open the same project on my visual studio and generate the apk from the new PC, if I try to reinstall it by opening the apk on the android device where there is already install the application it fails.(application not installed)
If I open the same project on my old pc, I can generate the apk and reinstall on it (application installed).
I have checked and all option on android are the same.same sdk version same min sdk etc.
Do you know if the are some "key" to copy from my old pc?
the only solution that I have is format the android device and reinstall the application because when the android application is device administrator I can't uninstall it.
thanks and regards,
andrea
I'm doing an app using Xamarin.Forms and I've already deployed the Android and iOS version to HockeyApp but I have a problem with the UWP (Windows 10 version)...
These are the steps I do:
Right click on my UWP project
Select "Store" option
Select "Create app packages"
A window pops and I select "No" and click "Next"
Then I only select the ARM configuration
Click "Next"
My package has been created and I drag n drop the .appxbundle file to hockeyapp.
Once the package is uploaded, I start my Windows 10 Mobile emulator and try to install it...
I download it from HockeyApp and when I install it, nothing happens...
Do you have any idea where this problem comes from?
I'm using Visual Studio 2015.
Windows 10 mobile emulator not supported ARM, only x86/x64. You need the real device for test ARM package.
I was experiencing exactly the same, but I've managed to fix it. Here's what I've done:
I associated the app with Store in Visual Studio
I installed Windows 10 Mobile Anniversary update (OS Build: 10.0.14383.953), since my app was targeting Anniversary Update.
I installed the certificate which was included in the .ZIP file next to the .appxbudnle
Then I run the .appxbundle and clicked install. The installer exited without any message, just like before, but after a minute or so the app appeared in the installed apps on my Microsoft Lumia 650.
I am developing a hmi for a usb device in visual studio 2012 and I want to include usb device drivers in my program installation. I do have .cat and .inf file of the usb device but how should I include them in my hmi installation so that user doesn't have to prompt windows to search for the folders.
thanks in advance for helping me out,
Veeru
I don't know what kind of installation technology you are using; Visual Studio provides both "ClickOnce" and "Setup Projects".
With ClickOnce, I don't think it is possible to install drivers.
With a Setup Project, you will have to make a custom action that calls SetupOEMCopyInf. To make that custom action, you have to compile a Win32 DLL using C or C++.