Attempting to add a language to a localized Info.plist causes Xcode to crash
| Originator: | les | ||
| Number: | rdar://22919016 | Date Originated: | 30-Sep-2015 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | Version 7.0.1 (7A1001) |
| Classification: | Crash | Reproducible: | Always |
Summary: Attempting to add a language to a localized Info.plist causes Xcode to crash Steps to Reproduce: 1. Open Xcode and create a new project (e.g. Single View Application with all the default settings). 2. Select "Info.plist" in the file navigator. 3. In the Utilities sidebar, click the "Localize..." button. 4. At the prompt, choose a language (e.g. "Base" or "English"). 5. In the Utilities sidebar, under Localization, click any unchecked language checkbox (e.g. "Base" or "English"). Expected Results: I expected the unchecked language to become checked, and for the localization for that language to be added. Actual Results: Xcode crashes. See attached crash log. Version: Version 7.0.1 (7A1001) Crash Log: Process: Xcode [12083] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 7.0.1 (8228) Build Info: IDEFrameworks-8228000000000000~5 App Item ID: 497799835 App External ID: 813434267 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Xcode [12083] User ID: 501 Date/Time: 2015-09-30 11:42:28.281 -0700 OS Version: Mac OS X 10.10.5 (14F27) Report Version: 11 Anonymous UUID: F3384594-E7E7-D2D7-3E54-250C53081BD2 Sleep/Wake UUID: 158FC705-0112-45EB-B894-9994D47D607D Time Awake Since Boot: 710000 seconds Time Since Wake: 5600 seconds Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Application Specific Information: ProductBuildVersion: 7A1001 UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[NSPathStore2 stringByAppendingPathExtension:]: nil argument UserInfo: (null) Hints: None Backtrace: 0 0x00007fff879d4024 __exceptionPreprocess (in CoreFoundation) 1 0x000000010430e734 DVTFailureHintExceptionPreprocessor (in DVTFoundation) 2 0x00007fff8f80d76e objc_exception_throw (in libobjc.A.dylib) 3 0x00007fff879d3eed +[NSException raise:format:] (in CoreFoundation) 4 0x00007fff8e6798b3 -[NSPathStore2 stringByAppendingPathExtension:] (in Foundation) 5 0x000000010e87486c -[Xcode3VariantGroup proposedFilePathForLocalization:fileType:] (in DevToolsCore) 6 0x0000000118565c8c -[Xcode3LocalizationCommands addLocalizedResourceWithDefaultLocale:variantGroup:inspectorLocale_locale:inspectorLocale_fileDataType:conversionFileDataType:fileDataType:allowsConversion:operationCompletionBlock:] (in Xcode3UI) 7 0x0000000118540c80 -[Xcode3LocalizationsInspector addResourceForInspectorLocale:] (in Xcode3UI) 8 0x0000000118542598 -[Xcode3LocalizationsInspector tableView:setObjectValue:forTableColumn:row:] (in Xcode3UI) 9 0x00007fff85d4d509 -[NSTableView _tryCellBasedMouseDown:atRow:column:withView:] (in AppKit) 10 0x00007fff85cccf4c -[NSTableView mouseDown:] (in AppKit) 11 0x00007fff861852dc -[NSWindow _reallySendEvent:isDelayedEvent:] (in AppKit) 12 0x00007fff85b14c86 -[NSWindow sendEvent:] (in AppKit) 13 0x000000010576731e -[IDEWorkspaceWindow sendEvent:] (in IDEKit) 14 0x00007fff85b11212 -[NSApplication sendEvent:] (in AppKit) 15 0x000000010551dae9 -[IDEApplication sendEvent:] (in IDEKit) 16 0x00007fff85a3ab68 -[NSApplication run] (in AppKit) 17 0x00007fff859b7244 NSApplicationMain (in AppKit) 18 0x00007fff905025c9 start (in libdyld.dylib) é! abort() called Application Specific Signatures: NSInvalidArgumentException Application Specific Backtrace 1: 0 CoreFoundation 0x00007fff879d403c __exceptionPreprocess + 172 1 DVTFoundation 0x000000010430e734 DVTFailureHintExceptionPreprocessor + 194 2 libobjc.A.dylib 0x00007fff8f80d76e objc_exception_throw + 43 3 CoreFoundation 0x00007fff879d3eed +[NSException raise:format:] + 205 4 Foundation 0x00007fff8e6798b3 -[NSPathStore2 stringByAppendingPathExtension:] + 113 5 DevToolsCore 0x000000010e87486c -[Xcode3VariantGroup proposedFilePathForLocalization:fileType:] + 470 6 Xcode3UI 0x0000000118565c8c -[Xcode3LocalizationCommands addLocalizedResourceWithDefaultLocale:variantGroup:inspectorLocale_locale:inspectorLocale_fileDataType:conversionFileDataType:fileDataType:allowsConversion:operationCompletionBlock:] + 621 7 Xcode3UI 0x0000000118540c80 -[Xcode3LocalizationsInspector addResourceForInspectorLocale:] + 681 8 Xcode3UI 0x0000000118542598 -[Xcode3LocalizationsInspector tableView:setObjectValue:forTableColumn:row:] + 1183 9 AppKit 0x00007fff85d4d509 -[NSTableView _tryCellBasedMouseDown:atRow:column:withView:] + 1844 10 AppKit 0x00007fff85cccf4c -[NSTableView mouseDown:] + 5003 11 AppKit 0x00007fff861852dc -[NSWindow _reallySendEvent:isDelayedEvent:] + 14125 12 AppKit 0x00007fff85b14c86 -[NSWindow sendEvent:] + 470 13 IDEKit 0x000000010576731e -[IDEWorkspaceWindow sendEvent:] + 156 14 AppKit 0x00007fff85b11212 -[NSApplication sendEvent:] + 2504 15 IDEKit 0x000000010551dae9 -[IDEApplication sendEvent:] + 739 16 AppKit 0x00007fff85a3ab68 -[NSApplication run] + 711 17 AppKit 0x00007fff859b7244 NSApplicationMain + 1832 18 libdyld.dylib 0x00007fff905025c9 start + 1 19 ??? 0x0000000000000001 0x0 + 1 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff88f86286 __pthread_kill + 10 1 libsystem_c.dylib 0x00007fff8fe6c9b3 abort + 129 2 com.apple.dt.IDEKit 0x00000001057404fb +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1481 3 com.apple.dt.IDEKit 0x0000000105741794 -[IDEAssertionHandler handleUncaughtException:] + 1077 4 com.apple.dt.IDEKit 0x0000000105741860 IDEHandleUncaughtException + 94 5 com.apple.AppKit 0x00007fff85a3ac1c -[NSApplication run] + 891 6 com.apple.AppKit 0x00007fff859b7244 NSApplicationMain + 1832 7 libdyld.dylib 0x00007fff905025c9 start + 1
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!