`po` command fails to work after importing XCFramework

We imported pure Swift XCFramework into Swift application. On setting the breaking point and trying the po command the following error is seen

error: virtual filesystem overlay file '/Users/rakshitha/Library/Developer/Xcode/DerivedData/ABC-agkiherlqdmvaeakrqtfvsowceuq/Build/Intermediates.noindex/ArchiveIntermediates/ABCDE/IntermediateBuildFilesPath/ABC.build/Release-iphonesimulator/ABCDE.build/all-product-headers.yaml' not found
error: virtual filesystem overlay file '/Users/rakshitha/Library/Developer/Xcode/DerivedData/ABC-agkiherlqdmvaeakrqtfvsowceuq/Build/Intermediates.noindex/ArchiveIntermediates/ABCDE/IntermediateBuildFilesPath/MoEngage.build/Release-iphonesimulator/ABCDE.build/all-product-headers.yaml' not found

error: couldn't IRGen expression. Please check the above error messages for possible root causes.

Solutions Tried:

  1. XCFramework was created with dsym and BCSymbolMaps
  2. XCFramework created without dsym and BCSymbolMaps
  3. Set the Other Swift Flags to -Xfrontend -no-serialize-debugging-options

None of the above solutions worked

Note:

  1. The XCFramework was generated in Xcode 13.4.
  2. The Swift version for generated XCFramework is Swift 5.
  3. XCFramework contains support for iOS and tvOS.
  4. The Sample application was tested in the same Xcode and swift version.

Below is the script used to generate XCFramework

I don’t have an answer for you but I do have a suggestion as to where to look.

ps I still haven’t watch that video myself )-:

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

@eskimo Thanks for your reply. The solution that worked was to rename one of the framework and remove dsym files while generating the XCFramework. However moving forward we need to add dsym files.Is there any additional things to be taken care of in XCFramework so that on adding dsym files,po command works as expected.

Did you work through the steps in the WWDC video I referenced? What did swift-healthcheck report?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

On manually integrating the framework and running the command image list MOCore the output is

id /Users/rakshitha/Library/Developer/Xcode/DerivedData/swifttesting-cnvmmbfljmnratdcgnfpynlryijy/Build/Products/Debug-iphonesimulator/swifttesting.app/Frameworks/MOCore.framework/MOCore/System/Volumes/Data/Users/rakshitha/Documents/MoEngage-iPhone-SDK/MoEFramework/MoEngage/XCFramework/MOCore.xcframework/ios-arm64_i386_x86_64-simulator/dSYMs/MOCore.framework.dSYM/Contents/Resources/DWARF/MOCore

Where the framework resides in the path

/Users/rakshitha/Documents/MoEngage-iPhone-SDK/MoEFramework/MoEngage/XCFramework/MOCore.xcframework/ios-arm64_i386_x86_64-simulator/dSYMs/MOCore.framework.dSYM/Contents/Resources/DWARF/MOCore

Find the attachment below for the output of the swift-healthcheck command. (The attachment has partial output only due to size restriction)

Looking forward for your assistance

`po` command fails to work after importing XCFramework
 
 
Q