Browse Source

Merge pull request #210 from tipbit/fix-xcode7-beta5-build

Fix build for Xcode 7.0 beta 5.
pull/2/merge
Hoà V. DINH 6 years ago
parent
commit
58a2a829aa
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      build-mac/dependencies/prepare-cyrus-sasl.sh

+ 3
- 2
build-mac/dependencies/prepare-cyrus-sasl.sh View File

@ -111,14 +111,15 @@ LIB_NAME=$ARCHIVE
TARGETS="iPhoneOS iPhoneSimulator"
SDK_IOS_MIN_VERSION=7.0
SDK_IOS_VERSION="`xcodebuild -version -sdk 2>/dev/null | egrep SDKVersion | tail -n 1 | sed -E -n -e 's|SDKVersion: *(.*) *$|\1|p'`"
SDK_IOS_VERSION="$(xcodebuild -version -sdk 'iphoneos' 2>/dev/null | egrep '^SDKVersion: ' | cut -d" " -f 2 | sort -n | tail -n1)"
BUILD_DIR="$tmpdir/build"
INSTALL_PATH="${BUILD_DIR}/${LIB_NAME}/universal"
for TARGET in $TARGETS; do
DEVELOPER="$(xcode-select --print-path)"
SYSROOT="`xcodebuild -version -sdk 2>/dev/null | egrep $TARGET -B 3 | egrep '^Path: '| egrep $SDK_IOS_VERSION | sort -u | tail -n 1| cut -d ' ' -f 2`"
SDK_ID="$(echo "$TARGET$SDK_IOS_VERSION" | tr A-Z a-z)"
SYSROOT="$(xcodebuild -version -sdk "$SDK_ID" 2>/dev/null | egrep '^Path: ' | cut -d ' ' -f 2)"
case $TARGET in
(iPhoneOS)


Loading…
Cancel
Save