Home » IOS » Xcode framework cannot identify the headers direct...

Xcode framework cannot identify the headers directory problem in IOS

problem phenomenon

framework is a component of IOS developers often used to, but in some cases to third party framework, into their own projects will find the Headers directory is not recognized, compile errors, for example here: http://tieba.baidu.com/p/4405458569#

"
Cause of the problem
The directory structure of

common IOS framework is:



  • sdk.framework directory

    • Headers directory

    • SDK file


but when some third party framework is generated, the script has a problem, and the resulting directory structure is:



  • sdk.framework directory

    • Headers soft link

    • SDK soft link

    • Versions directory

      -current soft link

      -A directory

      • Headers directory

      • SDK file


When

soft links move on different computers, there may be paths that do not exist, so that Xcode cannot recognize the Headers directory,.


Solve

moves the Headers and SDK files under sdk.framework/Versions/A/ to the sdk.framework directory, deletes other files, and compiles them to.


Latest