Xcode - Localize XIB Causes Crash Until Restart

Originator:evan
Number:rdar://13935037 Date Originated:19-May-2013 11:45 PM
Status:Open Resolved:
Product:Developer Tools Product Version:4.6.2
Classification:Serious Bug Reproducible:Always
 
Summary:

Localizing a xib in an iOS project that uses "Base Internationalization" causes a crash when debugging the app on device or in simulator, but the crash magically stops when you quit Xcode and relaunch Xcode.

Steps to Reproduce:

Process:

(Assumes a project that has chosen "Use Base Internationalization" in the Project's Info)

1. Click on a .xib resource in the File Navigator, which loads Interface Builder

2. Using the File Inspector, click the Localize button

3. A modal presents asking which language you would like to use ("Base" was unavailable to me, so I picked "English")

    3a. Try to clean, build, and run to device or simulator - crash with message: ***Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle:***

4. In the Localized section of the File Inspector place a checkmark is next next to Base

    4a. Try to clean, build, and run to device or simulator - crash with the same message as before

5. From the picker for the English internationalization, already selected is "Interface Builder Cocoa Touch XIB" so let's try "Localizable Strings"

    5a. Try to clean, build, and run to device or simulator - crash with the same message as before

Expected Results:

Any of those mid-point clean, build, and run steps should have worked.

Actual Results:

Only upon quitting Xcode and relaunching Xcode will the project build and run without problems.

Regression:

I only can confirm that after going through all five steps and finally quitting the crashes stop.

Notes:

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!