You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically the call
NSArray *assemblyNames = [[NSBundle mainBundle] infoDictionary][@"TyphoonInitialAssemblies"];
inside
(TyphoonComponentFactory *)factoryFromPlist
results in the exception "objectForKeyedSubscript unrecognized selector sent to instance".
This stackoverflow article and the related blog entry seems to confirm that at the time +load is called, the NSDictioniary may not have the objectForKeyedSubscript dynamically added:
Basically the call
NSArray *assemblyNames = [[NSBundle mainBundle] infoDictionary][@"TyphoonInitialAssemblies"];
inside
results in the exception "objectForKeyedSubscript unrecognized selector sent to instance".
This stackoverflow article and the related blog entry seems to confirm that at the time +load is called, the NSDictioniary may not have the objectForKeyedSubscript dynamically added:
http://stackoverflow.com/questions/13544629/objectforkeyedsubscript-crash-on-ios-5-1
(I got this on OS X 10.7 but probably the same issue will exist on older iOS-es).
And changing the implementation to this seems to fix the issue:
(TyphoonComponentFactory *)factoryFromPlist
{
TyphoonComponentFactory *result = nil;
NSDictionary* dict = [[NSBundle mainBundle] infoDictionary];
NSArray *assemblyNames = [dict objectForKey:@"TyphoonInitialAssemblies"];
The text was updated successfully, but these errors were encountered: