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

查看:133
本文介绍了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天全站免登陆