UITextInputMode.activeInputModes() returns the wrong type and crashes in Xcode 7 GM
| Originator: | david | ||
| Number: | rdar://22643142 | Date Originated: | 2015/9/10 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | Xcode 7 GM |
| Classification: | Serious bug | Reproducible: | Always |
Summary: Prior to the Xcode 7 GM, UITextInputMode.activeInputModes() returned an array of UITextInputMode instances. However, in the Xcode 7 GM, the method signature in the header file and documentation states that it returns an array of Strings, which is incorrect. As a result, code that uses activeInputModes correctly no longer compiles, and attempting to use activeInputModes in a Playground throws an exception. Steps to Reproduce: 1. Create a new Playground. 2. Write the following lines: import UIKit let result = UITextInputMode.activeInputModes() result // Prints the result Expected Results: Result should be an array of UITextInputMode instances. Actual Results: The Playground shows an error: "Execution was interrupted, reason: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)." Version: iOS 9 Notes: Configuration: Xcode 7 GM
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!