Note that there are some explanatory texts on larger screens.

plurals
  1. POgeting error while creating an instance of a class in framework in ios
    primarykey
    data
    text
    <p>I am new to iOS development ,, i am facing a problem while creating a instance of a class .</p> <p>i have a framework named as unknown.framework and it has a class Abc.h </p> <p>when i am creating a a instane of that class , application is crashing .</p> <p>code is .</p> <pre><code>IN secondAppDelegate.h #import &lt;unknownToolkit/unknown.h&gt; @interface secondAppDelegate : UIResponder &lt;UIApplicationDelegate&gt; { Abc *method; } @property (strong, nonatomic)Abc *method; In secondAppDelegate.m Abc *method = [Abc sharedInstance]; [method callAnInstanceMethod]; </code></pre> <p>Where unknown.frmaework is a private framework and Abc.h is class.</p> <pre><code>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 </code></pre> <p>and the code is crashing in iphonesimiulator -> user/include -> dispactch -> once.h</p> <p>and the line ,where code is crashing is :</p> <pre><code>_dispatch_once(dispatch_once_t *predicate, dispatch_block_t block) { if (DISPATCH_EXPECT(*predicate, ~0l) != ~0l) { dispatch_once(predicate, block); } } </code></pre> <p>Please help me </p> <p>thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload