简体   繁体   English

Veracode,调试符号和XCode

[英]Veracode, Debug Symbols, and XCode

I'm attempting to have an iOS application scanned by Veracode: an application security platform. 我正在尝试通过Veracode扫描iOS应用程序:一个应用程序安全平台。 In order for them to scan an .IPA, the .IPA needs to contain debug symbols. 为了使它们扫描.IPA,.IPA需要包含调试符号。

For the Archive build-configuration and project/target being used, I've specified: 对于正在使用的Archive构建配置和项目/目标,我已指定:

  • Generate Debug Symbols : YES 生成调试符号:是
  • Strip Debug Symbols During Copy : NO 复制期间剥离调试符号:NO
  • Dead Code Stripping : NO 死代码剥离:没有
  • Symbols Hidden By Default : NO 默认隐藏的符号:否
  • Strip Linked Product : NO 剥离链接产品:没有

Yet, Veracode still gives me the following error when submitting the .IPA: 然而,在提交.IPA时,Veracode仍然给我以下错误:

Primary Files Compiled without Debug Symbols - 1 File 没有调试符号编译的主文件 - 1个文件

Is there another step I need to take to create debug symbols, perhaps wrt archiving? 我需要采取另一个步骤来创建调试符号,或许是存档吗?

I had the same issue. 我遇到过同样的问题。 I was able to resolve it by following the veracode instructions below. 我可以按照下面的veracode说明解决它。 It basically tells you to manually create archive package, move the .app and .app.sym folders to a new location and then rename the zip file to an ipa. 它基本上告诉您手动创建存档包,将.app和.app.sym文件夹移动到新位置,然后将zip文件重命名为ipa。

From Veracode Help Center: 从Veracode帮助中心:

"Because Xcode does not create .IPA packages that contain DSYM information, you must create the package yourself. Xcode dynamically creates a folder to contain the .app and .app.dsym files. There is no definite path to this folder, but you can search the folder after you build your application. To do this, open Xcode and click Products on the left side of the window. Right-click the .app file, and select Reveal in Finder, which takes you to the folder where the .app and .app.dsym files are located. Once you have located the DSYM information, you can package your compiled iOS application as follows: “因为Xcode不会创建包含DSYM信息的.IPA包,所以必须自己创建包.Xcode会动态创建一个包含.app和.app.dsym文件的文件夹。这个文件夹没有明确的路径,但你可以在构建应用程序后搜索文件夹。为此,打开Xcode并单击窗口左侧的Products。右键单击.app文件,然后选择Finder中的Reveal,它将带您进入.app文件夹。找到.app.dsym文件。找到DSYM信息后,您可以按如下方式打包已编译的iOS应用程序:

  1. Select the .app and .app.dSYM folders for your application. 选择应用程序的.app和.app.dSYM文件夹。
  2. Copy both folders into a folder called Payload . 将两个文件夹复制到名为Payload的文件夹中。 Note: the folder name must be capitalized. 注意:文件夹名称必须大写。
  3. Create a zip archive containing the Payload folder. 创建包含Payload文件夹的zip存档。 You can do this on a Mac by selecting the Payload folder and choosing Compress from the context menu, or by using the zip-compatible archiving utility of your choice. 您可以在Mac上执行此操作,方法是选择Payload文件夹并从上下文菜单中选择“压缩”,或使用您选择的zip兼容的归档实用程序。
  4. Change the extension of the resulting archive to .ipa. 将生成的存档的扩展名更改为.ipa。
  5. Upload this archive to the Veracode application profile. 将此存档上载到Veracode应用程序配置文件。 "

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM