lexical or preprocessor issue file not found occurs while archiving?

前端 未结 13 1254
难免孤独
难免孤独 2020-11-27 05:28

\"this

I am new to this iPhone development and i have almost completed my fi

相关标签:
13条回答
  • 2020-11-27 06:02

    For what it's worth, my problem was completely unrelated to the error Xcode was giving. I stumbled onto a solution by deleting the .h reference, compiling, adding the reference back and compiling again. The actual error then became evident.

    0 讨论(0)
  • 2020-11-27 06:04

    This happened to me after I renamed a file. For some reason it was still looking for the file with the old name. What I did was create the file that it was complaining about and added to the project. Then I did a Project->clean, then Project->Build and verified the error was gone. Then I selected the newly added files and deleted them. This removed all references and I no longer see the error.

    0 讨论(0)
  • 2020-11-27 06:05

    Few things to try, Ensure the Framework and all it's headers are imported into your project properly.

    Also in your Build Settings set YES to Always search user paths, and make sure your User header paths are pointing to the Framework.

    Finally, Build->Clean and Restart Xcode.

    Hope this helps !

    UPDATE: According to SDWebImage's installation, it's required you make a modification to Header Search Path and not User header paths, As seen below.

    enter image description here

    Have you done this as well? I suggest slowly, re-doing all the installation steps from the beginning.

    0 讨论(0)
  • 2020-11-27 06:08

    Delete the unit testing from your project follow the below steps this will solve the issue.

    select your project from the project navigator to open the project editor. From the target delete the test from the left side of the project editor and press the Delete key.

    0 讨论(0)
  • 2020-11-27 06:09

    In my case I was developing a framework and had a test application inside it, what was missing is inside the test application target -> build settings -> Framework Search Paths:

    • The value needed to be the framework path (the build output - .framework) which is in my case: "../FrameworkNameFolder/" - the 2 points indicates to go one folder up.

    Also, inside the test application target -> Build Phases -> Link Binary With Libraries:

    • I had to remove the framework file, clean the project, add the framework file again, compile and this also solved the issue.
    0 讨论(0)
  • 2020-11-27 06:19

    Spaces in a folder name in your header search path can cause this problem. Make sure the folders in your project do not have spaces in their names.

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