Added #if hack to support iCloud syncing in iOS Simulator