Xcode 4 存档警告跳过复制阶段 [英] Xcode 4 archive warning to skip copy phase

查看:24
本文介绍了Xcode 4 存档警告跳过复制阶段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个适用于 Mac 的应用程序,我正在尝试存档.我过去曾使用较早版本的 Xcode 完成此操作,但是当我使用 Xcode 4 存档时,我收到以下警告:

I have an app for the Mac that I am trying to archive. I have done this in the past with an earlier version of Xcode however when I archive with Xcode 4, I get the following warning:

warning: skipping copy phase strip, binary is code signed: .....

警告与必须在构建阶段复制的辅助工具有关.如何解决此警告?

The warning pertains to a helper tool that must be copied during the build phase. How do I resolve this warning?

有什么建议吗?

推荐答案

解决方案是转到应用程序目标(而不是帮助工具目标)的构建设置并设置在复制期间去除调试符号"否".这是关键COPY_PHASE_STRIP.

The solution would be to go to the build settings of your application target (not the help tool target) and set "Strip Debug Symbols During Copy" to "No". This is the key COPY_PHASE_STRIP.

激活此设置会导致在构建期间(例如,在复制捆绑资源或复制文件构建阶段)复制的二进制文件被剥离调试符号.它不会导致目标的链接产品被剥离(为此使用剥离链接产品).

Activating this setting causes binary files which are copied during the build (e.g., in a Copy Bundle Resources or Copy Files build phase) to be stripped of debugging symbols. It does not cause the linked product of a target to be stripped (use Strip Linked Product for that).

主要问题是您不能从签名的可执行文件中剥离调试符号.这就是您必须跳过此步骤的原因.

The main problem is that you can not strip debug symbols from a signed executable. This is why you must skip this step.

这篇关于Xcode 4 存档警告跳过复制阶段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆