mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-01-12 22:51:55 +08:00
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:
4
Rakefile
4
Rakefile
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user