Search code examples
swiftxcode6lldbxcode6gm

po is not working in swift project Xcode 6 GM


I recently started working on a swift project created in Xcode 6 GM, but it seems I am unable to print any variables using po enter image description here

Any any idea what could be causing this error?


Solution

  • Are you running on a 32-bit device?

    From the Xcode 6.1 beta Release Notes:

    • Expressions like expr, p, and print that are evaluated from the LLDB prompt in the debugger console will fail on 32-bit iOS devices. However, they will work on 64-bit devices and the iOS simulator. (18249931)