iOS 7 模拟器可以与 Xcode 4.6.3 一起使用吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17556044/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:35:31  来源:igfitidea点击:

Can the iOS 7 Simulator work with Xcode 4.6.3?

xcodeios-simulatorxcode4.6

提问by ort11

Tried copying over the iOS 7.0 Simulator to the Xcode 4.6.3 bundle in the correct location. It does show up in the Device List, and the simulator starts, but then pinwheels.

尝试将 iOS 7.0 模拟器复制到正确位置的 Xcode 4.6.3 包。它确实出现在设备列表中,并且模拟器启动,但随后风车。

I had to hard stop the simulator and Xcode. I'm mainly just curious, but wanted to know if this should work or can work.

我不得不硬着头皮停止模拟器和 Xcode。我主要只是好奇,但想知道这是否可行或可行。

回答by ort11

Here is how to run the IOS 7.0 Simulator under the Xcode 4.6.3 version.

下面介绍如何在 Xcode 4.6.3 版本下运行 IOS 7.0 Simulator。

0) Make a backup point for the Mac

0) 为 Mac 做一个备份点

1) Download and install the Xcode 5 Beta X

1) 下载并安装 Xcode 5 Beta X

2) Make sure that the IOS 7 simulator is working for Xcode 5 with IOS 7 Simulator

2) 确保 IOS 7 模拟器适用于带有 IOS 7 模拟器的 Xcode 5

3) Stop all simulators and Xcodes

3) 停止所有模拟器和 Xcode

3.5) Make duplicate of the current Xcode 4 and do 4) to the duplicate app bundle

3.5) 复制当前的 Xcode 4 并执行 4) 到复制的应用程序包

4) Copy

4) 复制

/Applications/Xcode5-DP3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/

/Applications/Xcode5-DP3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/

to

/Applications/Xcode copy.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/

/Applications/Xcode copy.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/

5) Start the proper simulator in 7.0 mode using Xcode 5 and a sample app, etc.

5) 使用 Xcode 5 和示例应用程序等在 7.0 模式下启动正确的模拟器。

6) Stop Xcode 5

6)停止Xcode 5

7) Start Xcode 4 COPYand choose the same 7.0 simulator and run your app (Xcode 4 is not "smart" enough to start the 7.0 simulator).

7) 启动 Xcode 4 COPY并选择相同的 7.0 模拟器并运行您的应用程序(Xcode 4 不够“智能”以启动 7.0 模拟器)。

8) Should show up in the 7.0 simulator

8) 应该出现在 7.0 模拟器中

回答by smakstr

Simple!

简单的!

Open the iOS7 simulator from the XCode 5 Pacakage folder

从 XCode 5 Packakage 文件夹中打开 iOS7 模拟器

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

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

Keep the iOS7 Simulator open. Now Open your XCode 4.6 build your project with Simulator selected. The app will be now opened in the iOS7 Simulator.

保持 iOS7 模拟器打开。现在打开你的 XCode 4.6,在选择模拟器的情况下构建你的项目。该应用程序现在将在 iOS7 模拟器中打开。

If the app quits or not running, Try Reseting the Simulator contents or Clean the project and keep trying. It works for me.

如果应用程序退出或未运行,请尝试重置模拟器内容或清理项目并继续尝试。这个对我有用。

回答by bkbeachlabs

Nope. iOS7 only works with Xcode 5 DP.

不。iOS7 仅适用于 Xcode 5 DP。

回答by user3119003

Here is another way to run the IOS 7.0 Simulator under the Xcode 4.6.3 version, after copyint it to the right location described above:

这是在 Xcode 4.6.3 版本下运行 IOS 7.0 Simulator 的另一种方法,将其复制到上述正确位置后:

  • Start XCode 5 running a sample app within the iOS simulator
  • Change settings of the simulator to keep it in dock
  • Quit XCode 5
  • Change requested hardware in iOS simulator which is still running
  • Start XCode 4.6.3 running your app within the iOS simulator after selecting the hardware set within the simulator - they must be equal.
  • 启动 XCode 5 在 iOS 模拟器中运行示例应用程序
  • 更改模拟器的设置以将其保持在 Dock 中
  • 退出 XCode 5
  • 在仍在运行的 iOS 模拟器中更改请求的硬件
  • 在模拟器中选择硬件集后,启动 XCode 4.6.3 在 iOS 模拟器中运行您的应用程序 - 它们必须相同。

That′s it !

就是这样 !

Furtheron you only need to start the simulator first, set the requested hardware, start XCode 4.6.3 with equal hardware set in the simulator and RUN.

此外,您只需要先启动模拟器,设置请求的硬件,在模拟器和 RUN 中设置相同硬件的情况下启动 XCode 4.6.3。

回答by Juan Carlos Ospina Gonzalez

Simpler answer to run a Xcode 4 project on iOS7:

在 iOS7 上运行 Xcode 4 项目的更简单答案:

  1. Backup your 4.6 project. (either physical backup or commit to github or svn)
  2. Open your project in Xcode 5 DP
  3. Xcode 5 will make changes to the files, but that's OK because you made a backup
  4. Run the app with Xcode5 and iOS7
  5. When you are done, restore your project with the backup you made earlier
  6. ???
  7. Profit
  1. 备份您的 4.6 项目。(物理备份或提交到 github 或 svn)
  2. 在 Xcode 5 DP 中打开您的项目
  3. Xcode 5 将对文件进行更改,但没关系,因为您做了备份
  4. 使用 Xcode5 和 iOS7 运行应用程序
  5. 完成后,使用您之前所做的备份恢复您的项目
  6. ???
  7. 利润