简体   繁体   English

如何避免“跳过复制阶段条带”警告(因为“二进制是代码签名的”)而不将“复制期间的条带调试符号”设置为“否”?

[英]How to avoid “skipping copy phase strip” warning (because “binary is code signed”) without setting ”strip debug symbols during copy" to NO?

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.关于此问题的线程上通常建议的解决方案是将“复制期间去除调试符号”设置为 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.当此选项设置为 NO 时,二进制文件的大小似乎会变得臃肿。 And also why would you want to ship debug symbols with your app?还有你为什么要在你的应用程序中提供调试符号?

I would appreciate tips, insights and optimally a solution.我将不胜感激提示、见解和最佳解决方案。

You can't.你不能。 Xcode doesn't detect that the code signed framework is already stripped. Xcode 没有检测到代码签名框架已经被剥离。 The warning is harmless.警告是无害的。

The size of your shipped binary will not be influenced by this setting.此设置不会影响您提供的二进制文件的大小。 That is another setting, named "Strip Linked Product".这是另一个设置,名为“Strip Linked Product”。 You can leave that set to YES.您可以将该设置保留为 YES。 See also: https://stackoverflow.com/a/7915911/923288另见: https : //stackoverflow.com/a/7915911/923288

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.一种方法是进入应用程序的常规选项卡,向下滚动到“框架、库和嵌入内容”,找到应该在该列表中的违规库并将“嵌入和签名”更改为“不嵌入” ",这肯定会消除警告,并且该应用程序可以在模拟器上正常运行,但是,根据 lib 的编码方式,它不能 100% 保证它可以在设备上运行(通过 Xcode 调试),除了它应该可以正常工作。

H H

暂无
暂无

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

相关问题 Xcode 6 存档并在将“共享扩展名”添加到目标时收到警告“跳过复制阶段条,二进制代码已签名” - Xcode 6 Archiving and get a warning “Skipping copy phase strip ,binary is code signed” when add “share extension” to target 将“复制期间的条调试符号”设置为“否”后,经常会出现内存警告 - Often memory warning after setting “Strip Debug Symbols During Copy” to NO xCode 上的“复制期间剥离调试符号”和“剥离链接产品”的区别 - “Strip Debug Symbols During Copy” and “Strip Linked Product” difference on xCode 复制期间包含应用程序符号和剥离调试符号之间的区别? - Difference between include app symbols and strip debug symbols during copy? 我应该在Google Analytics中使用“复制时剥离调试符号”和“剥离链接产品”吗? - Should I use 'Strip Debug Symbols During Copy' and 'Strip Linked Produts' with Google Analytics? 对于发行版,iOS中正确的“ Strip Debug Symbols”设置是什么? - What is the proper “Strip Debug Symbols” settings in iOS for release versions? 在Xcode 4.5中保留未剥离的二进制文件的同时剥离符号 - Strip symbols while retaining unstripped binary in xcode 4.5 剥离iPhone应用程序的符号 - Strip symbols for iPhone application Flutter 无法混淆和剥离符号 - Flutter unable to obfuscate and strip symbols 如何从iOS框架中剥离或重命名符号? - How do i strip or rename symbols from iOS frameworks?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM