Escolar Documentos
Profissional Documentos
Cultura Documentos
This document contains release notes for Xcode 4.5 developer preview. It discusses new features and issues present in Xcode 4.5 developer preview and issues resolved from earlier Xcode releases.
Installation
This preview release of Xcode 4.5 is distributed as a single application bundle, Xcode45-DP1.app. To install Xcode during the preview period, open the downloaded DMG le and drag Xcode45-DP1.app to your Applications folder. Within Xcode, you can launch additional developer tools, such as Instruments and FileMerge, via the menu item Xcode > Open Developer Tool. You can then keep the tool in your Dock for access when Xcode is not running.
Interface Builder
Storyboards support view controller containment. To install a view controller inside of another view controller's view, add a container view from the library and connect an embed segue to the destination. At runtime, the scene will be installed prior to invoking the -viewDidLoad method on the source view controller. (9630246) Modal segues can be presented without animation. (10384049) Unwind segues can allow transitioning to existing instances of scenes in a storyboard. (9211697) A new method in the UIViewController class, shouldPerformSegueWithIdentifier:sender:, allows conditional triggering of segues. (9447109)
Interface Builder
When mousing over views with the option key held down, layering of the distance measurement indicators has been corrected so that the indicators are not obscured by other adornments, such as the resize handles. (8204499) The -prepareForSegue:sender: method is invoked before the -viewDidLoad method is received on the destination of a popover segue's view controller object. (10535799) Top-level objects for a storyboard view controller object are retained while the view controller object is alive. (10167207)
For more information, read Adding an Info.plist to Single-File Tools at <https://developer.apple.com/library/mac/documentation/Security/Conceptual/CodeSigningGuid e/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4-SW6>.
Localization
Unchecking the Use Base Internationalization checkbox in the Project editor removes localized resources from your project. If you select Delete localized resources from disk, your les are moved to the Trash. Otherwise, the les remain in the Base.lproj folder (11603467) Workaround: To add the removed resources back to your project: 1. Either go to the Base.lproj folder within your project or open the Trash 2. Move the resources that were removed from your project into your original localization (.lproj) folder 3. Drag the resources from the original localization folder into the project folder in the Project navigator Converting xib and storyboard documents to use Base internationalization may lead to broken le references (red lenames in the Project navigator). (11616103) Workaround: Remove the broken reference and add it manually as follows : 1. In the Project navigator, select the broken references and delete them 2. Select the missing xib and storyboard documents in the Finder 3. Drag the missing xib and storyboard documents into the project folder After using the base internationalization feature of the project editor, Xcode automatically generates strings les for each of your Interface Builder documents. To resynchronize your strings les with new content from your Interface Builder documents, use ibtool --generate-strings-file to produce new strings les and merge the new strings into your existing localized strings les manually. (11462724)
SCM
Switching branches using the Repository organizer while the Version editor is open may cause a crash. (11286188) Workaround: Switch to the Standard editor before switching branches.
Linker
The -ObjC ag does not load object les from static libraries that contain categories but no classes. (11617952) Workaround: Use the all_load or force_load ags instead of -ObjC. For more information, read Building Objective-C static libraries with categories at <https://developer.apple.com/library/mac/#qa/qa2006/qa1490.html>
LLDB
The po, print, and expression commands cannot access enumerators directly. (11485295) ! Workaround: Use the full name of the enumeration; for example, print MyEnum::e1.
Interface Builder
The Interface Builder editor does not show constraints on views focused in the editor or top level views. (11543047) Workaround: The constraints are present and can be selected in the document outline view or the jump bar and edited by selecting the view and using the Size inspector. After opening a storyboard document in the Versions editor, Xcode may display it as an XML document. (10560358) Workaround: To view the storyboard document using the Interface Builder editor, control-click on the document in the Project navigator and choose Open As > Interface Builder iOS Storyboard. Unwind segues do not dismiss popovers. (11578190)
OpenGL ES Tools
The OpenGL ES Frame debugger and OpenGL ES performance analysis may cease to function correctly after restarting a device running iOS 6.0 beta 1. (11617641) ! Workaround: Restore iOS 6 beta 1 on the device to use the OpenGL ES Frame debugger and OpenGL ES performance analysis. To avoid this state, do not reboot the device once it has been enabled for development. The OpenGL ES Frame debugger and OpenGL ES performance analysis can experience a delay when you capture a frame during the rst few seconds of your app's execution. (11511690) ! Workaround: Allow your app to run for a few seconds before capturing a frame.