Suddenly I am not able to build for the iphone simulator

╄→гoц情女王★ 提交于 2019-12-05 04:29:08
John Cromartie

I just solved this issue for myself today. See my answer here: Build Error - missing required architecture i386 in file

It's trying to link against the iPhoneOS.platform when it should be linking to the iPhoneSimulator.platform

When you expand the Link build result, this is what your should see:

setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk

I can only suggest playing with the Base SDK and iPhone Deployment Target properties of your target's build settings and your project's build settings.

Other than that, I'd guess it's a problem with your XCode install rather than your project.

It is very frustrating. Are you able to compile other projects to the simulator?

In one case, I ended up starting a whole new project and bringing all my assets and files in. That sounds really bad, but it was painless compared to trying to isolate whatever it was I had done to break it.

Have you downloaded the new Xcode from the Apple iPhone Developer Center/page/thing? The Xcode shipped with Snow Leopard does not come with the iPhone libraries; those are only available after downloading the awesomely sized 2+gig developer package.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!