Xcode 4-归档应用程序时出现链接错误 [英] Xcode 4 - Linking error when archiving application

查看:147
本文介绍了Xcode 4-归档应用程序时出现链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经使用Xcode 4和LLVM 2.0几个月了,在完成对应用程序的巨大更新之后,我们认为我们会将其发送给Apple.

We have been using Xcode 4 and LLVM 2.0 for a couple of months now and after finishing a huge update to our application we thought we would send it off to Apple.

但是,我们无法想象的是,尽管该程序能够为模拟器和设备构建,但是在进行归档时,XCode却抛出了一个令人讨厌的链接错误,并把我们留在那里.

What we couldn't imagine however, was that although the program was able to be built for both the simulator and devices, when it came to archiving, XCode just threw a nasty linking error and left us hanging there.

该错误与 ZipKit库有关(我们之前讨论了

The error is related to the ZipKit library (we previously discussed the issues we had with making it work under XCode 4).

这就是我们得到的:

ld: library not found for -ltouchzipkit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1

所以问题是:我们是否需要更改构建良好的应用程序的任何设置,以便能够将其存档?

So the question is: do we need to change any settings for an app that builds fine to be able to get archived as well?

推荐答案

不尝试翻转,但是看起来问题在于链接器找不到名为"touchzipkit"的库.仅当您存档时才会出现此问题的事实似乎表明您的目标具有(至少一个)构建设置,该构建设置的"debug"和"release"值不同...并且"release"值已损坏.

Not trying to be flip, but it looks like the problem is that the linker can't find a library called "touchzipkit". The fact that this problem only comes up when you archive would seem to indicate your target has (at least one) build setting that has different values for "debug" and "release"... and that the "release" value is broken.

不熟悉ZipKit,我只是在黑暗中拍摄.但是,我将开始逐一检查您的构建设置,尤其要注意调试和发布设置不同的库搜索路径和编译器标志.

Not being familiar with ZipKit, I'm just shooting in the dark here. But I'd start checking out your build settings one by one, paying particular attention to library search paths and compiler flags where the debug and release settings are different.

这篇关于Xcode 4-归档应用程序时出现链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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