0

だから、theos経由で私のiPadからコンパイルするときのエラーコードはここにあります

  Making all for bundle iNotitweet...
  Compiling iNotitweetController.m...
  In file included from iNotitweetController.m:2:
  /var/theos/include/Twitter/Twitter.h:7:36: error: _ABAddressBookAddRecord.h: No
 such file or directory
 In file included from /var/theos/include/Twitter/Twitter.h:9,
             from iNotitweetController.m:2:
 /var/theos/include/Twitter/NSCoding-Protocol.h:8: warning: duplicate declaration for protocol 'NSCoding'
   In file included from iNotitweetController.m:2:
   /var/theos/include/Twitter/Twitter.h:13: error: cannot find interface declaration
   for '_ABAddressBookAddRecord', superclass of 'Twitter'
   iNotitweetController.m: In function '-[iNotitweetController composeTweet]':
   iNotitweetController.m:48: error: 'TWTweetComposeViewController' undeclared (first
   use in this function)
   iNotitweetController.m:48: error: (Each undeclared identifier is reported only once
   iNotitweetController.m:48: error: for each function it appears in.)
   iNotitweetController.m:48: error: 'twtComposer' undeclared (first use in this
   function)
   iNotitweetController.m:50: error: expected expression before '^' token
   make[2]: *** [obj/iNotitweetController.m.o] Error 1
   make[1]: *** [internal-bundle-all_] Error 2
   make: *** [iNotitweet.all.bundle.variables] Error 2

私は rpetrich のヘッダーを使用し、github の freemanrepo から Twitter ヘッダーを盗みました。誰でも、これらのエラーの意味と、_ABAddressBookAddRecord.h を見つけることができる場所を教えてください。このコードhttp://pastebin.com/rArx47Bxとこのチュートリアルhttp ://tumblr.leonears.com/post/17966636490/create-ncwidget-ios .

4

1 に答える 1

0

これらのヘッダーは、古いバージョンの iPhoneOS (iOS になる前でも) の互換性ヘッダーであり、引き続き使用することはお勧めしません。4.3.3 より下のバージョン (または 5.0.1 でさえも) をサポートする必要はありません。ほとんどの人がこれら 2 つのファームウェアの少なくとも 1 つを使用しているためです。最新のヘッダーについては、dyldcache から独自のヘッダーをダンプするか (ここから kennytm の dyld_decache を使用)、iOS 5 の SpringBoard ヘッダーをここで見つけることができます。

于 2012-11-14T02:49:23.720 に答える