iPhoneCoreDataRecipes iCloud Sample Code Crasher - no iCloud account

Originator:mb
Number:rdar://10270797 Date Originated:
Status:Closed Resolved:
Product: Product Version:
Classification: Reproducible:
 
11-Oct-2011 11:50 PM Robert Capps:
'iPhoneCoreDataRecipes.zip' was successfully uploaded

11-Oct-2011 11:50 PM Robert Capps:
Summary:

Starting the app without an iCloud account or logged out of iCloud causes a crash upon launch.

Steps to Reproduce:

1. Log out of iCloud
2. Start Recipes

Expected Results:

App starts normally.

Actual Results:

App immediately crashes.

Regression:

All versions of iPhoneCoreDataRecipes Sample Code for iCloud, all iOS5 seeds.

Notes:

It is critical that developers know the best practices for failing gracefully when a user does not have an iCloud account, and also making sure that users are able to login to iCloud while the app is running, and have it sync their changes.

URLForUbiquityContainerIdentifier returning nil is a common and supported behavior according to the docs, and the sample code should handle this situation and display the best practices for doing so.

Forum posts:
https://devforums.apple.com/message/518031#518031
https://devforums.apple.com/message/518045#518045
https://devforums.apple.com/message/530199#530199 
https://devforums.apple.com/message/551823#551823
https://devforums.apple.com/message/552256#552256
https://devforums.apple.com/message/535118#535118
https://devforums.apple.com/message/554095#554095

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!