Unable to copy dSYM file into archive

2019-03-25 02:54发布

Whenever I run 'build and archive' from XCode I get the following message:


Unable to copy dSYM file into archive.

Please make sure that your application has set the “Debug Information Format” build setting to “DWARF with dSYM File”.


I have checked my Debug format and it is set to the suggested value(DWARF with dSYM). Has anyone else ran into this issue, if so how did you fix it?

5条回答
Explosion°爆炸
2楼-- · 2019-03-25 03:28

The 'Generate Debug Symbols' solution worked for me as well. After it worked once, I disabled the setting again, and I build & archive worked again, producing a file smaller by 700kb than the debug symbols enabled version. Not sure if this is actual savings after the app is on the app store, but it doesn't hurt!

查看更多
\"骚年 ilove
3楼-- · 2019-03-25 03:31

this worked for me ,i hope it help someone out there... Goto to the build setting and search for "Generate debug symbol" and set it to Yes.

enter image description here

then search for debug information format in build setting and set "Debug information format" to "DWARF with dSYM file"

enter image description here

查看更多
SAY GOODBYE
4楼-- · 2019-03-25 03:36

I just ran into the same problem, but I had an build script which removed the dSYM file before Xcode could. So it wasn't there and that was what Xcode was crying about.

I attached a screenshot, so perhaps the next one which runs into that problem can recover a bit quicker from that.

Unable to copy dSYM file into archive

查看更多
等我变得足够好
5楼-- · 2019-03-25 03:37

That's how your build settings for both release and debug configuration should look like:

  • Generate Debug Symbols → Yes
  • Debug Information... → DWARF with DSYM
  • Deployment Postprocessing → YES
  • Strip Linked Product... → No
  • Strip Debug... → No

If there's still no luck, try check the Report Navigator.

The point is, dSYM file may be generated in another location, or not generated at all.

In my case, the dSYM file has not been generated, and there hasn't been a corresponding line that goes like "Generate Appname.dSYM ...in {path}" But there's been Fabric installed, and it logged the fact of the dSYM file's absence:

no dsym

Just filer the Report Navigator by "dSYM".

If dSYM is not generated in appropriate folder

Check environment variables, especially DWARF_DSYM_FOLDER_PATH and DWARF_DSYM_FILE_NAME.

To embed the dSYM within the app bundle, just set DWARF_DSYM_FOLDER_PATH to $(CONFIGURATION_BUILD_DIR)/$(EXECUTABLE_FOLDER_PATH) and DWARF_DSYM_FILE_NAME to $(EXECUTABLE_NAME).dSYM

Now the build should create dSYM for your target

generate target.dSYM

查看更多
做自己的国王
6楼-- · 2019-03-25 03:45

Try setting 'Generate Debug Symbols' to true in the build settings of the target you're trying to build and archive.

This solved the issue for me!

查看更多
登录 后发表回答