在我用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)
在我的"Link Binary With Libraries"中,"libPods"部分为红色:
这是我的构建设置:
我的项目设置:
我的Pod的设置:
编辑:
我不确定问题是什么,但是当我删除所有DTCoreText和Cocoapods的东西并重新安装所有东西时我解决了它!