Bridges the worlds of .NET with the native APIs of macOS, iOS, tvOS, and watchOS.
Перейти к файлу
Håvard Fossli 456b482839 Fixing formating typos for titles in README.md (#1939) 2017-03-30 10:01:43 +02:00
builds Merge remote-tracking branch 'origin/master' into mono-2017-02 2017-03-23 23:13:43 +01:00
docs [doc] Add XIA0004 Missing64BitSupportRule to xamarin-ios-analysis (#1912) 2017-03-25 13:02:54 -04:00
external Bump mono 2017-03-29 10:31:33 +02:00
fsharp
jenkins
mk Merge branch 'master' into mono-2017-02 2017-03-28 21:31:33 -05:00
mono/4.5 [build] Add .NET Core open source key 2017-03-14 11:47:06 +01:00
msbuild Merge branch 'master' into mono-2017-02 2017-03-28 21:31:33 -05:00
opentk
runtime [modelio] Add missing MDLMesh constructors and fix xtro (#1826) 2017-03-28 10:08:12 -05:00
src Merge pull request #1872 from xamarin/mono-2017-02 2017-03-29 14:55:47 -05:00
tests Merge branch 'master' into mono-2017-02 2017-03-29 19:20:35 +02:00
tools Merge branch 'master' into mono-2017-02 2017-03-28 21:31:33 -05:00
.gitignore Update .gitignore with pdb files 2017-03-21 00:00:13 +01:00
.gitmodules Mono branch name update 2017-03-14 11:51:08 +01:00
LICENSE
Make.config Enforce mono 4.8 until we've merged support for the newer mono. (#1934) 2017-03-29 15:21:26 +02:00
Makefile Validate file permissions of installed files. (#1607) 2017-02-01 14:30:29 +01:00
NuGet.config
README.md Fixing formating typos for titles in README.md (#1939) 2017-03-30 10:01:43 +02:00
Versions-ios.plist.in Bump Xcode and SDK versions to match Xcode 8.3 2017-03-28 11:21:02 -05:00
Versions-mac.plist.in [Versions-ios.plist.in] added sgen-concurrent-gc (#1873) 2017-03-17 11:54:27 -04:00
Xamarin.Mac.sln
Xamarin.iOS.sln
banner.png [README] Add Xamarin.iOS + Xamarin.Mac banner (#1665) 2017-02-08 17:42:48 -05:00
configure
product.snk
system-dependencies.sh [system-dependencies] Handle monos updateinfo (#1540) 2017-01-20 14:56:31 +01:00
versions-check.csharp

README.md

Xamarin.iOS + Xamarin.Mac logo

Xamarin.iOS & Xamarin.Mac

Status
master xamarin-macios-builds-master

Welcome!

This module is the main repository for both Xamarin.iOS and Xamarin.Mac.

These frameworks allow us to create native iOS, tvOS, watchOS and Mac applications using the same UI controls we would in Objective-C and Xcode, except with the flexibility and elegance of a modern language (C#), the power of the .NET Base Class Library (BCL), and two first-class IDEs—Xamarin Studio and Visual Studio—at our fingertips.

Continuous Builds

You can download continuous builds of our main development branches from our wiki page.

Build requirements

  • 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
    
  • CMake

    You can use brew, or download manually from cmake.org.

    CMake must be in PATH, so if you install it somewhere else, you'll have to fix up your PATH accordingly (not necessary if installed using brew).

    To install using brew:

    $ brew install cmake
    
  • 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]
    

Quick build & install

Follow the following steps to build and install Xamarin.iOS and Xamarin.Mac:

  1. Clone this repository and its submodules

     $ git clone --recursive git@github.com:xamarin/xamarin-macios.git
     $ cd xamarin-macios
    
  2. Fetch dependencies and build everything

     $ make world
    
  3. Make sure permissions are OK to install into system directories (this will ask for your password)

     $ make fix-install-permissions
    
  4. Install into the system

     $ make install-system
    

Configure

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-mac: Disable Mac-related parts.

  • --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).

  • --disable-ccache: Disables cached builds with ccache, even if it is present.

  • --disable-strip: If executables should be stripped or not. This makes it easier to debug native executables using lldb.

  • --help: Show the help.

Contributing

Mailing Lists

To discuss this project, and participate in the design, we use the macios-devel@lists.xamarin.com mailing list.

Chat

There is also a gitter chat room that can be used to discuss this project, and participate in the design: Gitter

Coding Guidelines

We use Mono's Coding Guidelines.

Reporting Bugs

We use Bugzilla to track issues.