Unable to copy dSYM file into archive

一世执手 提交于 2020-01-01 04:34:12

问题


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?


回答1:


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!




回答2:


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.

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




回答3:


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.




回答4:


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!




回答5:


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:

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



来源:https://stackoverflow.com/questions/4466095/unable-to-copy-dsym-file-into-archive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!