40

I created iphone/ipad app that was working well by xcode 4 and iOS6 and I installed xcode 5 and I'm trying to run my app, but it now gives me the following error

enter image description here

ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

How can I fix this? hope anyone help me. Thanks in advance.

Eman87
  • 2,735
  • 7
  • 36
  • 53

3 Answers3

74

For me, I also need to set up the Deployment Target from older version 3.0 to 7.0.

JerryZhou
  • 4,566
  • 3
  • 37
  • 60
  • What does it mean to set the deployment target to 7? – tofutim Jan 07 '14 at 20:57
  • @tofutim that means change you application's lowest support to iOS7.0. So the build will not check the stuff that was overdue on the iOS 7.0+. And this setting you can change in the General->Deployment Info – JerryZhou Jan 08 '14 at 02:42
41

I solved it. I was forgot to change the deployment target to 7.0 and it was 3.

Eman87
  • 2,735
  • 7
  • 36
  • 53
  • 4
    Its not necessary to post a separate answer(Unless the solution is differ from all the post of your question) once your problem get solved. You should accept user868754 answer. – Ganapathy Nov 27 '13 at 07:00
  • Updating deployment target did the trick. You can find it in Project > Targets > General > Deployment Info > Deployment Target – David Douglas Dec 09 '13 at 17:22
  • 4
    Its bad by giving accept answer to your own answer. You degrade @jerryZhou. – Ramdhas Apr 05 '14 at 05:40
22

You need to change the Architecture is armv7 only.

enter image description here

if compiler is GCC, change to LLVM also,

enter image description here

And also need to change the deployment target 3.0 to 7.0.

karthika
  • 4,085
  • 3
  • 21
  • 23
  • I done both of these, done clean and run.. It still gives me the same error. :S – Eman87 Oct 03 '13 at 11:45
  • My architecture is (armv7, armv7s) – Eman87 Oct 03 '13 at 11:46
  • remove armv7s. i'm also facing this issue. i have added armv7 only, it is working for me. – karthika Oct 03 '13 at 11:47
  • when I added armv7 only it gives me many errors Apple LLVM 5.0 errors. :S – Eman87 Oct 03 '13 at 11:51
  • are you set Yes for "Build Active Architectue Only"? – karthika Oct 03 '13 at 11:53
  • it now gives me `ld: warning: ignoring file /Users/dt4it/Documents/iktab19/GTKeyboardHelper.framework/GTKeyboardHelper, missing required architecture x86_64 in file /Users/dt4it/Documents/iktab19/GTKeyboardHelper.framework/GTKeyboardHelper (3 slices) ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)` – Eman87 Oct 03 '13 at 12:29
  • look at this screenshots: http://dt-works.com/emy/Screen%20Shot%202013-10-03%20at%202.39.03%20PM.png http://dt-works.com/emy/Screen%20Shot%202013-10-03%20at%202.39.29%20PM.png – Eman87 Oct 03 '13 at 12:42
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/38550/discussion-between-karthika-and-eman87) – karthika Oct 03 '13 at 12:54
  • First screen shot is wrong. Double click the architecture, click - button to remove existing one, and click + button to add armv7 alone.. – karthika Oct 03 '13 at 13:01
  • could I add you on skype and share screens with you, please ?? – Eman87 Oct 03 '13 at 13:05
  • http://dt-works.com/emy/Screen%20Shot%202013-10-03%20at%203.26.39%20PM.png I done it as armv7 and still gives me the same error – Eman87 Oct 03 '13 at 13:27
  • http://dt-works.com/emy/Screen%20Shot%202013-10-03%20at%2010.26.59%20PM.png - still the same error :( – Eman87 Oct 03 '13 at 20:28
  • 3
    I solved it. I was forgot to change the deployment target to 7.0 and it was 3. – Eman87 Oct 06 '13 at 20:38
  • +1, Thanx this answer has helped me in my question here http://stackoverflow.com/questions/23057943/undefined-symbols-for-architecture-i386-for-opencv-project/23061056?noredirect=1#comment35239632_23061056 –  Apr 15 '14 at 10:11