xcode 生成 DSYMFile 警告:无法打开目标文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2453206/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
GenerateDSYMFile warning: unable to open object file
提问by regulus6633
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.
背景:我有一个项目,我上次在 PPC 计算机上使用 xcode v3.1 在 10.5 上构建。它针对 10.4 SDK 构建。我现在有一台装有 10.6 和 Xcode v3.2.1 的 MacBook。我用 xcode 安装了 10.4 SDK。所以现在我想在 10.6 上的英特尔芯片上构建项目。我首先收到一个构建错误,因为我的 gcc 设置版本错误,所以我将构建设置更改为使用 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"
问题:现在当我构建项目时,我收到以下警告: 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/是什么让我坚持?" /Developer/usr/bin/dsymutil "/Users/hmcshane/Development/Cocoa Projects/是什么让我留恋?/build/Release/是什么让我留恋?.app/Contents/MacOS/是什么让我留恋?” -o "/Users/hmcshane/Development/ Cocoa Projects/是什么让我留恋?/build/Release/是什么让我留恋?.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
警告:(i386)/Users/hmcshane/Downloads/Csu-71/crt.dynamic_no_pic.o 无法打开目标文件警告:(ppc7400)/Users/hmcshane/Downloads/Csu-71/crt.dynamic_no_pic.o 无法打开目标文件
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.
知道这是什么吗?为什么问题文件的路径以我的下载文件夹为根?该项目当然不在那里。
回答by thanhbinh84
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 fileto DWARFand every relative warning disappeared :)
升级到 Xcode 4.5 后,我看到了恼人的警告。然后我尝试将带有 dSYM 文件的DWARF 的构建设置/调试信息格式值更改为DWARF,并且每个相关警告都消失了:)
回答by Kemenaran
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.
在构建与自定义静态库链接的项目时,我在 iPhone 上遇到了同样的问题。我似乎 XCode 抱怨,因为它找不到某些链接对象的调试信息。
I fixed the problem by disabling "Perfom Single-Object Prelink"in the library build settings.
我通过在库构建设置中禁用“Perfom Single-Object Prelink”解决了这个问题。
I don't know how well this solution applies to the initial issue, but as this page is the first Google answer…
我不知道这个解决方案如何适用于最初的问题,但由于这个页面是第一个谷歌回答......
回答by JanX2
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.
如果有人在 Xcode 中构建 C 命令行应用程序时遇到这个问题,并且正在尝试尖端设置:当我切换到 Clang 并启用链接时间优化 (LLVM_LTO = YES) 只是为了好玩时,我收到了同样的警告。
回答by Antony Thomas
This may also be caused by GENERATE_DEBUGGINGflag turned on. Turning that flag off in project or target settings will also work.
这也可能是由于GENERATE_DEBUGGING标志打开造成的。在项目或目标设置中关闭该标志也将起作用。