在XCode 4上构建Adhoc for Three20集成的应用程序时出错 [英] Error building Adhoc for Three20-integrated app on XCode 4

查看:117
本文介绍了在XCode 4上构建Adhoc for Three20集成的应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个集成了Three20的iOS应用程序.即使在Simulator或iDevices上,我的应用程序也运行良好.但是,当我尝试建立临时发送给我的客户进行测试时.我遇到了一个非常奇怪的错误

Ld /用户/kulnova/库/开发人员/Xcode/DerivedData/AppFantator-etlvrvoqzixizqbdblqhgefckwbb/ArchiveIntermediates/AppFantator/IntermediateBuildFilesPath/AppFantator.build/Adhoc-iphoneos/AppFantator.build/Objectsant/arm6 普通armv6 cd/用户/kulnova/台式机/AppFantator setenv IPHONEOS_DEPLOYMENT_TARGET 4.0 setenv PATH"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr /X11/bin:/opt/local/bin:/usr/local/git/bin /开发人员/平台/iPhoneOS.platform/开发人员/usr/bin/gcc-4.2 -arch armv6 -dynamiclib -isysroot/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -L/用户/kulnova/库/开发人员/Xcode/DerivedData/AppFantator-etlvrvoqzixizqbdblqhgefckwbb/ArchiveIntermediates/AppFantator/BuildProductsPath/Adhoc-iphoneos -L/用户/kulnova/台式机/AppFantator -F/用户/kulnova/库/开发人员/Xcode/DerivedData/AppFantator-etlvrvoqzixizqbdblqhgefckwbb/ArchiveIntermediates/AppFantator/BuildProductsPath/Adhoc-iphoneos -文件列表/Users/kulnova/Library/Developer/Xcode/DerivedData/AppFantator-etlvrvoqzixizqbdblqhgefckwbb/ArchiveIntermediates/AppFantator/IntermediateBuildFilesPath/AppFantator.build/Adhoc-iphoneos/AppFantator.build/LinksFile-Normal -nostdlib -dead_strip -ObjC -all_load -miphoneos-version-min = 4.0 -framework QuartzCore -lThree20 -lThree20Core -lThree20Network -lThree20Style -lThree20UI -lThree20UICommon -lThree20UINavigator -framework Foundation -framework UIKit -framework CoreGraphics-框架 SystemConfiguration-框架 安全性-框架MessageUI -o /Users/kulnova/Library/Developer/Xcode/DerivedData/AppFantator-etlvrvoqzixizqbdblqhgefckwbb/ArchiveIntermediates/AppFantator/IntermediateBuildFilesPath/AppFantator.build/Adhoc-iphoneos/AppFantator.build/Objects-ant/arm/6

ld:未找到-lThree20的库 collect2:ld返回1退出状态 命令 /开发人员/平台/iPhoneOS.platform/开发人员/usr/bin/gcc-4.2 失败,退出代码为1

该错误显示为 Apple Match-O Linker Error

我敢肯定,我严格遵循手动过程将Three20集成到源代码中. "-ObjC"& "-all_load"全部添加到链接器中.

我不知道你们中是否有人遇到过同样的问题,您是否有解决此问题的线索?

非常感谢您的阅读和支持.

解决方案

我想自己提供一个解决方案.那是一种抽象,但是我所做的只是回到起点(就在我将Three20 Lib的第一件事添加到我的应用程序之前,我只是从Git中回来了).

该错误以前发生过,我没有注意到链接的框架为红色(我以为会有问题,但不知道为什么).

四处张望,没有解决办法.我试图一次又一次地执行该过程,最后,我所有的框架现在都变成黑色,不再是红色.一切都很好!我让Adhoc分发给我的客户. (我试图在此处发布屏幕截图,但由于我是新用户,所以我不允许这样做)

如果您处于相同的情况,并且不知道如何解决.我强烈建议您一次又一次地进行操作,直到遇到相同的情况为止.

I'm building an iOS application with Three20 integrated. My app is running very well even on Simulator or iDevices. However, when I try to build an Ad-hoc to send to my customer for testing. I got a very strange error

Ld /Users/kulnova/Library/Developer/Xcode/DerivedData/AppFantator-etlvrvoqzixizqbdblqhgefckwbb/ArchiveIntermediates/AppFantator/IntermediateBuildFilesPath/AppFantator.build/Adhoc-iphoneos/AppFantator.build/Objects-normal/armv6/Fantator normal armv6 cd /Users/kulnova/Desktop/AppFantator setenv IPHONEOS_DEPLOYMENT_TARGET 4.0 setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin" /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -dynamiclib -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -L/Users/kulnova/Library/Developer/Xcode/DerivedData/AppFantator-etlvrvoqzixizqbdblqhgefckwbb/ArchiveIntermediates/AppFantator/BuildProductsPath/Adhoc-iphoneos -L/Users/kulnova/Desktop/AppFantator -F/Users/kulnova/Library/Developer/Xcode/DerivedData/AppFantator-etlvrvoqzixizqbdblqhgefckwbb/ArchiveIntermediates/AppFantator/BuildProductsPath/Adhoc-iphoneos -filelist /Users/kulnova/Library/Developer/Xcode/DerivedData/AppFantator-etlvrvoqzixizqbdblqhgefckwbb/ArchiveIntermediates/AppFantator/IntermediateBuildFilesPath/AppFantator.build/Adhoc-iphoneos/AppFantator.build/Objects-normal/armv6/Fantator.LinkFileList -nostdlib -dead_strip -ObjC -all_load -miphoneos-version-min=4.0 -framework QuartzCore -lThree20 -lThree20Core -lThree20Network -lThree20Style -lThree20UI -lThree20UICommon -lThree20UINavigator -framework Foundation -framework UIKit -framework CoreGraphics -framework SystemConfiguration -framework Security -framework MessageUI -o /Users/kulnova/Library/Developer/Xcode/DerivedData/AppFantator-etlvrvoqzixizqbdblqhgefckwbb/ArchiveIntermediates/AppFantator/IntermediateBuildFilesPath/AppFantator.build/Adhoc-iphoneos/AppFantator.build/Objects-normal/armv6/Fantator

ld: library not found for -lThree20 collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

That error is shown as Apple Match-O Linker Error

I'm quite sure that I have followed strictly the manually process to integrate Three20 into the source code. "-ObjC" & "-all_load" are all added into the Linker.

I don't know if any of you get the same issue and do you have any clue to fix that problem?

Thank you very much for your reading and support.

解决方案

I'd like to provide a solution myself. That's kind of abstract, but what I have done is get back to the beginning point (just before the time I added the first thing of Three20 Lib into my app, I simple get back from my Git).

The error occurred before, and I didn't notice that my linked frameworks were in red (I thought that there would be some issue, but didn't know why).

Asking around, and no solution. I tried to do the process again and again, finally, I got all of my frameworks are now in black, no longer in red color. And everything just goes fine! I got the Adhoc to distribute to my client. (I have tried to post a screenshot here, but I'm not allow to, because I'm new user)

If you are in the same situation, and don't know how to solve it. I strongly recommend that you should do it again and again until you it the same situation.

这篇关于在XCode 4上构建Adhoc for Three20集成的应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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