M1 Xcode 13.3 without Rosetta, PO in debug doesn't work

Hi, I have error messages when I try to print some values in debug like "po varname" or "po expression"

I have messages: error: expression failed to parse: error: Couldn't realize type of self.

I use Xcode without rosetta, 13.3

I tried to clear derived data and clean project, it helps but after relaunch Xcode I have the same problem again

Post not yet marked as solved Up vote post of AlbertChb Down vote post of AlbertChb
2.5k views
  •   po self error: expression failed to parse: error: Couldn't realize type of self.

Add a Comment

Replies

When adding manually -add_ast_path and using -Wl on app target, I have an explicit message:

building for iOS Simulator-arm64 but attempting to link with file built for unknown-unsupported file format ( 0xE2 0x9C 0xA8 0x0E 0x01 0x08 0x00 0x00 0x5D 0x0B 0x00 0x00 0x07 0x01 0xB2 0xC0 )

But it works fine without this on Xcode 13.2.1 and Xcode 14.0 beta. It fails only with Xcode 13.3.1 and Xcode 13.4.1. (not tested with Xcode 13.3.0 or Xcode 13.4.0)

+1 Xcode 13.4.1, Monterey 12.4, 14" M1 Pro

This bug can also be reproduced with CocoaPods, with use_frameworks! linkage: :static in Podfile.

I shared a sample code on GitHub if someone is ready to help...

https://github.com/florentmorin/Xcode13LLDBBug