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

查看:47
本文介绍了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 库有关(我们之前讨论过使用 使其在 XCode 4 下工作).

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"的库.仅当您归档时才会出现此问题这一事实似乎表明您的目标具有(至少一个)构建设置,该设置具有不同的调试"和发布"值......并且发布"值已损坏.

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天全站免登陆