Header files are not added using a set of frameworks in ios xcode

I'm so new to xcode, I have a voice access structure with the following files as shown in the image below

enter image description here

Now, when I add this framework to my xcode project, the header files are displayed empty, as shown below

enter image description here

and I end up with the assembly error 'SpeechKit / SpeechKit.h' file not found 'lexical preprocessor. What is the problem? How can I solve this?

+6
source share
5 answers

I had the same problem. The symbolic link header is damaged (others too), you must replace it with a valid Symlink.

You can use the ln -s command for each Symlink of your framework or use my script, which can be found here: https://gist.github.com/spawnrider/6088294#file-fix_symlinks_fmk_ios-sh

+7
source

Another newbie to Xcode. I also spent a lot of time on this issue. My script is the framework sent to me by a colleague as a zip file.

I unpacked it on windows and copied it to my Mac. Wrong move. I had to unzip it on the Mac itself. If you're wondering why your “header” is not a folder, then this is your answer.

+4
source

Your structure has not been compiled successfully. You need to add the framework to the "Compile Sources" build phase.

Go to your target settings and select the fourth tab (build step). Open the “Compile Sources” phase and click on the “+” symbol and add a framework. The vocabulary / preprocessor problem “SpeechKit / SpeechKit.h file not found” should now be resolved.

+2
source

The correct answer is that you must ensure that the files are compiled correctly. In my case, I had to download the SDK / Framework of my choice again.

  • Delete all voice call files in the project and from disk
  • Download it again from source
  • Add it to your project
  • Make sure you link the Framework (Build Phases-> Link Binary to libraries)

That should do it. I do not know why it was not composed correctly. But since I followed the steps above, the Framework was compiled correctly and the project was built.

+2
source

What I found is that if you unzip any downloaded sample code and get any lexical / preprocessor problem, just add this framework again by following these steps. Go to the target settings and select the fourth tab (build step). Open the “Compile Sources” phase and click on the “+” symbol and add the framework by clicking (add another from the sample code folder).

0
source

Source: https://habr.com/ru/post/945150/