Xcode compilation error overview:
clang: error: no such file or directory: ‘CoreGraphics’
The general reason is that the import of link library content is missing. Under this kind of investigation, target – build phases – link library with library can basically solve the problem
Or the library or framework searchpath is not set in buildsettings
But… Today’s situation is a bit coquettish
Whether it is to re clone project or to delete and re import the class library that reported the error, it can not be solved
Moreover, after deleting, the framework in link bank with library will execute the error reporting information in the order of index and shoot the head library 😂
It took nearly three hours to find out
Is there such an insignificant option in boldsettings – other link flag
“-weak_ framework”
Before this problem did not appear, GIT only did a reset operation appeared
My colleague also had this modifier in his project, but he didn’t report an error, so he deleted it and added it
EH ha ha, the project of my colleague has also reproduced this problem
EMM… My predecessor called outsourcing… The pit left is really… Strong enough 👍
Goole couldn’t find this… Or did Du Niang find the answer
Portal:
https://stackoverflow.com/questions/3661300/what-is-a-weak-framework-reference
The purpose of this modifier is to make the framework compatible with more different versions of the system, and make weak reference to the framework
The key point is “there might also be some performance differences in start up time using apps with weak references to launch much lower.”
It may cause the program to start slowly, which is affected by the product 🐶 Know backhand is a slap