xcodeenv: make it work with xcode 7.2
commitb6d84748b913c9ffc9937ec64ca868cffa8797b4
authorSander van der Burg <svanderburg@gmail.com>
dateThu 7 Jan 2016, 14:43 (11 years ago)
parent326dce4
pkgs/development/mobile/xcodeenv/build-app.nix+2−2
@@ -37,7 +37,7 @@ let
3737
3838 _arch = if arch == null
3939 then
40− if release then "armv7" else "i386"
40+ if release then "armv7" else "x86_64"
4141 else arch;
4242
4343 _sdk = if sdk == null
@@ -83,7 +83,7 @@ stdenv.mkDerivation {
8383 ''}
8484
8585 # Do the building
86− xcodebuild -target ${_target} -configuration ${_configuration} ${stdenv.lib.optionalString (scheme != null) "-scheme ${scheme}"} -sdk ${_sdk} -arch ${_arch} 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"'' else ""}
86+ xcodebuild -target ${_target} -configuration ${_configuration} ${stdenv.lib.optionalString (scheme != null) "-scheme ${scheme}"} -sdk ${_sdk} -arch ${_arch} ONLY_ACTIVE_ARCH=NO VALID_ARCHS="${_arch}" 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"'' else ""}
8787
8888 ${stdenv.lib.optionalString release ''
8989 ${stdenv.lib.optionalString generateIPA ''
pkgs/development/mobile/xcodeenv/default.nix+1−1
@@ -1,4 +1,4 @@
1−{stdenv, version ? "6.1.1", xcodeBaseDir ? "/Applications/Xcode.app"}:
1+{stdenv, version ? "7.2", xcodeBaseDir ? "/Applications/Xcode.app"}:
22
33rec {
44 xcodewrapper = import ./xcodewrapper.nix {
pkgs/development/mobile/xcodeenv/simulate-app.nix+1−1
@@ -21,7 +21,7 @@ stdenv.mkDerivation {
2121 fi
2222
2323 # Open the simulator instance
24− open -a "$(readlink "${xcodewrapper}/bin/iOS Simulator")" --args -CurrentDeviceUDID $udid
24+ open -a "$(readlink "${xcodewrapper}/bin/Simulator")" --args -CurrentDeviceUDID $udid
2525
2626 # Copy the app and restore the write permissions
2727 appTmpDir=$(mktemp -d -t appTmpDir)
pkgs/development/mobile/xcodeenv/xcodewrapper.nix+1−1
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
1010 ln -s /usr/bin/codesign
1111 ln -s "${xcodeBaseDir}/Contents/Developer/usr/bin/xcodebuild"
1212 ln -s "${xcodeBaseDir}/Contents/Developer/usr/bin/xcrun"
13− ln -s "${xcodeBaseDir}/Contents/Developer/Applications/iOS Simulator.app/Contents/MacOS/iOS Simulator"
13+ ln -s "${xcodeBaseDir}/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator"
1414
1515 cd ..
1616 ln -s "${xcodeBaseDir}/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs"