Posts
Oct 21, 2016 Unity for Mac is a game development ecosystem: a powerful rendering engine fully integrated with a complete set of intuitive tools and rapid workflows to create interactive 3D and 2D content; easy multiplatform publishing; thousands of quality, ready-made assets in the Asset Store and a knowledge-sharing community. For independent developers and studios, Unity’s democratizing.
![File File](/uploads/1/2/5/3/125382104/454477362.jpg)
Unity Mac Build Dmg File Player
- USForum Administrator, Xamarin TeamXamuraiCreating dmg files involves invoking the native (Apple) toolchain. Like many things with Xamarin.Mac, you can often search for solutions by searching for 'cocoa X', in this case 'cocoa create dmg'.The first few hits are all stack overflow posts that explain the use of hdiutil
- Hi,Thanks ChrisHamons.We are having a windows application which is developed using .net framework and Visual Studio.
Now we have to run the same windows application on MAC OS.
For the same we have migrated our code to Mono Project Framework and used Xamarin Studio.
Now we are able to successfully run the application on MAC OS using Xamarin Studio.
We have create .dmg or .app file of the application so that we can criculate file among the users.
So, how do we create .dmg file or .app file of migrated code using Xamarin Studio.Thanks - USForum Administrator, Xamarin TeamXamuraiIn general, building Xamarin.Mac applications requires tools provided by Xcode / Apple, which requires building on a Mac.Since you've 'ported' your application, and haven't run into issues before, I assume you aren't using Xamarin.Mac, but some other GUI library (WinForms, GTK#, etc).It appears you can build dmg files on Windows:Depending on your UI toolkit, you may have to generate an App Bundle by hand if there isn't native support. For example, Xamarin.Mac will generate bundles for you as part of the build process, but requires building on a Mac.
- Thanks ChrisHamons.You were right, we aren't using Xamarin.Mac.
We are using GUI library (WinForms) on Xamarin studio.
When we build the project on MAC OS X we are not getting .app file but we are getting .exe file.
How do we get .app file when we run the project successfully or is there any other way to generate the .app fileThanks. - USForum Administrator, Xamarin TeamXamuraiThat is not a scenario that Xamarin supports (We support building native applications using Xamarin.Mac which generates the app bundle for you automatically).In the community mono, there are two tools (mkbundle / macpack) that may be useful (http://www.mono-project.com/archived/guiderunning_mono_applications/). Be aware, that using mkbundle with the static flag may trigger licensing issues, so read the linked page closely. [1][1]
Bundles in addition support a –static flag. The –static flag causes mkbundle to generate a static executable that statically links the Mono runtime. Be advised that this option will trigger the LGPL requirement that you still distribute the independent pieces to your user so he can manually upgrade his Mono runtime if he chooses to do so. Alternatively, you can obtain a proprietary license of Mono by contacting Xamarin. - Thanks ChrisHamons.I created .app file using macpack.Thanks a lot.
- I found this link, which describes how to create a generic .dmg that you can then customize. It's built using a makefile.After much tinkering and tuning, I got that set up, and added a custom post-build step in my Xamarin Studio project to run the makefile. The result is then a nice .dmg ready for people to do a simple drag-install of the product. (They do still have to install MonoMac on their own, in my case.)