FailedToAnalyzeBuiltTargetDescription: Could not analyze the built target description for Views to create the preview.

Xcode Preview is not working. Successed to build Preview but error message displays like below:

I think it's maybe related with loader path followed by error details below. I created xcproj file using tuist 4.19.0. How can I fix this issue?

So sorry you're running into this. And thank you so much for sharing these diagnostic details. From what we can tell this looks familiar and we're pretty sure this was resolved in the latest Xcode 16.1 beta. Can you download that and give it a try? Let us know if it works or not for you.

I am experiencing the same issue on Xcode 16.1 (16B40), when merged binary is enabled, erroring (redacted my library name with <<X>>):

    |  ==================================
    |
    |  |  CouldNotParseInput
    |  |
    |  |  ==================================
    |  |
    |  |  |  FailedParsingMachObjectFile
    |  |  |
    |  |  |  MachO data could not be parsed for: <<X>>
    |  |  |  Reason: Underlying failure reading data
    |  |  |  Data header bytes: []
    |  |  |  Data header ASCII: "<nil>"
    |  |  |
    |  |  |  ==================================
    |  |  |
    |  |  |  |  NSError.NSCocoaErrorDomain.260: The file “<<X>>” couldn’t be opened because there is no such file.
    |  |  |  |
    |  |  |  |  NSCocoaErrorDomain (260):
    |  |  |  |  ==NSURL: <<X>> -- file:///
    |  |  |  |  ==NSFilePath: /<<X>>
    |  |  |  |
    |  |  |  |  ==================================
    |  |  |  |
    |  |  |  |  |  NSError
    |  |  |  |  |
    |  |  |  |  |  NSError: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"
FailedToAnalyzeBuiltTargetDescription: Could not analyze the built target description for Views to create the preview.
 
 
Q