如何使用这些错误在Xcode中编译我的应用程序 - LibCurl [英] How do i compile my app in Xcode with these errors - LibCurl
问题描述
我一直把icy(基于iPhone Debian的软件包管理器 - Jailbreak)移植到iOS 5.
我已经把它移植到4.0就出来了,但现在我得到了错误,直到现在,我没有解决。
I've been porting icy (iPhone Debian-Based Package manager -- Jailbreak ) to iOS 5. i've allready ported it once 4.0 came out, but now i'm getting errors wich untill now, i didn't solve.
当我在iOS模拟器中构建icy时,它没有错误,但是当我在我的实际设备上构建它时,我收到以下错误:
When i build icy in iOS Simulator it has zero errors, but when i build it on my actual device, i'm getting the following errors :
Undefined symbols for architecture armv7:
"_curl_easy_strerror", referenced from:
-[URLDownload start] in URLDownload.o
"_curl_easy_perform", referenced from:
-[URLDownload start] in URLDownload.o
"_curl_easy_init", referenced from:
-[URLDownload initWithURL:delegate:resumeable:] in URLDownload.o
"_curl_easy_setopt", referenced from:
-[URLDownload initWithURL:delegate:resumeable:] in URLDownload.o
-[URLDownload start] in URLDownload.o
"_curl_easy_cleanup", referenced from:
-[URLDownload dealloc] in URLDownload.o
"_curl_slist_free_all", referenced from:
-[URLDownload start] in URLDownload.o
"_curl_slist_append", referenced from:
-[URLDownload start] in URLDownload.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
I已经全部更新了框架和内容。我修复了200个错误,现在我一直坚持这些错误。
I've allready updated the frameworks and stuff. i fixed like 200 errors and now i keep stuck with these errors.
还有警告,:
ld: warning: ignoring file /Users/Samtulp6/Desktop/Infini-Dev/iOS/Projects/Icy/Fr0st's Source Code/Icy_Infini/Sources/Backend/Network/libcurl.a, file was built for archive which is not the architecture being linked (armv7)
ld: warning: ignoring file /Users/Samtulp6/Desktop/Infini-Dev/iOS/Projects/Icy/Fr0st's Source Code/Icy_Infini/Sources/Backend/Network/libcurl_i386.a, file was built for archive which is not the architecture being linked (armv7)
ld: warning: ignoring file /Users/Samtulp6/Desktop/Infini-Dev/iOS/Projects/Icy/Fr0st's Source Code/Icy_Infini/Sources/Backend/Network/libssl_i386.a, file was built for archive which is not the architecture being linked (armv7)
ld: warning: ignoring file /Users/Samtulp6/Desktop/Infini-Dev/iOS/Projects/Icy/Fr0st's Source Code/Icy_Infini/Sources/Backend/Network/libcrypto_i386.a, file was built for archive which is not the architecture being linked (armv7)
任何人都知道如何解决这个问题?
Anyone knows how to fix this ?
提前致谢
-Sam
推荐答案
您使用的cURL库似乎不是为iPhone 4上使用的 armv7
架构而构建的。删除 armv7
构建设置中的架构或使用armv7架构重建cURL库(胖库)。
It seems the cURL Library you are using wasn't built for the armv7
architecture used on the iPhone 4. Remove the armv7
architecture from the Build Settings or rebuild the cURL Library with the armv7 architecture (fat library).
这篇关于如何使用这些错误在Xcode中编译我的应用程序 - LibCurl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!