SORU
29 Ocak 2011, CUMARTESİ


(s) mimarisi: i386 için bulunan sembol değil

Böyle büyük mükafat ile derlemeye çalışırken aşağıdaki hatayı alıyorum:

  **Ld /Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator/iKosher.app/iKosher normal i386
    cd /Users/doronkatz/Sites/xCode/iKosher
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    setenv PATH "/Xcode4/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Xcode4/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Xcode4/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L/Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator -L/Users/doronkatz/Sites/xCode/iKosher -F/Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator -filelist /Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Intermediates/iKosher.build/Debug-iphonesimulator/iKosher.build/Objects-normal/i386/iKosher.LinkFileList -mmacosx-version-min=10.6 -all_load -ObjC -Xlinker -objc_abi_version -Xlinker 2 -lz -framework Security -framework CFNetwork -framework CoreData -framework Foundation -framework UIKit -framework CoreGraphics -framework QuartzCore -o /Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator/iKosher.app/iKosher

Undefined symbols for architecture i386:
  "_UTTypeCreatePreferredIdentifierForTag", referenced from:
       [ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
  "_UTTypeCopyPreferredTagWithClass", referenced from:
       [ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
  "_kUTTagClassMIMEType", referenced from:
       [ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
  "_kUTTagClassFilenameExtension", referenced from:
       [ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
  "_SCNetworkReachabilitySetCallback", referenced from:
      -[Reachability startNotifier] in Reachability.o
  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
      -[Reachability startNotifier] in Reachability.o
  "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
      -[Reachability stopNotifier] in Reachability.o
  "_SCNetworkReachabilityCreateWithName", referenced from:
       [Reachability reachabilityWithHostName:] in Reachability.o
  "_SCNetworkReachabilityCreateWithAddress", referenced from:
       [Reachability reachabilityWithAddress:] in Reachability.o
  "_SCNetworkReachabilityGetFlags", referenced from:
      -[Reachability currentReachabilityStatus] in Reachability.o
      -[Reachability isReachable] in Reachability.o
      -[Reachability isConnectionRequired] in Reachability.o
      -[Reachability isConnectionOnDemand] in Reachability.o
      -[Reachability isInterventionRequired] in Reachability.o
      -[Reachability isReachableViaWWAN] in Reachability.o
      -[Reachability isReachableViaWiFi] in Reachability.o
      ...
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status**

Ne anlama geldiğinden emin değilim.

CEVAP
29 Ocak 2011, CUMARTESİ


Eğer bu tür bir şey aniden beliren alırsanız, genellikle projenin ihtiyacı bazı çerçeveler eksik demektir. Kütüphaneler ve bağımlı bir proje çerçeveler gerektirebilir, eğer yakın zamanda bir tane ekledikten sonra bu hata neden olabilir.

Çerçeveler eklemek, proje adı üzerinde sağ tıklayın, Add listesinden Existing frameworks... Görüntüle öğesini seçin. Bulmak kaçırıyorsun simgeleri ile çerçeve.

İhtiyacın olan seni bulmak nasıl, muhtemelen böyle büyük mükafat yardım arama da olabilirsin ama google kolay kullanarak, buldum. Simgelerinden biri için, unmangled adı (örneğin, SCNetworkReachabilityGetFlags) çalışmak için elinden geleni yapıyor arama, ve daha sonra developer.apple.com seni bulmak ilk belgelere bağlantı genellikle doğru olandır. Genelde Avda çok uzağa gerek yok. Bu durumda, o sayfa:

http://developer.apple.com/library/mac/#documentation/SystemConfiguration/Reference/SCNetworkReachabilityRef/Reference/reference.html

Sayfanın en üstünde,, SystemConfiguration Bu durumda kullanmak için hangi söyler. Yani projeye eklemek ve yeniden derleyin.

O zaman sadece çalışır kadar bu yapmaya devam et...

Edit: hiç simülatörü kullandım, ama bu cihaz üzerinde - aynı şey sanırım ne olduğunu...

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • bigky226

    bigky226

    11 HAZİRAN 2006
  • DetroitBORG

    DetroitBORG

    29 Temmuz 2008
  • HereWeStayKings

    HereWeStayKi

    3 NİSAN 2013