Xcode 6存档并获得警告“跳过复制阶段条,二进制代码已签名”当添加“共享扩展”时达到目标 [英] Xcode 6 Archiving and get a warning "Skipping copy phase strip ,binary is code signed" when add "share extension" to target
问题描述
当我向我的项目添加共享扩展并将其归档时,我收到了此警告
警告:跳过复制阶段条带,二进制代码已签名:/ Users / xxxx / xxx / xxxx / Build / xxxx / Build / Intermediates / ArchiveIntermediates / xxxx / IntermediateBui ldFilesPath / UninstalledProducts / XXX.appex / XXXX
I got this warning when I added share extension to my project and archiving it warning: skipping copy phase strip, binary is code signed: /Users/xxxx/xxx/xxxx/Build/xxxx/Build/Intermediates/ArchiveIntermediates/xxxx/IntermediateBui ldFilesPath/UninstalledProducts/XXX.appex/XXXX
旧问题没有提供和洞察力来纠正这个问题。所以我决定再问一次。
在iOS存档应用期间发出警告Xcode 6中的8扩展
The old question does not provide and insight to correct this . So I decided to ask again. Warning during archive App with iOS 8 Extension in Xcode 6
有人可以解释为什么会发生这种情况吗?是因为扩展目标已经过代码签名了吗?如果是这样,如何解决?
Can someone please explain why this is happening ? Is it because the extension target is already code signed? If so, how to solve it ?
我知道将复制期间调试符号设置为否可以清除此警告。但它实际上并没有解决问题。没有剥离调试符号的缺点是什么?因为我的存档大小仍然相同,无论我将其设置为YES还是NO
I knew that setting "Strip debug symbols during copy" to "NO" can clear this warning . But it is not actually solve the problem. And what is the drawback of not "stripping debug symbol"? Because my archive size is still the same whether I set this to YES or NO
推荐答案
不禁用在应用程序项目中复制
期间删除调试符号。这将使您的应用程序膨胀(如果您有其他未签名的依赖项)。
Do not disable Strip Debug Symbols During Copy
in your application project. This will bloat your app (if you have other unsigned dependencies).
这是因为构建应用程序项目试图剥离框架但是它不能,因为框架是已经签署。然而,框架在构建过程中已被剥离,因此警告是无害的。 Xcode似乎没有检测到已经被剥离的代码签名框架。
It occurs because building the application project attempts to strip the framework but it can't since the framework is already codesigned. However the framework has already been stripped during it's build, so the warning is harmless. Xcode isn't doesn't seem to detect that the codesigned framework has already been stripped.
你应该保持原样。
这篇关于Xcode 6存档并获得警告“跳过复制阶段条,二进制代码已签名”当添加“共享扩展”时达到目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!