CocoaPods linking "clang: error: no such file or directory:" dynamic_lookup "and" suppress ""
I am getting clang error when my project tries to link.
I can see the following flags in the Pods.debug.xcconfig and Pods.release.xcconfig files
-undefined dynamic_lookup suppress
And then an error appears in the problem navigator
clang: error: no such file or directory: 'dynamic_lookup'
clang: error: no such file or directory: 'suppress'
I tried to delete the following files if it was generated code causing problems
Pods/ project.xcworkspace pods.lockfile
and restart pod install
to re-create the workspace and configuration files. The error still appears!
source to share
Today I came across something similar to the Cocoapod project after removing it from a podcast. for some reason my workspace was still referencing the framework (now removed), so I manually removed the referencing from my build settings> Other linker flags.
I got this error later and the problem was in the other linker checkboxes that it had -framework
and on the next line it had -framework
again. When I manually deleted the framework, I did not delete the corresponding line -framework
above it, so the two lines -framework
were on adjacent lines and could not find the next structure (imported from CocoaPods).
Hope this helps someone someday.
source to share