Xcode存档调试条错误 [英] Xcode Archive debug strip errors

查看:58
本文介绍了Xcode存档调试条错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将大型旧式C ++库与iOS应用程序集成.我们能够在设备上构建和运行,但无法存档该应用程序.归档失败,并出现以下错误.

I am trying to integrate a large legacy C++ library with an iOS app. We are able to build and run on device but we are not able to archive the app. Archiving fails with the following error.

命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip失败,退出代码为1

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip failed with exit code 1

我在试纸上做了一个"-v",并得到了一系列类似于

I did a "-v" on the strip and get a series of warnings similar to

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip:由重定位条目引用的符号,这些符号不能被剥夺:/MyApp/DerivedData/SmartMusic_iPad/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/libMyLib-iOS.a(MyWhatever.o)

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: symbols referenced by relocation entries that can't be stripped in: /MyApp/DerivedData/SmartMusic_iPad/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/libMyLib-iOS.a(MyWhatever.o)

不清楚此消息是警告还是失败的原因.条带输出中没有其他迹象表明存在问题.有任何线索吗?

It is not clear if this message is a warning or the reason for the failure. There are no other indications of problems in the strip output. Any clues?

推荐答案

在静态库目标的构建设置下,为部署后处理"和复制期间的调试符号"选择否".它是已编译的代码,因此不需要剥离符号.我遇到了同样的错误('usr/bin/strip失败,退出代码为1'),这对我来说已经解决了.

Under build settings for the static library target, select NO for 'deployment postprocessing' and 'strip debug symbols during copy'. It is compiled code so it doesn't need symbols stripped. I was experiencing the same error ('usr/bin/strip failed with exit code 1') and this fixed it for me.

这篇关于Xcode存档调试条错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆