私は iOS 開発が初めてで、クラスのインスタンスを作成する際に問題に直面しています。
私はunknown.frameworkという名前のフレームワークを持っていて、クラスAbc.hを持っています
そのクラスのインスタンスを作成しているときに、アプリケーションがクラッシュします。
コードは。
IN secondAppDelegate.h
#import <unknownToolkit/unknown.h>
@interface secondAppDelegate : UIResponder <UIApplicationDelegate>
{
Abc *method;
}
@property (strong, nonatomic)Abc *method;
In secondAppDelegate.m
Abc *method = [Abc sharedInstance];
[method callAnInstanceMethod];
unknown.frmaework はプライベート フレームワークで、Abc.h はクラスです。
and the error report is :
2013-05-17 14:48:58.574 AbcDemo[1832:12b03] -[__NSArrayI mapUsingBlock:usingFilter:]: unrecognized selector sent to instance 0x8220a70
2013-05-17 14:48:58.600 AbcDemo[1832:12b03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI mapUsingBlock:usingFilter:]: unrecognized selector sent to instance 0x8220a70'
*** First throw call stack:
(0x1d49012 0x1335e7e 0x1dd44bd 0x1d38bbc 0x1d3894e 0x5ab60 0x21f19 0x2bda 0x277157 0x277747 0x27894b 0x289cb5 0x28abeb 0x27c698 0x1ca4df9 0x1ca4ad0 0x1cbebf5 0x1cbe962 0x1cefbb6 0x1ceef44 0x1ceee1b 0x27817a 0x279ffc 0x28dd 0x2805)
libc++abi.dylib: terminate called throwing an exception
コードは iphonesimiulator -> user/include -> dispatchch -> once.h でクラッシュしています
コードがクラッシュしている行は次のとおりです。
_dispatch_once(dispatch_once_t *predicate, dispatch_block_t block)
{
if (DISPATCH_EXPECT(*predicate, ~0l) != ~0l) {
dispatch_once(predicate, block);
}
}
私を助けてください
前もって感謝します。