-
Notifications
You must be signed in to change notification settings - Fork 808
Building From Source
Meredith Monticello edited this page Apr 11, 2017
·
10 revisions
If you'd like to build the SDK from source, you can use the following process:
-
Install Visual Studio
-
Download and run the Git LFS installer from the Git LFS website
-
Install the Git command line extension with the command below. In case of errors, check the next section below for known issues about the Git LFS installer.
git lfs install
-
Clone the repo
git clone https://github.com/Microsoft/WinObjC
-
From the repo root run the following from a powershell window:
.\init.ps1
.\.tools\nuget.exe restore .\build\build.sln
To build the SDK from source, follow the steps below:
- Ensure that you have WinObjC.Tools installed.
- Open the build\build.sln in Visual Studio 2017
- Build for the Platform and Configuration of your choice. NOTE: "Any CPU" builds for both ARM and x86
- build\OutputPackages will contain the built NuGet packages
To build the SDK from source, follow the steps below:
- Clone all submodules by running from the repo root:
git submodule update --init --recursive
- Ensure that you have WinObjC.Tools installed
- From the repo root run the following from a powershell window:
.\.tools\nuget.exe restore .\tools\tools.sln
- Open the tools\tools.sln in Visual Studio 2017
- Build for the Platform and Configuration of your choice. NOTE: "Any CPU" builds for both ARM and x86
- tools\OutputPackages will contain the built NuGet packages
- When you run the Git LFS installer, if you choose to change the default installation folder, it’s possible for the git-lfs.exe executable to be installed on your Desktop and not under the path you selected (the git-lfs-uninstaller.exe executable, however, should be automatically installed in the right folder). To fix this, simply copy and paste the git-lfs.exe executable from your Desktop to the folder you chose for the installation.
- When trying to install the Git command line extension with the
git lfs install
command, it’s possible you get the errorgit: 'lfs' is not a git command. See 'git --help'
.That’s because the Git LFS installer did not automatically update the Path system environment variable to include the path of the Git LFS executable git-lfs.exe. Choose one of the 2 options below to solve this:
- Option 1: copy and paste the git-lfs.exe executable in Git’s bin directory, usually under C:\Program Files\Git\bin.
- Option 2: if you don’t want to have the git-lfs.exe executable under Git’s bin directory, you can edit the Path system environment variable to include git-lfs.exe’s folder location.
- Click on the Start icon and type System
- Click on System
- Click the Advanced System Settings link in the left column
- In the System Properties window, click on the Advanced tab, then click the Environment Variables button near the bottom of that tab
- In the Environment Variables window, highlight the Path variable in the System variables section and click the Edit button.
- Click the New button and type the full path of your git-lfs.exe executable
- Click OK to close the Edit environment variables and Environment Variables window
Project
Using the bridge
- Getting Started
- Using vsimporter
- Using the SDK
- Building From Source
- Adding Objective C to an Existing Project
- UI Guidance
- Changing the SDK Version of a Project
- Debugging
- Debugging Stack Traces from Crash Dumps
- Supported Third Party Libraries
- Creating and Linking Against C++ Static Libraries
- Packaging
Samples and Tutorials
- Quick Start Tutorial
- Building a To-Do List App
- Building a Calculator App
- Mixing and Matching UIKit and XAML
- IOS Bridge Samples Repo
Contributing
Links