Vaishali Modi
Vaishali Modi

Reputation: 654

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. iPhone with iOS 6 and Xcode 4.2 issue

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.

ld: file not found: /usr/lib/system/host/libdyld.dylib for architecture i386

I don't know why m getting this error.Please help me out.

Upvotes: 1

Views: 340

Answers (3)

Tommy
Tommy

Reputation: 1

The problem here is that libdyld.dylib does not exist on your system. 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.

However, it looks like one might get around this by using one of the libdyld.dylib files that are in that xcode dmg file. 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.

Upvotes: 0

Julian
Julian

Reputation: 9337

To have an iOS7 simulator, and be able to build for this version, you have to upgrade to XCode 5.

Upvotes: 5

Suhit Patil
Suhit Patil

Reputation: 12023

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. 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

Upvotes: 0

Related Questions