Can't find the method when making static library with class file

  When using the framework static library made by myself, which contains class files, when importing, it reports an error saying that the method declaration cannot be found.

  solution:

  Add target --> Build setttings --> linking --> Other linker flags in the Framework file and add -Objc

  In the introduction of the Framework project, target --> Build setttings --> linking --> Other linker flags add  -all_load or -force_load

  Merge real machine and emulator Framework

  lipo -create /Users/.../iPhone/ECSecurity.framework/ECSecurity /Users/.../Simulator/ECSecurity.framework/ECSecurity -output /Users/.../Common/ECSecurity

  Just replace the  ECSecurity file.

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325274302&siteId=291194637
Recommended