Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
437 views
in Technique[技术] by (71.8m points)

xcode4 - Xcode 4 archive warning to skip copy phase

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?

Any suggestions?

question from:https://stackoverflow.com/questions/5494920/xcode-4-archive-warning-to-skip-copy-phase

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

COPY_PHASE_STRIP screenshot

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...