在构建时出现“警告:找不到用于选择的目录"错误 [英] 'warning: directory not found for option' error on build

查看:52
本文介绍了在构建时出现“警告:找不到用于选择的目录"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然,当我尝试构建它时,我的应用程序开始给我一个错误.这是我得到的错误:

All of a sudden my app has started giving me an error when I try to build it. This is the error I'm getting:

ld:警告:找不到选项'-L/Users/user/Documents/Developer/Alton-Towers-Times/build/Debug-iphoneos'的目录ld:文件太小(长度= 0)文件'/Users/user/Library/Developer/Xcode/DerivedData/Mouse_Times_Florida-eqhrhnbxmmkxtahdghmnvehbzbgt/Build/Intermediates/Mouse Times Florida.build/Debug-iphonesimulator/Mouse Times Florida WatchKit Extension.build/Objects-normal/x86_64/SecondInterfaceController.o',用于架构x86_64clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

ld: warning: directory not found for option '-L/Users/user/Documents/Developer/Alton-Towers-Times/build/Debug-iphoneos' ld: file too small (length=0) file '/Users/user/Library/Developer/Xcode/DerivedData/Mouse_Times_Florida-eqhrhnbxmmkxtahdghmnvehbzbgt/Build/Intermediates/Mouse Times Florida.build/Debug-iphonesimulator/Mouse Times Florida WatchKit Extension.build/Objects-normal/x86_64/SecondInterfaceController.o' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

自上次设法使其运行以来,我真正所做的只是更改捆绑软件ID,并且还更改了应用程序名称.我尝试了一些操作,包括删除派生数据,但似乎没有任何帮助.

Only thing I've really done since I last managed to get it to run was changing the bundle IDs and I also changed the app name. I've tried a few things including deleting the derived data, but nothing seems to have helped.

有人有什么主意吗?

推荐答案

我解决了此警告,删除了以下设置:"$(SDKROOT)/Developer/Library/Frameworks"

I solved this warning removing the following setting: "$(SDKROOT)/Developer/Library/Frameworks"

此选项位于设置->构建设置->搜索路径->框架搜索路径

This options is located in Settings -> Build Settings -> Search Paths -> Framework Search Paths

设置位置

删除此选项后,我的项目将继续编译并正常工作.

My project continues compiling and working fine, after removing this option.

这篇关于在构建时出现“警告:找不到用于选择的目录"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆