如何使用这些错误在Xcode中编译我的应用程序 - LibCurl

时间:2011-08-26 14:03:11

标签: ios xcode libcurl ios5 libssl

我一直在向iOS 5移植icy(基于iPhone Debian的软件包管理器 - Jailbreak)。 我已经把它移植到4.0了,但是现在我得到了错误,直到现在,我没有解决。

当我在iOS模拟器中构建icy时,它没有错误,但是当我在我的实际设备上构建它时,我收到以下错误:

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

我已经更新了框架和内容。我修复了200个错误,现在我一直坚持这些错误。

还有警告:

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)

任何人都知道如何解决这个问题?

提前致谢

萨姆

1 个答案:

答案 0 :(得分:0)

您使用的cURL库似乎不是为iPhone 4上使用的armv7架构构建的。从Build Settings中删除armv7架构或使用armv7架构重建cURL库(胖库)。