Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I try the following and it seems that it working and got rid of the error. But still not sure why this happened.</p> <blockquote> <p>What happens if you use the good old NSDictionary methods like dictionaryWithObjectsAndKeys: and objectForKey: instead of literals and/or subscript operators? – Macmade</p> </blockquote> <p>the changes to the code as follow.</p> <pre><code>NSArray *keys = [NSArray arrayWithObjects:@"i386","x86_64",@"iPhone1,1",@"iPhone1,2",@"iPhone2,1",@"iPhone3,1",@"iPhone4,1",@"iPhone5,1",@"iPhone5,2",@"iPad1,1",@"iPad2,1",@"iPad2,2",@"iPad2,3",@"iPad2,4",@"iPad2,5",@"iPad2,6",@"iPad2,7",@"iPad3,1",@"iPad3,2",@"iPad3,3",@"iPad3,4",@"iPad3,5",@"iPad3,6",@"iPod1,1",@"iPod2,1",@"iPod3,1",@"iPod4,1",@"iPod5,1", nil]; NSArray *objects = [NSArray arrayWithObjects:@"iPhone Simulator",@"iPad Simulator",@"iPhone",@"iPhone 3G",@"iPhone 3GS",@"iPhone 4",@"iPhone 4S",@"iPhone 5(GSM)",@"iPhone 5(GSM+CDMA)",@"iPad",@"iPad 2(WiFi)",@"iPad 2(GSM)",@"iPad 2(CDMA)",@"iPad 2(WiFi Rev A)",@"iPad Mini(WiFi)",@"iPad Mini(GSM)",@"iPad Mini(GSM+CDMA)",@"iPad 3(WiFi)",@"iPad 3(GSM+CDMA)",@"iPad 3(GSM)",@"iPad 4(WiFi)",@"iPad 4(GSM)",@"iPad 4(GSM+CDMA)",@"iPod 1st Gen",@"iPod 2nd Gen",@"iPod 3rd Gen",@"iPod 4th Gen",@"iPod 5th Gen",nil]; NSDictionary *commonNamesDictionary_ = [NSDictionary dictionaryWithObjects:objects forKeys:keys]; </code></pre> <p>NOTE: I notice that if I comment the code replace it with the above one and then switch it back to the original code and comment the above code, xcode shuts up and continues as normal. Not sure whats its going on with xcode. =/ Hope this helps someone out there or someone can share some light and explain what is happening.</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.
    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