プロジェクト内でレストキットを使用しています。次の方法でパーサーの構成をセットアップしようとしまし
た。
[[RKParserRegistry sharedRegistry] setParserClass:[RKJSONParserJSONKit class] forMIMEType:@"text/javascript"];
レストキットのドキュメントのように、パーサーのライブラリをインポートしました
#import <RestKit/JSONKit.h>
しかし、常にエラー
宣言されていない識別子「RKJSONParserJSONKit」の使用
また、ヘッダーをその場所からインポートして修正しようとしました:
#import <RestKit/Code/Support/Parsers/JSON/RKJSONParserJSONKit.h>
それは機能しませんが、パーサーに必要なファイルをコピーしてプロジェクトにファイルとして追加しようとすると、好きな人が私に与えてくれます:
シンボル _OBJC_METACLASS_$_RKJSONParserJSONKit を複製: /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/RKJSONParserJSONKit.o /Users/reserveout/Desktop/ReserveOutApplication/ Build/Products/Debug-iphonesimulator/libRestKit.a(RKJSONParserJSONKit.o) シンボル _OBJC_CLASS_$_RKJSONParserJSONKit が重複しています: /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects- normal/i386/RKJSONParserJSONKit.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(RKJSONParserJSONKit.o) 重複シンボル _RKLogInitialize:/Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/RKLog.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator /libRestKit.a(RKLog.o) の重複シンボル _RKLogConfigureFromEnvironment: /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/RKLog.o /Users /reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(RKLog.o) の重複シンボル _RKLogLevelForString: /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication .build/Objects-normal/i386/RKLog.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(RKLog.o) 重複シンボル _RKLogValidationError in: /Users/reserveout/Desktop/ReserveOutApplication/ Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/RKLog.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(RKLog.o) /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/RKLog.o /Users/reserveout/Desktop/ReserveOutApplication/Build/ の重複シンボル _RKLogIntegerAsBinary Products/Debug-iphonesimulator/libRestKit.a(RKLog.o) /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/ でシンボル _lcl_configure_by_component を複製します。 /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/ のビルド/製品/Debug-iphonesimulator/libRestKit.a(lcl.o) 重複シンボル _lcl_configure_by_identifier /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(lcl.o) 重複するシンボル _lcl_configure_by_header 内: / Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/ /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/ の libRestKit.a(lcl.o) 重複シンボル __lcl_component_header reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.(lcl.o) 重複シンボル _lcl_configure_by_name: /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/ Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(lcl.o) シンボル __lcl_component_name が重複しています: /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/ Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(lcl.o) シンボル __lcl_level_header が重複しています: /Users/reserveout/Desktop/ReserveOutApplication/Build/中間体/ReserveOutApplication。build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(lcl.o) シンボル __lcl_level_header_1 が重複しています: / Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/ /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/ 内の libRestKit.a(lcl.o) 重複シンボル __lcl_level_header_3 reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(lcl.o) シンボル __lcl_level_name の重複: /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/ /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/ でビルド/製品/Debug-iphonesimulator/libRestKit.a(lcl.o) 重複シンボル __lcl_version i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(lcl.o) ld: アーキテクチャ i386 のシンボルが 19 個重複しています。clang: エラー: リンカー コマンドが終了コード 1 で失敗しました ( -v を使用して呼び出しを確認します)/Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator /libRestKit.a(lcl.o) シンボル __lcl_version の重複: /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users /reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(lcl.o) ld: アーキテクチャ i386 のシンボルが 19 個重複しています。clang: エラー: リンカー コマンドが終了コード 1 で失敗しました (-v を使用して呼び出しを確認してください)/Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator /libRestKit.a(lcl.o) シンボル __lcl_version の重複: /Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users /reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(lcl.o) ld: アーキテクチャ i386 のシンボルが 19 個重複しています。clang: エラー: リンカー コマンドが終了コード 1 で失敗しました (-v を使用して呼び出しを確認してください)build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(lcl.o) 重複シンボル __lcl_version in: /Users/reserveout/Desktop/ReserveOutApplication/ Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(lcl.o) ld: アーキテクチャ i386 のシンボルが 19 個重複しています。build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(lcl.o) 重複シンボル __lcl_version in: /Users/reserveout/Desktop/ReserveOutApplication/ Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator/libRestKit.a(lcl.o) ld: アーキテクチャ i386 のシンボルが 19 個重複しています。/Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator /libRestKit.a(lcl.o) ld: アーキテクチャ i386 のシンボルが 19 個重複しています。/Users/reserveout/Desktop/ReserveOutApplication/Build/Intermediates/ReserveOutApplication.build/Debug-iphonesimulator/ReserveOutApplication.build/Objects-normal/i386/lcl.o /Users/reserveout/Desktop/ReserveOutApplication/Build/Products/Debug-iphonesimulator /libRestKit.a(lcl.o) ld: アーキテクチャ i386 のシンボルが 19 個重複しています。