summaryrefslogtreecommitdiffstats
path: root/pkgs/development/mobile/xcodeenv
diff options
context:
space:
mode:
authorSander van der Burg <svanderburg@mgail.com>2018-01-05 11:40:34 +0100
committerSander van der Burg <svanderburg@mgail.com>2018-01-05 11:40:34 +0100
commit62f7fc8c19ed4199356c3e2cc65c0adbd32c011d (patch)
tree59fc50e41b0f1651a8a7e04472459f2ce4d2499a /pkgs/development/mobile/xcodeenv
parentc4899f4ace69aca76a6636f769dee77c6211c9da (diff)
xcodebuild: fix to make it build against the 11.2 iphone SDK
Diffstat (limited to 'pkgs/development/mobile/xcodeenv')
-rw-r--r--pkgs/development/mobile/xcodeenv/build-app.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/mobile/xcodeenv/build-app.nix b/pkgs/development/mobile/xcodeenv/build-app.nix
index bbbe1728ee5d..d208f26ab670 100644
--- a/pkgs/development/mobile/xcodeenv/build-app.nix
+++ b/pkgs/development/mobile/xcodeenv/build-app.nix
@@ -1,7 +1,7 @@
{stdenv, xcodewrapper}:
{ name
, src
-, sdkVersion ? "10.2"
+, sdkVersion ? "11.2"
, target ? null
, configuration ? null
, scheme ? null
@@ -80,8 +80,10 @@ stdenv.mkDerivation {
''}
# Do the building
+ export LD=clang # To avoid problem with -isysroot parameter that is unrecognized by the stock ld. Comparison with an impure build shows that it uses clang instead. Ugly, but it works
+
xcodebuild -target ${_target} -configuration ${_configuration} ${stdenv.lib.optionalString (scheme != null) "-scheme ${scheme}"} -sdk ${_sdk} TARGETED_DEVICE_FAMILY="1, 2" ONLY_ACTIVE_ARCH=NO CONFIGURATION_TEMP_DIR=$TMPDIR CONFIGURATION_BUILD_DIR=$out ${if generateXCArchive then "archive" else ""} ${xcodeFlags} ${if release then ''"CODE_SIGN_IDENTITY=${codeSignIdentity}" PROVISIONING_PROFILE=$PROVISIONING_PROFILE OTHER_CODE_SIGN_FLAGS="--keychain $HOME/Library/Keychains/$keychainName-db"'' else ""}
-
+
${stdenv.lib.optionalString release ''
${stdenv.lib.optionalString generateIPA ''
# Produce an IPA file