【发布时间】:2014-09-08 23:26:12
【问题描述】:
我正在使用解析框架,突然间出现 39 个错误。即使我删除了框架,它仍然有错误。我已经检查了构建阶段/设置和路径,但没有任何效果。另外,我使用的是 xcode 4.6.3(我有一个过时的 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 文档并添加它声明的任何框架,或查看未解析符号列表并添加相关框架。
-
@zneak 我有多次
-
您可能在您的项目中拥有它们,但请确保您选择了正确的目标成员资格 - 选择框架,然后在文件检查器中查看 Xcode 的右窗格。将它们添加到一个目标而不是您要构建的目标是一个常见的错误。
-
什么是“库和路径”?这些需要包含在构建目标的“与库的链接”部分(在“构建阶段”下)......
标签: ios objective-c xcode parse-framework