简体   繁体   English

Xcode 4.2或4.6的iOS 7部署

[英]iOS 7 deployment with Xcode 4.2 or 4.6

I have the Xcode version 4.2( can upgrade unto 4.6 ).I want to run ios7 application in my simulator.So I searched on stack overflow and found this. 我有Xcode版本4.2(可以升级到4.6)。我想在模拟器中运行ios7应用程序,所以我在堆栈溢出时进行搜索并找到了它。 iPhone with iOS 6 and Xcode 4.2 issue 具有iOS 6和Xcode 4.2问题的iPhone

i have tried this technique for ios 7 but i am getting Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1 error dont know why please help me out. 我已经在ios 7上尝试了此技术,但是我得到了Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang失败,退出代码为1,错误不知道为什么请帮帮我。

ld: file not found: /usr/lib/system/host/libdyld.dylib for architecture i386 ld:找不到文件:/usr/lib/system/host/libdyld.dylib用于体系结构i386

I don't know why m getting this error.Please help me out. 我不知道为什么会收到此错误。请帮帮我。

要拥有iOS7模拟器并能够为此版本构建,您必须升级到XCode 5。

To develop for iOS 7 you need to upgrade to Xcode 5. It's always the best practice is to use the latest tools as suggested by the apple. 要为iOS 7开发,您需要升级到Xcode5。最佳实践通常是使用苹果建议的最新工具。 As per this link Starting February 1, new apps and app updates submitted to the App Store must be built with the latest version of Xcode 5 and must be optimized for iOS 7 按照此链接, 从2月1日开始,提交给App Store的新应用和应用更新必须使用最新版本的Xcode 5构建,并且必须针对iOS 7进行优化。

The problem here is that libdyld.dylib does not exist on your system. 这里的问题是您的系统上不存在libdyld.dylib。 The iPhoneSimulator7.0.sdk folder which you have probably copied into your system from a downloaded xcode_5.0.2.dmg or similar contains a symlink to /usr/lib/system/libdyld.dylib which probably only exists on newer versions of OSX. 您可能已从下载的xcode_5.0.2.dmg或类似版本复制到系统中的iPhoneSimulator7.0.sdk文件夹包含指向/usr/lib/system/libdyld.dylib的符号链接,该符号链接可能仅存在于较新的OSX版本中。

However, it looks like one might get around this by using one of the libdyld.dylib files that are in that xcode dmg file. 但是,似乎可以通过使用xcode dmg文件中的libdyld.dylib文件之一来解决此问题。 I did the following, which "fixed" the problem for me: 我做了以下工作,为我“解决”了这个问题:

cd /usr/lib/system
sudo cp /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/system/libdyld.dylib .

This is of course a dirty, dirty hack, and if you want to do this the right way, you should upgrade to Xcode 5, as the other commenters have helpfully suggested. 当然这是一个肮脏的技巧,如果您想以正确的方式进行操作,则应升级到Xcode 5,如其他评论者所建议的那样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM