How do i compile my app in Xcode with these errors - LibCurl

谁说胖子不能爱 提交于 2019-12-25 02:15:46

问题


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.

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've allready updated the frameworks and stuff. i fixed like 200 errors and now i keep stuck with these errors.

There are also warnings, :

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 ?

Thanks in advance

-Sam


回答1:


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).



来源:https://stackoverflow.com/questions/7205834/how-do-i-compile-my-app-in-xcode-with-these-errors-libcurl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!