嘿我需要一些額外的功能,我的程序,我想用我的iPhone程序一些未記錄的API。 我下載: DumpFrameworks爲Dumpframeworks.pl 和類轉儲 來自:http://ericasadun.com/HeaderDumpKit/iPhone 3.0的轉儲框架無法正常工作?
我把DumpFrameworks.pl在下載 和類轉儲文件在/ usr/local/bin目錄
在終端我運行:
$perl DumpFrameworks.pl
和一些警告和錯誤出現了:
Framework: Accelerate
2009-09-30 08:39:58.776 class-dump[466:903] Warning: This file does not contain any Objective-C runtime information.
Framework: ApplicationServices
2009-09-30 08:40:00.443 class-dump[473:903] Couldn't read file: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/ApplicationServices.framework/ApplicationServices
2009-09-30 08:40:00.449 class-dump[473:903] Couldn't read file: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/ApplicationServices.framework/ApplicationServices
class-dump: Input file (/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/ApplicationServices.framework/ApplicationServices) is neither a Mach-O file nor a fat archive.
... etc (above warnings are very common when I run the perl script)
***但最重要的是,腳本似乎最終失敗了。
我***
(after several warnings like above)
Framework: WebKit
2009-09-30 08:40:24.228 class-dump[662:903] caught exception: expected (many things), got 260
2009-09-30 08:40:24.232 class-dump[662:903] type: ^{WebDocumentLoaderMac=^^?iB^{Frame}{RefPtr<WebCore::MainResourceLoader>="m_ptr"^{MainResourceLoader}}{HashSet<WTF::RefPtr<WebCore::ResourceLoader>,WTF::PtrHash<WTF::RefPtr<WebCore::ResourceLoader> >,WTF::HashTraits<WTF::RefPtr<WebCore::ResourceLoader> > >="m_impl"{HashTable<WTF::RefPtr<WebCore::ResourceLoader>,WTF::RefPtr<WebCore::ResourceLoader>,WTF::IdentityExtractor<WTF::RefPtr<WebCore::ResourceLoader> >,WTF::PtrHash<WTF ... etc (I got many many lines of this kind of code in WebCore framework)
我不知道我做錯了嗎? 我需要一些額外的設置嗎?
我使用Mac OS 10.6.1,想甩在首位3.0框架,但我真正的目標是3.1框架
任何幫助將是非常讚賞。
我怎麼能只給他們打電話? 我也想包含標題,但它們在哪裏?我認爲他們不是。這就是爲什麼我試圖做我想做的事情。 ;) – nacho4d 2009-09-30 02:00:55
您不包括從類轉儲中獲得的頭文件。您在您爲自己編寫的頭文件中公開未公開的API,通常使用類別。未記錄的API和* private * API有非常大的差異。你不應該使用後者。如果Apple發現您使用私有API,您的應用將無法獲得批准。 – Jasarien 2009-09-30 07:59:15
#import「Celestial.h」 進口天體,現在我可以打電話給它。你只需要知道課程標題和信息(方法,ivars) – JoePasq 2009-09-30 13:17:20