Thursday, October 24, 2013

iOS SDK Support

iOS SDK Support

  • Xcode cannot launch your app on a device for debugging after you install the iOS 3.x device debugging support component.
    Unplug and plug-in your device to your Mac, and ensure that you build your app for the armv6 architecture. 10538662

Editing Source Code

  • Xcode doesn’t show code-completion suggestions when there are mismatched braces.
    Turn on the “Automatically insert closing "}"” option in text editing preferences to reduce the number of mismatched braces. 10775381

Debugging

  • Some debugger commands and log expressions in breakpoints fail when using the LLDB debugger because Xcode uses the wrong frame when executing the debugger command or evaluating the log expression.
    If you know what thread the the debugger command or log expression must run relative to, add a breakpoint action that sets the current frame to the appropriate one before the breakpoint action with the problem. 10426977

Debugging: LLDB

  • The variables pane in the debug area does’t display correctly the child values of variables with dynamic types (Objective-C object pointers and virtual C++ pointers).
    Use the console pane in the debug area: enter the commands frame variable *self or frame variable *this to the values.10658091
  • LLDB cannot be used to debug apps on devices running iOS 3.x or iOS 4.x.
    Set GDB instead of LLDB as the debugger in the scheme that builds your app. 10776590

Performance Measurement and Analysis

  • When there are more than one Xcode releases installed on your Mac, Xcode 4.3 may not find your app’s symbols when displaying crash reports and the trace data for instruments.
    To enable Instruments to find your app’s symbols when displaying trace data:
    1. In Instruments, choose File > Re-symbolicate Document.
    2. Search for you app’s name, and locate it in your app’s build directory, such as ~/Library/Developer/Xcode/DerivedData/<MyApp>. 10552213
  • You cannot run System Time Profile from the Instruments icon in the Dock by Control-clicking the icon and choosing System Time Profile.
    Control-click the Instruments icon in the Dock, and select the Allow Tracing of Any Process option. 10755622

Source Control and Snapshots

When Xcode attempts to authenticate Subversion repositories that require approval of a server certificate, one or more svn processes hangs.
Authenticate the server in Terminal.

No comments:

Post a Comment