Xcode6-Beta6

iOS 8 SDK path was changed as symbolic link.

    $ ls -la /Applications/Xcode6-Beta6.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
    total 8
    drwxr-xr-x@  4 watson  admin  136  8 19 14:31 .
    drwxr-xr-x@  5 watson  admin  170  8 19 06:19 ..
    drwxr-xr-x@ 12 watson  admin  408  8 19 03:59 iPhoneSimulator.sdk
    lrwxr-xr-x   1 watson  admin   19  8 19 06:19 iPhoneSimulator8.0.sdk -> iPhoneSimulator.sdk

This patch skips iPhoneSimulator.sdk because it cannot retrieve SDK version number and causes an error.
This commit is contained in:
Watson
2014-08-19 15:49:25 +09:00
parent e1130b32f9
commit a4fa37ffec
2 changed files with 3 additions and 3 deletions

View File

@@ -2,10 +2,10 @@ PROJECT_VERSION = '2.32'
PRE_PROJECT_VERSION = '3.0beta0.4'
XCODE_PLATFORMS_DIR = (ENV['XCODE_PLATFORMS_DIR'] || '/Applications/Xcode.app/Contents/Developer/Platforms')
sim_sdks = Dir.glob(File.join(XCODE_PLATFORMS_DIR, 'iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator*.sdk')).map do |path|
sim_sdks = Dir.glob(File.join(XCODE_PLATFORMS_DIR, 'iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator?*.sdk')).map do |path|
File.basename(path).scan(/^iPhoneSimulator(.+)\.sdk$/)[0][0]
end
ios_sdks = Dir.glob(File.join(XCODE_PLATFORMS_DIR, 'iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk')).map do |path|
ios_sdks = Dir.glob(File.join(XCODE_PLATFORMS_DIR, 'iPhoneOS.platform/Developer/SDKs/iPhoneOS?*.sdk')).map do |path|
File.basename(path).scan(/^iPhoneOS(.+)\.sdk$/)[0][0]
end
IOS_SDK_VERSIONS = (sim_sdks & ios_sdks)

View File

@@ -4,4 +4,4 @@
# ./build.sh clean:vm
# ./build.sh
rake $*
SDK_BETA=1 XCODE_PLATFORMS_DIR=/Applications/Xcode6-Beta5.app/Contents/Developer/Platforms rake $*
SDK_BETA=1 XCODE_PLATFORMS_DIR=/Applications/Xcode6-Beta6.app/Contents/Developer/Platforms rake $*