0

Actually I have started my application in xcode 4.3.3 in 4 months back,

Now our requirement is to run the app in iOS 6.0

For that purpose I upgraded my xcode to xcode 4.5.2 wich supports iOS 6.0.

those apps started in xcode 5.5.2 are executed in device without any issues.

But those apps Started in Xcode 4.3.3 and bellow are not executed while im testing in Device (Any ios).

(no issues in simulator..)

I got Error "Apple Mach O Linker Error"

clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have tried following steps, even I didn't run the app..

Disconnect your device.

  1. Disconnect the device.
  2. Quit xcode (Don't just simply close the window, quit it)
  3. Delete derived data folder (~/Library/Developer/Xcode/DerivedData/ gbrvhlvwmpiobxdujegtghggrffp - or something like that)
  4. Now start Xcode, connect device and run the project.
Cœur
  • 37,241
  • 25
  • 195
  • 267
iOS dev
  • 2,254
  • 6
  • 33
  • 56

1 Answers1

0

I had the same issue. Just accidentally deleted a .m file, while .h was in the project. The

problem disappeared when I've restored the .m file. Also sometime the problem was that in

XCode 4, the dependencies do not assume the architecture settings of the main project, as

they previously did in XCode. I had to go through all of my dependencies setting them for

the correct architecture.

Vishal
  • 8,246
  • 6
  • 37
  • 52
  • See these discussion & check: http://stackoverflow.com/questions/10116427/apple-mach-o-linker-id-error & http://stackoverflow.com/questions/5329001/apple-mach-o-linker-error-when-compiling-for-device – Vishal Mar 06 '13 at 05:38
  • Check your all framework that you need...Sometimes required framework are missing... – Vishal Mar 06 '13 at 05:41