最新消息:服务器现已从linode换到fzhost.net,且主题已从retina 0.2换为大前端D8

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

iOS crifan 42浏览 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,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
53 queries in 0.604 seconds, using 13.00MB memory