xamarin / xamarin-macios
- пятница, 29 апреля 2016 г. в 03:11:48
C#
Bridges the worlds of .NET with the native APIs of Mac, iOS, tvOS, and watchOS.
This module is the main repository for both Xamarin.iOS and Xamarin.Mac.
Autoconf, automake and libtool.
You can use brew, or this script to get it directly from gnu.org (you'll have to edit your PATH to include /opt/bin if you use the script)
To install brew and all the tool dependencies:
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew update
$ brew install libtool autoconf automake bison flex
Xcode
To build the Xamarin.iOS and Xamarin.Mac SDKs you need a certain version of Xcode. The build will tell you exactly which version you need.
You can download the Xcode version you need from Apple's Developer Center (requires an Apple Developer account).
To ease development with different versions of the SDK that require different versions of Xcode, we require Xcode to be in a non-standard location (based on the Xcode version).
For example Xcode 7.0 must be installed in /Applications/Xcode7.app.
The recommended procedure is to download the corresponding Xcode dmg from Apple's Developer Center, extract Xcode.app to your system, and rename it before launching it the first time. Renaming Xcode.app after having launched it once may confuse Xcode, and strange errors start occuring.
Mono MDK.
The build will tell you if you need to update, and where to get it.
Xamarin Studio.
The build will tell you if you need to update, and where to get it.
You can also provision some of the dependencies with an included script:
$ ./system-dependencies.sh --provision-[xcode|xamarin-studio|mono|all]
Follow the following steps to build and install Xamarin.iOS and Xamarin.Mac:
Clone this repository and its submodules
$ git clone --recursive git@github.com:xamarin/xamarin-macios.git
$ cd xamarin-macios
Fetch dependencies and build everything
$ make world
Make sure permissions are OK to install into system directories (this will ask for your password)
$ make fix-install-permissions
Install into the system
$ make install-system
There is a configure script that can optionally be used to configure the build. By default, everything required for both Xamarin.iOS and Xamarin.Mac will be built.
--disable-ios: Disable iOS-related parts.
In both cases the resulting build will contain both iOS and Mac bits because:
Parts of the iOS build depends on Mac parts (in particular mtouch uses Xamarin.Mac).
The class libraries builds can not be disabled because a very common error is to end up with code that only works/builds in either iOS or Mac.
--enable-ccache: Enables cached builds with ccache
(default if ccache
is found in the path).
ccache
, even if it is present.To discuss this project, and participate in the design, we use the macios-devel@lists.xamarin.com mailing list.
We use Mono's Coding Guidelines.
We use Bugzilla to track issues.