Release build but debugging enabled

丶灬走出姿态 提交于 2020-06-25 07:43:01

问题


I'm trying to export an Android app. I've selected "Release | ARM".

It creates a bundle and lists it in the archives section but there's a warning next to it that says, "Archive built with debugging enabled".

How can that be, given that it's a release build?

How do switch off debugging?


回答1:


I'm using Visual Studio for Mac and came across this same "Archive built with debugging enabled" warning after creating an archive of the Android project.

To fix this, do the following:

  1. Go into the Android project options (double-click on the Android project).
  2. Select the Compiler options.
  3. In the "Debug information" drop-down menu, select None (mine had the Portable option selected). Do this configuration for the Release build (the "Configuration" drop-down menu at the top says Release (Active)).
  4. Click on the Android Build options and take a look at the "Debugging Options". The Enable developer instrumentation (debugging and profiling)setting should be greyed out (and the checkbox should be unchecked). The setting is greyed out because of what was done in step 3.
  5. Publish the project.

So the problem was that by default the "Debug Information" wasn't set to None.



来源:https://stackoverflow.com/questions/50203902/release-build-but-debugging-enabled

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