Xcode 4.6.1: Crash when refreshing provisioning profiles

Originator:astralbodies
Number:rdar://13594437 Date Originated:4/7/2013
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 4.6.1 (4H512)
Classification:Crash Reproducible:Always
 
Summary:
When clicking refresh on the provisioning profile section in Xcode Organizer, the app crashes hard after retrieving some data with an exception: UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** setObjectForKey: object cannot be nil (key: teamId)

Steps to Reproduce:
1. Open Xcode
2. Click Organizer button
3. Click Devices tab
4. Click Provisioning Profiles
5. Click Refresh
6. Enter credentials & hit login
7. Crash

Expected Results:
Refreshed profiles and certificates are pulled into Xcode

Actual Results:
Xcode crashes and generates a crash log.

Regression:
This has happened since Xcode 4.5.  It does not matter if I am refreshing from a single team Apple ID or a multiple team Apple ID.

Notes:
I ended up deleting preference files, with no change in behavior.  I then deleted my ~/Library/Developer/Xcode folder and that caused the refresh to work as expected.  This happened both before and after the new provisioning portal was released on 4/6/2013.

Comments

Marked as a dupe of rdar://13402960

By astralbodies at April 9, 2013, 8:07 p.m. (reply...)

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!