---
title: "在Xcode中安装低版本的SDK和模拟器"
author: "vbtboy"
date: "2013-10-14T14:46:38Z"
tags: []
categories: ["移动开发"]
slug: "xcode-sdk"
draft: false
lastmod: "2013-10-14T14:46:38Z"
id: 1956696
url: "https://vbtboy.iteye.com/blog/1956696"
---

以xcode4.6为例：前提安装了xcode 4.6 并且交xcode.app复制到应用程序目录下  
下载之前版本的dmg安装包，然后双击dmg  右键Xcode.app “显示包内容” 然后：  
Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs  将此目录下的对应版本文件夹拷贝到  
现在xcode4.6 的对应目录中： /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs 

# simulator 安装

 

 

5.切换到桌面 finder ---&gt;前往--&gt;文件夹输入 /Volums/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs

6.复制 iPhoneSimulator5.1.sdk文件夹到如下目录

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs

 

7.在Finder中推出Xcode卷

8.然后重新启动 xcode 4.6

    会提示安装一个兼容旧版本插件.

9.重新启动后就可以在新建工程--&gt;builder setting中 base sdk看到 ios 5.1

10.模拟器也会多出两个 iphone 5.1 ipad 5.1