解析Apple Mach O-Linker错误? [英] Parse Apple Mach O-Linker error?

查看:747
本文介绍了解析Apple Mach O-Linker错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用解析框架,突然间我遇到了39个错误。即使我删除框架,它仍然有错误。我已经检查了构建阶段/设置和路径,但没有任何效果。此外,我正在使用xcode 4.6.3(我有一个过时的macbook)。

I was using the parse framework and all of a sudden I got 39 errors. even when I delete the the framework, it still has the errors. I already checked the build phases/settings and the paths, but nothing worked. Also, I'm using xcode 4.6.3 (I have an outdated macbook).

    Ld
 "/Users/anikakablan/Library/Developer/Xcode/DerivedData/_App-gkiwwexxeirenwdbcblamqsuyjcy/Build/Products/Debug-iphonesimulator/
 App.app/ App" normal i386
     cd "/Users/anikakablan/Desktop/ App"
     setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
     setenv PATH "/Users/anikakablan/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Users/anikakablan/Desktop/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
     /Users/anikakablan/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
 -arch i386 -isysroot /Users/anikakablan/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk
 -L/Users/anikakablan/Library/Developer/Xcode/DerivedData/_App-gkiwwexxeirenwdbcblamqsuyjcy/Build/Products/Debug-iphonesimulator -F/Users/anikakablan/Library/Developer/Xcode/DerivedData/_App-gkiwwexxeirenwdbcblamqsuyjcy/Build/Products/Debug-iphonesimulator "-F/Users/anikakablan/Desktop/
 App/../../Downloads/parse-library-1.2.21 (1)" -filelist
 "/Users/anikakablan/Library/Developer/Xcode/DerivedData/_App-gkiwwexxeirenwdbcblamqsuyjcy/Build/Intermediates/
 App.build/Debug-iphonesimulator/
 App.build/Objects-normal/i386/ App.LinkFileList" -Xlinker
 -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework QuartzCore -framework CoreImage -framework Parse -framework UIKit
 -framework Foundation -framework CoreGraphics -o "/Users/anikakablan/Library/Developer/Xcode/DerivedData/_App-gkiwwexxeirenwdbcblamqsuyjcy/Build/Products/Debug-iphonesimulator/
 App.app/ App"










Undefined symbols for architecture i386:
  "_AudioServicesCreateSystemSoundID", referenced from:
      +[PFPush handlePush:] in Parse(PFPush.o)
  "_AudioServicesPlaySystemSound", referenced from:
      +[PFPush handlePush:] in Parse(PFPush.o)
  "_If", referenced from:
      -[ViewControllerLogin checkFieldsComplete] in ViewControllerLogin.o
      -[SignInViewController checkFieldsComplete] in SignInViewController.o
  "_OBJC_CLASS_$_BFExecutor", referenced from:
      objc-class-ref in Parse(BFTask+Private.o)
      l_OBJC_$_CATEGORY_BFExecutor_$_Background in Parse(BFTask+Private.o)
  "_OBJC_CLASS_$_BFTask", referenced from:
      objc-class-ref in Parse(PFUser.o)
      objc-class-ref in Parse(PFNetworkCommandRunner.o)
      objc-class-ref in Parse(PFObject.o)
      objc-class-ref in Parse(PFRetryingCommandRunner.o)
      objc-class-ref in Parse(PFFile.o)
      objc-class-ref in Parse(PFQuery.o)
      objc-class-ref in Parse(PFTaskQueue.o)
      ...
  "_OBJC_CLASS_$_BFTaskCompletionSource", referenced from:
      objc-class-ref in Parse(PFNetworkCommandRunner.o)
      objc-class-ref in Parse(PFObject.o)
      objc-class-ref in Parse(PFCommandCache.o)
      objc-class-ref in Parse(PFFile.o)
      objc-class-ref in Parse(BFTask+Private.o)
  "_OBJC_CLASS_$_CLLocationManager", referenced from:
      objc-class-ref in Parse(PFLocationManager.o)
  "_SCNetworkReachabilityCreateWithName", referenced from:
      +[PFInternalUtils(Reachability) isParseReachable] in Parse(PFInternalUtils.o)
      -[PFCommandCache init] in Parse(PFCommandCache.o)
  "_SCNetworkReachabilityGetFlags", referenced from:
      +[PFInternalUtils(Reachability) isParseReachable] in Parse(PFInternalUtils.o)
      ___22-[PFCommandCache init]_block_invoke in Parse(PFCommandCache.o)
  "_SCNetworkReachabilitySetCallback", referenced from:
      -[PFCommandCache init] in Parse(PFCommandCache.o)
  "_SCNetworkReachabilitySetDispatchQueue", referenced from:
      -[PFCommandCache init] in Parse(PFCommandCache.o)
      -[PFCommandCache dealloc] in Parse(PFCommandCache.o)
  "_SecCertificateCopyData", referenced from:
      -[PF_AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in Parse(PF_AFURLConnectionOperation.o)
  "_SecCertificateCreateWithData", referenced from:
      ___47+[PF_AFURLConnectionOperation pinnedPublicKeys]_block_invoke in Parse(PF_AFURLConnectionOperation.o)
  "_SecItemAdd", referenced from:
      +[PFInternalUtils saveToKeychain:data:] in Parse(PFInternalUtils.o)
  "_SecItemCopyMatching", referenced from:
      +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o)
  "_SecItemDelete", referenced from:
      +[PFInternalUtils saveToKeychain:data:] in Parse(PFInternalUtils.o)
      +[PFInternalUtils deleteFromKeychain:] in Parse(PFInternalUtils.o)
  "_SecPolicyCreateBasicX509", referenced from:
      ___47+[PF_AFURLConnectionOperation pinnedPublicKeys]_block_invoke in Parse(PF_AFURLConnectionOperation.o)
      -[PF_AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in Parse(PF_AFURLConnectionOperation.o)
  "_SecTrustCopyPublicKey", referenced from:
      ___47+[PF_AFURLConnectionOperation pinnedPublicKeys]_block_invoke in Parse(PF_AFURLConnectionOperation.o)
      -[PF_AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in Parse(PF_AFURLConnectionOperation.o)
  "_SecTrustCreateWithCertificates", referenced from:
      ___47+[PF_AFURLConnectionOperation pinnedPublicKeys]_block_invoke in Parse(PF_AFURLConnectionOperation.o)
      -[PF_AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in Parse(PF_AFURLConnectionOperation.o)
  "_SecTrustEvaluate", referenced from:
      ___47+[PF_AFURLConnectionOperation pinnedPublicKeys]_block_invoke in Parse(PF_AFURLConnectionOperation.o)
      -[PF_AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in Parse(PF_AFURLConnectionOperation.o)
  "_SecTrustGetCertificateAtIndex", referenced from:
      -[PF_AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in Parse(PF_AFURLConnectionOperation.o)
  "_SecTrustGetCertificateCount", referenced from:
      -[PF_AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in Parse(PF_AFURLConnectionOperation.o)
  "_UTTypeCopyPreferredTagWithClass", referenced from:
      -[PFFile getMimeType] in Parse(PFFile.o)
  "_UTTypeCreatePreferredIdentifierForTag", referenced from:
      -[PFFile getMimeType] in Parse(PFFile.o)
  "_kCFStreamPropertyFTPAttemptPersistentConnection", referenced from:
      -[PFHTTPCommand scheduleInCurrentThread] in Parse(PFHTTPCommand.o)
  "_kCFStreamPropertyHTTPAttemptPersistentConnection", referenced from:
      -[PFHTTPCommand scheduleInCurrentThread] in Parse(PFHTTPCommand.o)
  "_kSecAttrAccessible", referenced from:
      +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o)
  "_kSecAttrAccessibleAfterFirstUnlock", referenced from:
      +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o)
  "_kSecAttrAccount", referenced from:
      +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o)
  "_kSecAttrService", referenced from:
      +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o)
  "_kSecClass", referenced from:
      +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o)
  "_kSecClassGenericPassword", referenced from:
      +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o)
  "_kSecMatchLimit", referenced from:
      +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o)
  "_kSecMatchLimitOne", referenced from:
      +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o)
  "_kSecReturnData", referenced from:
      +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o)
  "_kSecValueData", referenced from:
      +[PFInternalUtils saveToKeychain:data:] in Parse(PFInternalUtils.o)
  "_kUTTagClassFilenameExtension", referenced from:
      -[PFFile getMimeType] in Parse(PFFile.o)
  "_kUTTagClassMIMEType", referenced from:
      -[PFFile getMimeType] in Parse(PFFile.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


推荐答案

您必须在项目中导入以下所有框架才能使用parse.com框架并删除错误。

You have to import all this following frameworks in your project to use parse.com frameworks and remove errors.

AudioToolbox.framework
CFNetwork.framework
CoreGraphics.framework
CoreLocation.framework
libz.1.1.3.dylib
MobileCoreServices.framework
QuartzCore.framework
Security.framework
StoreKit.framework
SystemConfiguration.framework

这篇关于解析Apple Mach O-Linker错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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