17

When performing an archive build with "strip debug symbols during copy" set to YES, I get the warning "skipping copy phase strip, binary is code signed". The generally suggested solution on threads regarding this issue is to set "strip debug symbols during copy" to NO. Sure that get's rid of the warning, but I don't think the approach to remove the "low oil warning light" will solve the underlying issue.

It seems the size of the binary can get bloated when this option is set to NO. And also why would you want to ship debug symbols with your app?

I would appreciate tips, insights and optimally a solution.

HangarRash
  • 7,314
  • 5
  • 5
  • 32
JensD
  • 253
  • 2
  • 9
  • The warning "skipping copy phase strip, binary is code signed" occurs for own frameworks as well as for iOS 8 extensions, which are both code signed (seems to be required). – JensD Apr 12 '15 at 23:56

3 Answers3

4

You can't. Xcode doesn't detect that the code signed framework is already stripped. The warning is harmless.

Monstieur
  • 7,992
  • 10
  • 51
  • 77
  • 18
    But it is really annoying, especially when you link against many own frameworks, Xcode spams you with dozens of such warnings, making it harder to see the really important warnings. There should really be a way to turn those off. As the OP already said, disabling "Strip debug symbols during copy" is not a solution. – Andreas Dec 10 '16 at 17:43
  • 1
    Spam hides real issues so it requires more time and effort to manually go through the issues list, can't say it's "harmless" unless the whole team just don't care about warnings at all. – superarts.org Mar 28 '23 at 12:39
1

The size of your shipped binary will not be influenced by this setting. That is another setting, named "Strip Linked Product". You can leave that set to YES. See also: https://stackoverflow.com/a/7915911/923288

hotdogsoup.nl
  • 1,078
  • 1
  • 9
  • 22
0

One way to do this is to go into the General tab of your app, scroll down to "Frameworks, Libraries and Embedded Content", find the offending library that should be in that list and change "Embed & Sign" into "Do Not Embed", this will certainly get rid of the warning and the app would work on the simulator fine, however, depending on how the lib was coded it's not 100% guaranteed that it would work on the device (being debugged through Xcode), apart from that it should work fine.

H

Heider Sati
  • 2,476
  • 26
  • 28