iPhone 模拟器使应用程序在“构建和运行”上保持运行
我的 iPhone 模拟器有问题。从昨天开始,当我按下“构建”并运行时。
- Xcode 构建项目
- 模拟器关闭正在运行的应用程序
- 模拟器以与关闭相同的状态打开正在运行的应用程序(多任务处理?)
旧版本继续运行,我必须退出模拟器才能运行新版本。 我尝试清理项目,并用新项目进行测试。同样的问题。重新启动一切。
运行 Xcode 3.2.4 / 4.1 SDK。
I have a problem with my iPhone simulator. Since yesterday when I press Build and run.
- Xcode builds the project
- Simulator closes the running app
- Simulator opens the running app in same state as it closed (multitasking?)
The old build keeps running, I have to quit the simulator before i can run the new build.
I tried cleaning the project, tested with a new project. Same problem. Rebooted everything.
Running Xcode 3.2.4 / 4.1 SDK.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我对同样的问题感到疯狂。似乎有些人有这个问题,有些人没有。不知何故,我偶然发现了这一点: http://openradar.appspot.com/8915498
基本上,它说如果您在与 xCode 应用程序不同的卷上运行 iPhone 模拟器,更新模拟器时出现一些问题,并且每次都必须重新启动。
我几乎忽略了修复,因为我只使用一个卷,但我确实使用 filevault 作为我的主文件夹。由于 Library/Application Support/iPhone Simulator 位于我的 /Users/[me] 目录中,因此我猜它是不同的卷。
所以,我所做的是:
1)转到/Users/[Me]/Library/Application Support/iPhone Simulator并重命名为“old-iPhone Simulator”(只是为了将其移开而不删除)
2)转到/Library/Application Support 并创建一个名为“iPhone Developer”的新文件夹
3) 打开终端并输入:
ln -s "/Library/Application Support/iPhone Simulator" "/Users/[Me]/Library/Application Support /iPhone模拟器”
中提琴!对我来说就像一个魅力!现在,iPhone 模拟器会向我显示每次按下“构建并运行”时所做的更改,而无需任何其他麻烦!耶!
3)
I was going crazy with the same problem. It seems that some people have this problem and some don't. Somehow I stumbled onto this: http://openradar.appspot.com/8915498
Basically, it says that if you're running the iPhone simulator on a different volume than the xCode app, there is some problem with updating the simulator and you have to restart each time.
I almost ignored the fix because I only use one volume, but I DO use filevault for my home folder. Since the Library/Application Support/iPhone Simulator was in my /Users/[me] directory, I guess it's a different volume.
So, what I did was:
1) Go to /Users/[Me]/Library/Application Support/iPhone Simulator and renamed to "old-iPhone Simulator" (just to get it out of the way without deleting)
2) Go to /Library/Application Support and create a new folder called "iPhone Developer"
3) Open Terminal and enter:
ln -s "/Library/Application Support/iPhone Simulator" "/Users/[Me]/Library/Application Support/iPhone Simulator"
Viola! Worked like a charm for me! Now iPhone simulator shows me the changes I make every time I push "Build and Run" without any other hassles! Yay!
3)
我向我的目标添加了一个运行脚本来解决这个问题,
这不是一个正确的解决方案,但目前可以使用。
I added a Run Script to my target to work arround the issue
Not a proper fix, but works for now.