在网络用户帐户上运行 iOS 模拟器
我帮助管理一个基于 Mac 的图形实验室,并为我所在大学的艺术系教授网页设计。我安装了Xcode和iPhone SDK/模拟器,以便学生可以体验在移动设备(例如iPhone或iPad)上测试网站。当以计算机的本地管理员用户身份登录时,模拟器工作得很好,但是当使用学生帐户之一(由 Snow Leopard 服务器托管)或任何其他网络帐户登录时,iOS 模拟器无法启动。
模拟器开始启动(并且应用程序确实打开),但它给了我以下消息:
模拟应用程序退出。
单击“重新启动”重试。
我的选项是“退出”、“切换 SDK...”或“重新启动”。
模拟器可以使用网络帐户启动吗?如果是这样,有人知道怎么做吗?
客户端计算机运行 Mac OS 10.6.8,服务器也运行 10.6.8。我正在使用 Xcode 4.2 和 iOS 5 SDK(适用于 Snow Leopard)。
提前致谢。
I help manage a Mac-based graphics labs and I teach web design for my university's art department. I installed Xcode and the iPhone SDK/simulator so that the students can have experience testing websites on mobile devices (such as the iPhone or iPad). The simulator works just fine when logged in as the local admin user for the computer, however the iOS simulator fails to launch when logged in with one of the student accounts (which are hosted from Snow Leopard Server) or any other networked account.
The simulator begins to launch (and the application does open) but it gives me this message:
The simulated application quit.
Click Relaunch to try again.
My options are "Quit", "Switch SDK..." or "Relaunch".
Is it possible for the simulator to launch using a network account? If so, does anybody know how?
The client computers are running Mac OS 10.6.8 and the server is also on 10.6.8. I'm using Xcode 4.2 with the iOS 5 SDK (for Snow Leopard).
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了完全相同的问题,由于某种原因,当 ~/Library/Application Support/iPhone Simulator 目录不在本地卷上时,iPhone 模拟器不喜欢它。
这是修复/解决方法:
使用 /Developer/Local 目录是完全任意的,只要您选择与 iPhone 模拟器位于同一驱动器上的位置,它就可以工作。当然,/Developer/Local/$USER 也应该具有正确的权限,以便 $USER 可以实际使用它。
干杯
I had the exact same problem, for some reason the iPhone Simulator doesn't like it when the ~/Library/Application Support/iPhone Simulator directory isn't on the local volume.
Here's the fix/workaround:
Using the /Developer/Local directory is totally arbitrary, as long as you choose a place on the same drive as the iPhone simulator it will work. Of course, /Developer/Local/$USER should also have the correct permissions so $USER can actually use it.
Cheers
似乎每次新的 OS X 和 Xcode 版本发布时,在网络主目录上运行 Xcode 都会出现一些问题。
我们解决这个问题的方法是让学生在 Xcode 设置中将其派生数据位置设置为
/tmp/username
。当他们尝试构建项目时,这将创建该文件夹。然后我们可以放置一个符号链接,~/Library/Developer/CoreSimulator -> /tmp/username
这样 iOS 模拟器就可以为他们工作了。此外,将派生数据放在
/tmp/username
中确实可以提高构建性能和可靠性。我认为没有多少人在这种配置中使用 OS X 和 Xcode;这在大学计算机实验室中很常见,您需要让学生能够登录任何工作站并拥有自己的环境。如果他们每年不改变一些新的东西来破坏 Xcode,导致我们不得不重新修复它,我不会太介意。
It seems that with every new OS X and Xcode release, something else breaks with regard to running Xcode on network home directories.
Our method of getting around this was to have students set their Derived Data location to
/tmp/username
in Xcode settings. This will create that folder when they try to build a project. Then we can place a symbolic link,~/Library/Developer/CoreSimulator -> /tmp/username
and this way the iOS Simulator will work for them.Also, having Derived Data in
/tmp/username
really improves build performance and reliability.I don't think many people use OS X and Xcode in this configuration; it's very common in university computer labs where you need to have students able to log into any workstation and have their own environment. I wouldn't mind it so much if they didn't change something new every year which breaks Xcode causing us to have to fix it all over again.