最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[已解决]Xcode中iOS的swift程序编译出错:Directory not found for option -L

iOS crifan 2772浏览 0评论
(null): Directory not found for option ‘-L/Users/crifan/dev/dev_root/daryun/JianDao/iOS-Client/JianDao/XMPPFramework/Vendor/facebook-ios-sdk/vendor/OCMock/Examples/iOS5Example/usr/lib’

搜:

swift Xcode Directory not found for option -L

Ray Wenderlich | Tutorials for Developers and Gamers

Xcode 7: "directory not found for option" warnings for /Frameworks folder · Issue #166 · Quick/Nimble · GitHub

xcode – directory not found for option – Upgrade Swift 2.0 – Stack Overflow

看到提示的是link阶段的,所以去找找

然后即可编译成功,没有警告了:

[总结]

此处编译警告是由于之前不小心给:

Build Settings中的Search Paths中添加了对应的:

Header Search Paths

Library Search Paths

中添加了对应的framework的搜索路径

而现在不需要对应的framework后,应该去去掉这些路径,即可消除编译警告。

转载请注明:在路上 » [已解决]Xcode中iOS的swift程序编译出错:Directory not found for option -L

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
84 queries in 0.631 seconds, using 22.11MB memory