生成DSYMFile警告:无法打开目标文件
背景: 我上次在 PPC 计算机上使用 xcode v3.1 在 10.5 上构建了一个项目。它是针对 10.4 SDK 构建的。我现在有一台装有 10.6 版本和 Xcode v3.2.1 的 MacBook。我用 xcode 安装了 10.4 SDK。所以现在我想在10.6的intel芯片上构建该项目。我首先收到构建错误,因为我的 gcc 设置版本错误,因此我更改构建设置以使用 gcc 4.0。
问题: 现在,当我构建项目时,我收到以下警告: 生成 DSYMFile "build/Release/What's Keeping Me?.app.dSYM" "build/Release/What's Keeping Me?.app/Contents/MacOS/What's Keeping Me?" cd "/Users/hmcshane/Development/ Cocoa Projects/是什么让我坚持?" /Developer/usr/bin/dsymutil “/Users/hmcshane/Development/ Cocoa Projects/什么在阻止我?/build/Release/什么在阻止我?.app/Contents/MacOS/什么在阻止我?” -o "/Users/hmcshane/Development/ Cocoa Projects/What's Keeping Me?/build/Release/What's Keeping Me?.app.dSYM"
警告:(i386) /Users/hmcshane/Downloads/Csu-71/crt.dynamic_no_pic .o 无法打开目标文件 警告:(ppc7400)/Users/hmcshane/Downloads/Csu-71/crt.dynamic_no_pic.o 无法打开对象文件
知道这是什么吗?为什么问题文件的路径植根于我的下载文件夹中?该项目当然不在那里。
The background:
I have a project that I last built on 10.5 on a PPC computer using xcode v3.1. It builds against the 10.4 SDK. I now have a MacBook with 10.6 on it and Xcode v3.2.1. I installed the 10.4 SDK with xcode. So now I want to build the project on an intel chip on 10.6. I first get a build error because I have the wrong version of gcc setup so I change the build settings to use gcc 4.0.
The problem:
Now when I build the project I get the following warning:
GenerateDSYMFile "build/Release/What's Keeping Me?.app.dSYM" "build/Release/What's Keeping Me?.app/Contents/MacOS/What's Keeping Me?"
cd "/Users/hmcshane/Development/ Cocoa Projects/What's Keeping Me?"
/Developer/usr/bin/dsymutil "/Users/hmcshane/Development/ Cocoa Projects/What's Keeping Me?/build/Release/What's Keeping Me?.app/Contents/MacOS/What's Keeping Me?" -o "/Users/hmcshane/Development/ Cocoa Projects/What's Keeping Me?/build/Release/What's Keeping Me?.app.dSYM"
warning: (i386) /Users/hmcshane/Downloads/Csu-71/crt.dynamic_no_pic.o unable to open object file
warning: (ppc7400) /Users/hmcshane/Downloads/Csu-71/crt.dynamic_no_pic.o unable to open object file
Any idea what this is? And why is the path for the problem files rooted in my downloads folder? The project certainly doesn't reside there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
升级到 Xcode 4.5 后我看到了恼人的警告。然后我尝试将构建设置/调试信息格式值从 DWARF with dSYM file 更改为 DWARF 并且每个相关警告都消失了:)
I see the annoyed warnings after upgrading to Xcode 4.5. Then I tried changing Build Settings/Debug Information Format value from DWARF with dSYM file to DWARF and every relative warning disappeared :)
当构建链接到自定义静态库的项目时,我在 iPhone 上遇到了同样的问题。我似乎 XCode 抱怨,因为它找不到某些链接对象的调试信息。
我通过在库构建设置中禁用“执行单对象预链接”解决了该问题。
我不知道这个解决方案适用于最初的问题有多好,但由于此页面是第一个 Google 答案......
I had the same issue on iPhone, when building a projet that linked against custom static libraries. I seems XCode complains because it can't find debug infos for some of the linked objects.
I fixed the problem by disabling "Perfom Single-Object Prelink" in the library build settings.
I don't know how well this solution applies to the initial issue, but as this page is the first Google answer…
如果有人在 Xcode 中构建 C 命令行应用程序并尝试前沿设置时遇到此问题:当我切换到 Clang 并启用链接时优化 (LLVM_LTO = YES) 只是为了好玩时,我收到了同样的警告。
If anyone gets this when building a C command line app in Xcode and is experimenting with cutting edge settings: I got this very same warning when I switched to Clang and enabled Link-Time Optimization (LLVM_LTO = YES) just for the fun of it.
这也可能是由于打开GENERATE_DEBUGGING标志造成的。在项目或目标设置中关闭该标志也将起作用。
This may also be caused by GENERATE_DEBUGGING flag turned on. Turning that flag off in project or target settings will also work.