Bridges the worlds of .NET with the native APIs of macOS, iOS, tvOS, and watchOS.
Перейти к файлу
Rolf Bjarne Kvinge 9d65e42f58 Fix testing 32-bit XM apps. Fixes maccore issue 884. (#4555)
* [jenkins] Only XM apps with variations are Classic/32-bit apps, so adjust ignore logic accordingly. Fixes maccore issue 884.

Fixes https://github.com/xamarin/maccore/issues/884.

* [mmp] Fix passing -stdlib=libc++ to clang.

* [tests] Fix 32-bit XM issues.

* [xharness] Add support for building 32-bit XM apps by using Xcode 9.4.

* [xharness] Since xharness can now build 32-bit mac apps, enable them by default.

* Remove debug code.

* Remove unused variable.
2018-08-03 17:06:23 -04:00
builds Revert "More 10.7 -> 10.9 bumps" 2018-07-25 11:56:18 +02:00
docs Removed an unnecessary period (#3967) 2018-04-20 16:20:04 -04:00
external Bump mono to fix (2nd part) watchos calling convention (#4514) 2018-07-27 08:27:09 -04:00
fsharp [builds] Don't install symlinks to iOS/Classic assemblies in the iOS/Unified profile. (#844) 2016-09-16 20:02:25 +02:00
jenkins [jenkins] Implement support for slack notifications. (#4369) 2018-08-03 11:37:54 +02:00
mk [jenkins] Run more tests on additional macOS versions (introspection, linksdk, linkall and xammac_tests). 2018-07-03 16:53:29 +02:00
mono/4.5 [build] Add .NET Core open source key 2017-03-14 11:47:06 +01:00
msbuild Bump mono to fix (2nd part) watchos calling convention (#4514) 2018-07-27 08:27:09 -04:00
opentk PMCS Removal (#3197) 2018-02-05 10:26:29 -05:00
runtime [arkit] Update to Xcode 10 beta 1 (ARKit 2.0) (#4209) 2018-06-14 13:44:45 -04:00
src [CoreGraphics] Add missing API added in Xcode 10 beta 1. (#4547) 2018-08-02 20:30:41 -04:00
tests Fix testing 32-bit XM apps. Fixes maccore issue 884. (#4555) 2018-08-03 17:06:23 -04:00
tools Fix testing 32-bit XM apps. Fixes maccore issue 884. (#4555) 2018-08-03 17:06:23 -04:00
.gitignore Merge branch 'xcode9.3' into d15-7-merge-xcode9.3 2018-03-29 19:31:01 -04:00
.gitmodules Branching for xcode10 2018-06-25 18:26:19 -04:00
CODEOWNERS [IdentityLookupUI] Add bindings for Xcode 10 Beta 1 (#4281) 2018-06-15 20:46:35 -05:00
ISSUE_TEMPLATE.md Add initial github issue template (#3080) 2017-12-06 15:03:12 -05:00
LICENSE Adjust license to match requested format 2016-04-25 16:38:57 -04:00
Make.config Update for xcode 10 beta 5 (#4527) 2018-07-31 08:49:19 -04:00
Makefile Add support for building on Jenkins. (#4159) 2018-06-12 14:37:03 +02:00
NuGet.config Add a 'repositorypath' to our NuGet.Config and update paths everywhere accordingly. (#1110) 2016-11-04 09:13:33 +01:00
README.md Force build (on wrench) 2017-09-12 20:16:18 -04:00
Versions-ios.plist.in Bump to use Xcode 10 beta 1 (#4179) 2018-06-08 18:45:24 -07:00
Versions-mac.plist.in Revert "Update min macOS version in Versions-mac.plist" 2018-07-25 11:56:29 +02:00
Xamarin.Mac.sln [linker] Update VS files (solution and .csproj) to build properly with the new linker sources location (#2740) 2017-09-21 16:40:40 -04:00
Xamarin.iOS.sln Fix solution after some test projects moved. (#3416) 2018-02-07 22:06:26 +01:00
banner.png [README] Add Xamarin.iOS + Xamarin.Mac banner (#1665) 2017-02-08 17:42:48 -05:00
configure Emit configure arguments into configure.inc to make it easier to re-run it. 2016-05-27 15:37:21 -04:00
product.snk Add our mono runtimes to the build. 2016-04-24 14:47:24 -04:00
system-dependencies.sh [system-dependencies] Fix Xcode provisioning. 2018-06-12 18:29:27 +02:00
versions-check.csharp [Versions-ios.plist] watchOS started at 1.0 (#1328) 2016-12-13 10:52:58 +01:00

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
    
  5. Build again after any local changes

    Don't use make world again to rebuild, because it resets dependencies and causes unnecessary rebuilds. Instead use the standard make all install (our Makefiles are parallel safe, which greatly speeds up the build):

     $ make all -j8 && make install -j8
    

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.