linker command failed with exit code 1 (use -v to see invocation)

The problem is that there is no problem in using CocoaPods to add a third-party framework. Once the third-party is referenced, an error will be reported

 linker command failed with exit code 1 (use -v to see invocation)

Manually add the dependency library to the .m resource file of the referenced class that reports the error as follows

Build Phases → Link Binary With Libraries 

The problem can be solved, but this is very troublesome and not advanced, so try again as follows

Add the following to Build Settings Linking → Other Linker Flags

$(inherited)

Compilation solves the problem

Guess you like

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