Bridges the worlds of .NET with the native APIs of macOS, iOS, tvOS, and watchOS.
Перейти к файлу
Chris Hamons 75fcf376d3 [XM] Fix mmp test failure
- On some machines/mono versions it appears that printing System.Windows.DependencyObject requires System.Xaml for some reason.
- Since the test is testing our resolution from the GAC and we don't care about the specifics, I'm just adding that reference. Which we also get from the GAC.
2016-06-20 12:52:29 -05:00
builds [builds] Don't pass --disable-shared-handles to mono's configure, its the default. Avoid some duplicate configure options. 2016-06-07 01:37:51 -04:00
external Bump mono/watch-mono to pick up the fix for #41947. (#227) 2016-06-17 18:28:28 -04:00
fsharp Build F#. 2016-04-24 14:47:24 -04:00
mk [tests] Make mdtool verbose on CI, and fix a few xbuild invocation to honor XBUILD_VERBOSITY. (#131) 2016-06-06 13:01:24 +02:00
mono/4.5 Add our mono runtimes to the build. 2016-04-24 14:47:24 -04:00
msbuild [msbuild] Support ibtool output when it adds ~ipad or ~iphone modifiers (#200) 2016-06-16 14:17:25 -04:00
opentk Build the platform assemblies. 2016-04-24 14:47:26 -04:00
runtime Merge pull request #153 from rolfbjarne/more-exceptions 2016-06-09 18:13:23 +02:00
src [CoreGraphics] Fix CGRect.Inflate to work correctly, and add tests. Fixes #41684. (#225) 2016-06-17 10:45:58 -07:00
tests [XM] Fix mmp test failure 2016-06-20 12:52:29 -05:00
tools [linker] Adjust RemoveCode.cs not to remove MonoMethodMessage (#226) 2016-06-17 15:51:19 -07:00
.gitignore [jenkins] Run the api diff. (#73) 2016-06-02 14:30:17 +02:00
.gitmodules Add a separate submodule tracking mono/master for watchOS. 2016-05-13 17:41:48 +02:00
LICENSE Adjust license to match requested format 2016-04-25 16:38:57 -04:00
Make.config Bump versions of XI to 9.9.2.x and XM to 2.9.2.x (#185) 2016-06-14 00:48:16 -04:00
Makefile Only recurse into tests once everything else is done. (#136) 2016-06-06 17:13:52 +02:00
README.md Update README.md (#54) 2016-05-16 13:47:28 +02:00
Xamarin.Mac.sln Move parts of dontlink tests into new introspection tests (#32) 2016-05-04 20:14:32 -04:00
Xamarin.iOS.sln Add bindings-generator.csproj to Xamarin.iOS.sln (#132) 2016-06-06 15:01:28 +02:00
configure Emit configure arguments into configure.inc to make it easier to re-run it. 2016-05-27 15:37:21 -04:00
jenkins.sh [jenkins] Ignore test errors for now. 2016-06-15 10:51:14 -07:00
product.snk Add our mono runtimes to the build. 2016-04-24 14:47:24 -04:00
system-dependencies.sh [system-dependencies] Ensure xcode-select points to the Xcode we care about. (#53) 2016-05-16 08:13:55 -04:00

README.md

Xamarin.iOS & Xamarin.Mac

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.

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

Coding Guidelines

We use Mono's Coding Guidelines.

Reporting Bugs

We use Bugzilla to track issues.