首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MKStoreKit错误

MKStoreKit错误
EN

Stack Overflow用户
提问于 2012-10-09 23:15:44
回答 1查看 3.4K关注 0票数 7

我在MKStoreKit 5中遇到了这个错误。我在所有的MKStoreKit文件上添加了-objc-arc标志,但我得到了这个错误。

代码语言:javascript
复制
Ld /Users/Benoit/Library/Developer/Xcode/DerivedData/NanoWar-fpyxztssnpchdoalmoynsjjmsekg/Build/Products/Debug-iphonesimulator/NanoWar.app/NanoWar normal i386
    cd /Users/Benoit/Workshop/Dropbox/NanoWar2_Iphone
    setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -L/Users/Benoit/Library/Developer/Xcode/DerivedData/NanoWar-fpyxztssnpchdoalmoynsjjmsekg/Build/Products/Debug-iphonesimulator -L/Users/Benoit/Workshop/Dropbox/NanoWar2_Iphone/NanoWar2/libs/TestFlightSDK1.0 -L/Users/Benoit/Workshop/Dropbox/NanoWar2_Iphone/../../iOS/Chartboost -L/Users/Benoit/Workshop/Dropbox/NanoWar2_Iphone/NanoWar2/libs/Chartboost -F/Users/Benoit/Library/Developer/Xcode/DerivedData/NanoWar-fpyxztssnpchdoalmoynsjjmsekg/Build/Products/Debug-iphonesimulator -F/Users/Benoit/Workshop/Dropbox/NanoWar2_Iphone -filelist /Users/Benoit/Library/Developer/Xcode/DerivedData/NanoWar-fpyxztssnpchdoalmoynsjjmsekg/Build/Intermediates/NanoWar.build/Debug-iphonesimulator/NanoWar.build/Objects-normal/i386/NanoWar.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -lz -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -framework StoreKit -weak_framework Social -weak_framework Twitter -weak_framework AdSupport -weak-lSystem -lz -framework GameKit -weak_framework SystemConfiguration -framework CFNetwork -framework QuartzCore -framework OpenGLES -framework OpenAL -framework AudioToolbox -framework AVFoundation -framework UIKit -framework Foundation -framework CoreGraphics -lTestFlight -lChartboost -o /Users/Benoit/Library/Developer/Xcode/DerivedData/NanoWar-fpyxztssnpchdoalmoynsjjmsekg/Build/Products/Debug-iphonesimulator/NanoWar.app/NanoWar

Undefined symbols for architecture i386:
  "_SecCertificateCreateWithData", referenced from:
      _checkReceiptSecurity in VerificationController.o
  "_SecItemAdd", referenced from:
      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o
  "_SecItemCopyMatching", referenced from:
      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o
  "_SecItemDelete", referenced from:
      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o
  "_SecItemUpdate", referenced from:
      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o
  "_SecKeyRawVerify", referenced from:
      _checkReceiptSecurity in VerificationController.o
  "_SecPolicyCreateBasicX509", referenced from:
      _checkReceiptSecurity in VerificationController.o
  "_SecTrustCopyInfo", referenced from:
      -[VerificationController validateTrust:error:] in VerificationController.o
  "_SecTrustCopyPublicKey", referenced from:
      _checkReceiptSecurity in VerificationController.o
  "_SecTrustCreateWithCertificates", referenced from:
      _checkReceiptSecurity in VerificationController.o
  "_SecTrustEvaluate", referenced from:
      _checkReceiptSecurity in VerificationController.o
      -[VerificationController validateTrust:error:] in VerificationController.o
  "_SecTrustGetCertificateCount", referenced from:
      _checkReceiptSecurity in VerificationController.o
  "_SecTrustSetAnchorCertificates", referenced from:
      _checkReceiptSecurity in VerificationController.o
  "_SecTrustSetVerifyDate", referenced from:
      _checkReceiptSecurity in VerificationController.o
  "_kSecAttrAccount", referenced from:
      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o
      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o
      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o
  "_kSecAttrLabel", referenced from:
      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o
  "_kSecAttrService", referenced from:
      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o
      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o
      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o
  "_kSecClass", referenced from:
      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o
      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o
      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o
  "_kSecClassGenericPassword", referenced from:
      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o
      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o
      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o
  "_kSecReturnAttributes", referenced from:
      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o
      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o
  "_kSecReturnData", referenced from:
      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o
  "_kSecTrustInfoExtendedValidationKey", referenced from:
      -[VerificationController validateTrust:error:] in VerificationController.o
  "_kSecValueData", referenced from:
      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-10-09 23:18:37

您需要将您的项目与Security.framework链接-转到您的目标设置/构建阶段,并将其添加到“链接二进制文件与库”列表中:

票数 18
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12803222

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档