-
Notifications
You must be signed in to change notification settings - Fork 806
Building From Source
If you'd like to build the SDK from source, you can use the following process:
-
Install Visual Studio
-
Download and install Git LFS
-
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
-
Navigate into the build directory of the repo and double-click on build.sln to open the project solution in Visual Studio.
-
Set the build type to be Release and the platform to be x86.
-
Right-click on the solution and select build.
-
Set the build type to be Release and the platform to be ARM.
-
Right-click on the solution and select build.
To build the SDK from source and package it in a zip file, follow the steps below:
- Open the Start menu and type developer (1). This will bring a list of installed apps that match your search pattern.
- Click on the Developer Command Prompt for VS2015 (1).
- Navigate into the build\Package directory of the repo with the cd %SDKInstallDir%\build\Package (1) command, where SDKInstallDir% is your SDK download directory.
- Run the msbuild package.nativeproj /m /p:Configuration=Release /p:Platform=All (1) command to build the SDK and generate the zip file. Once the build is complete, the SDK winobjc.zip, will be created in the build/SDKPackage/Release directory.
- 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