简体   繁体   English

xcode 3.2.3编译器警告

[英]xcode 3.2.3 compiler warning

'ld: warning: directory '/Volumes/Skiiing2/CD/ViewBased/Unknown Path/System/Library/Frameworks' following -F not found' 'ld:警告:目录-/ Volumes / Skiiing2 / CD / ViewBased / Unknown Path / System / Library / Frameworks'-找不到-F

I am getting this error for quite some time now... 我现在已经有一段时间出现此错误了...

I also upgraded to latest xcode 3.2.3 with latest iphone os 4.0 but still getting this error. 我还升级到了最新的iphone os 4.0的最新xcode 3.2.3,但仍然收到此错误。 I found some posts about it telling to remove invalid framework search path from project settings, but my framework search path shows empty path. 我发现一些有关它的文章,这些文章告诉您从项目设置中删除无效的框架搜索路径,但是我的框架搜索路径显示为空路径。

Any ideas? 有任何想法吗? Is this xcode bug or invalid project settings file? 这是xcode错误还是无效的项目设置文件?

It looks like its trying to find a non-existant volume, possibly a removable one. 似乎在尝试查找不存在的卷,可能是可移动的卷。 It was most likely something that you used in the past but then got rid off. 这很可能是您过去使用过的东西,但后来被淘汰了。

Empty the Xcode cache under Xcode>Empty Caches... and then clean all targets. Xcode>Empty Caches...下清空Xcode缓存,然后清除所有目标。 That usually stops Xcode from looking for old files. 这通常会使Xcode停止寻找旧文件。

Check both your Project settings and your Target settings (by selecting the target in the left pane and doing Get Info). 检查项目设置和目标设置(通过在左窗格中选择目标并执行获取信息)。 Then search for any build settings which mention "Frameworks" and use the cog icon menu to remove any definitions at the Target level. 然后搜索任何提及“ Frameworks”的构建设置,并使用嵌齿轮图标菜单删除“目标”级别的所有定义。

Thanks lucius and TechZen for your kind help. 感谢lucius和TechZen的帮助。

I couldn't find anywhere the problematic setting within xcode project settings view... but finally(!) found a way to fix it as follows. 我在xcode项目设置视图中找不到任何有问题的设置...但是,终于(!)找到了一种修复它的方法,如下所示。

What I did was opening the .pbxproj file from my Windows XP computer using Word Pad (much better formatting than Notepad) and simply remove the invalid 'skiiing2' from FRAMOWORK_SEARCH_PATHS section. 我所做的是使用Word Pad从Windows XP计算机中打开.pbxproj文件(格式比记事本好得多),然后只需从FRAMOWORK_SEARCH_PATHS部分中删除无效的'skiiing2'。 Of course you need to quit xcode before doing that and clean your project. 当然,您需要先退出xcode并清理project。

Do that with caution since you can easily corrupt this file and I'm sure recommending to backup this file before making any changes. 请谨慎行事,因为您很容易损坏该文件,因此我建议您在进行任何更改之前先备份此文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM