Linking Error in Xcode

前端 未结 12 1124
予麋鹿
予麋鹿 2021-01-11 11:40

I am getting this error after adding the libxml2.2.dylib file

 Linking /Users/Biranchi/Desktop/Funmovies TabBarController/build/Debug-iphonesimulator/funmovi         


        
相关标签:
12条回答
  • 2021-01-11 12:23

    Try Product -> Clean. Worked for me.

    0 讨论(0)
  • 2021-01-11 12:23

    How to add as a compiled source

    Make sure if you have external classes they are added in the compile sources. I had the same error when i was trying to import a certain class. To fix it goto build phases and add it into the compiled sources.

    0 讨论(0)
  • 2021-01-11 12:23

    I had a similar problem when building a project but this time with the file timbreID.c

    arm-apple-darwin10-gcc-4.2.1: timbreID.c: No such file or directory
    Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
    

    After several attempts I finally looked into the 'Targets' on my XCode project and realized that the file timbreID.c was red (= not found). I right-clic on it and chose the new path manually.

    After that: build succeeded!!

    0 讨论(0)
  • 2021-01-11 12:28

    just remove the libz1.2.3 and add the libz1.2.5 library to your build phase.

    0 讨论(0)
  • 2021-01-11 12:28

    I had the same problem and I went on checking the target info

    In the library search paths there was this entry, "$(DEVELOPER_DIR)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/lib"

    I removed it and the app WORKED!!!

    0 讨论(0)
  • 2021-01-11 12:33

    I was getting the same error even though none of the files in the navigation pane were red. Turns out I refactoring the name of a class throws the xcode path locations off. The solution that worked for me was to select the .h and .m files one at a time, set the location to "Absolute Path" (in the right hand menu, leftmost tab) and then browse to its location in the file system.

    0 讨论(0)
提交回复
热议问题