0

プロジェクトでアドレス フレームワークを使用しようとしています。プロジェクトでフレームワーク AddressBookUI.framework と AddressBook.framework をリンクしました。しかし、アプリのビルド中に以下のエラーが発生します。

問題を理解するのを手伝ってください。

Ld "/Users/sathishkumar/Library/Developer/Xcode/DerivedData/Easy_Contacts-eafemguogncacmhgnbfsjtizjcbd/Build/Products/Debug-iphonesimulator/Easy Contacts.app/Easy Contacts" normal i386
    cd "/Users/sathishkumar/projects/Easy Contacts"
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    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/iPhoneSimulator5.1.sdk -L/Users/sathishkumar/Library/Developer/Xcode/DerivedData/Easy_Contacts-eafemguogncacmhgnbfsjtizjcbd/Build/Products/Debug-iphonesimulator -F/Users/sathishkumar/Library/Developer/Xcode/DerivedData/Easy_Contacts-eafemguogncacmhgnbfsjtizjcbd/Build/Products/Debug-iphonesimulator -filelist "/Users/sathishkumar/Library/Developer/Xcode/DerivedData/Easy_Contacts-eafemguogncacmhgnbfsjtizjcbd/Build/Intermediates/Easy Contacts.build/Debug-iphonesimulator/Easy Contacts.build/Objects-normal/i386/Easy Contacts.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/sathishkumar/Library/Developer/Xcode/DerivedData/Easy_Contacts-eafemguogncacmhgnbfsjtizjcbd/Build/Products/Debug-iphonesimulator/Easy Contacts.app/Easy Contacts"

    Undefined symbols for architecture i386:
      "_ABRecordCopyValue", referenced from:
          -[ViewController displayPerson:] in ViewController.o
      "_ABMultiValueGetCount", referenced from:
          -[ViewController displayPerson:] in ViewController.o
      "_ABMultiValueCopyValueAtIndex", referenced from:
          -[ViewController displayPerson:] in ViewController.o
      "_OBJC_CLASS_$_ABPeoplePickerNavigationController", referenced from:
          objc-class-ref in ViewController.o
      "_kABPersonFirstNameProperty", referenced from:
          -[ViewController displayPerson:] in ViewController.o
      "_kABPersonPhoneProperty", referenced from:
          -[ViewController displayPerson:] in ViewController.o
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
4

2 に答える 2

1

ファイルに追加<AddressBook/AddressBook.h>すると、AddressBookUI はまさにそのアドレス帳 UI です。

于 2012-05-20T13:36:10.360 に答える
0

それらのフレームワークを.hファイルにインポートしましたか?

于 2012-05-20T13:28:31.873 に答える