Not able to build my project on xcode 4.2

限于喜欢 提交于 2019-12-02 00:54:53

It looks like linker is looking for a start function as entry point in crt1, but didn't find it. You can try adding a linker flag,

 -e symbol_name
    Specifies the entry point of a main executable.  By default the entry name is "start" which
    is found in crt1.o which contains the glue code need to set up and call main().

from the man page of ld.

The first error means the linker (ld) in Xcode 4.2 encountered an option (-A) that is no longer supported.

If you no longer need to build the same Xcode project in Xcode 3.2.6 then

  1. check your Project's Build Settings to ensure you don't have '-A' specified

    .
  2. click on the "Validate Settings" button

    to identify any other project settings that may cause problem.

Your second error may be caused by Xcode 4.2 defaulting to armv7 build architecture that is unlisted your Xcode project (because it was built using Xcode 3.2.6). If you need to build binaries for armv6, then add that to your build architecture list.

Dattatray Deokar

Check if you are using following flags, it will cause that error -nostdlib and -noconfig.

I was able to fix this issue by updating the 'iOS Development Target' in my project's target > Build Settings

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