moai/moai-dev — Issue #57: Crash in iOS 5 simulator
Author: seanbhouse
Created: 2012-01-11 20:29:40+00:00
State: open

It seems that line 107 of AKU-iphone.mm causes the problem:
MOAIEnvironment::Get ().SetCountryCode ( [[[ NSLocale currentLocale ] objectForKey: NSLocaleCountryCode ] UTF8String ]);
The reason is that the inner expression
[[ NSLocale currentLocale ] objectForKey: NSLocaleCountryCode ]