Skip to content

Build documentation improvements #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,22 @@ compiler.

## Xcode integration

You can get Xcode integration for **mulle-clang**. mulle-clang will appear as
### Xcode 8
For *Xcode 7* we can use [`mulle-clang-add-to-xcode.sh`](mulle-clang-add-to-xcode.sh) to integrate **mulle-clang** with project anyhow this doesn't work for *Xcode 8* since [Xcode 8 uses library validation.](https://github.com/alcatraz/Alcatraz/issues/475)

**Xcode 8 integration for mulle-clang with CMake**

```bash
cd <pathToProjectDir>/MulleObjC
```

```bash
mkdir build-xcode.d ; cd build-xcode.d ; cmake -G "Xcode" .. ; open *.xcodeproj
```

### Xcode 7

You can get *Xcode 7* integration for **mulle-clang**. mulle-clang will appear as
an available compiler in Xcode in the "Build Settings":

![Screeny](pix/xcode-integration.png)
Expand Down
7 changes: 7 additions & 0 deletions mulle-clang-add-to-xcode.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#! /bin/sh
#
# Copyright (c) 2015 Nat! - Codeon GmbH
# Copyright (c) 2016 3a4oT
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -63,6 +64,12 @@ set -e
XCODE_DEVELOPER_PATH="`"xcode-select" -p`"
[ -d "${XCODE_DEVELOPER_PATH}" ] || fail "Xcode not installed ?"

XCODE_BUILD_VERSION=$(xcodebuild -version | grep -o '[0-9].[0-9].[0-9]$') # => major.minor.patch
MAJOR_VERSION=(${XCODE_BUILD_VERSION//./ }[0]) # => split to array and take major value
if [[ $MAJOR_VERSION > 7 ]]; then
fail "Xcode ${XCODE_BUILD_VERSION} uses library validation. It won't load in-process plugins anymore. See https://github.com/alcatraz/Alcatraz/issues/475"
fi

XCODE_CONTENTS_PATH="`dirname ${XCODE_DEVELOPER_PATH}`"


Expand Down