I have Xcode 7.1.1. I have already downloaded the iPhone 9.0 Simulator still I get this error.
❯ Rake
ERROR! Can't locate iPhoneSimulator SDK 9.0 at `/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk'
I have also added sdk version 9.0 in my Rakefile.
❯ cat Rakefile
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'
begin
require 'bundler'
Bundler.require
rescue LoadError
end
Motion::Project::App.setup do |app|
app.sdk_version = "9.0"
app.deployment_target = "9.0"
# Use `rake config' to see complete project settings.
app.name = 'HelloMotion'
end
I have downloaded the iOS 9.0 simulator. You can see in the below screenshot.
The iOS 9.0 Simulator and iOS 9.0 Simulator SDK are two different things.
Legacy iOS Simulator SDKs no longer ship with the latest versions of Xcode. To install an older Simulator SDK, take the iPhoneSimulator.sdk
directory from an older version of Xcode (Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
), and copy it to your newer version.
For example, Xcode 7.0 comes with the 9.0 iOS Simulator SDK. To install that in Xcode 7.1, take the directory:
Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
Rename it from iPhoneSimulator.sdk
to iPhoneSimulator9.0.sdk
.
Copy it to your Xcode 7 Simulator SDK directory:
Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
Run xcodebuild -showsdks
in your terminal and observe your new Simulator SDKs.