我使用CocoaPods安装了DTCoreText(https://github.com/Cocoanetics/DTCoreText),但每次尝试运行模拟器或设备时都会出现错误!
ld: warning: directory not found for option '-L/Users/example/Desktop/ios/Pods/build/Release-iphoneos'
ld: warning: directory not found for option '-L/Users/example/Desktop/ios/Pods/build/Debug-iphoneos'
ld: library not found for -lPods-example
clang: error: linker command failed with exit code 1 (use -v to see invocation)
在我的“链接二进制文件库”中,“libPods”部分是红色的:
这里是我的构建设置:
项目的设置:
Pods的设置:
编辑:
我不确定问题出在哪里,但是当我删除所有DTCoreText和Cocoapods的内容并重新安装时,问题就解决了!