After testing, I was unable to use that option correctly.
I setup a framework target with a single struct in it for testing purposes. I create an xcarchive of the framework this way:
Code Block sh $ xcodebuild -scheme "BrazeKit" -configuration "Release" -sdk "iphones" -archivePath ./.build/xcarchives/BrazeKit/iOS/iphoneos archive
This generates the expected ./.build/xcarchives/BrazeKit/iOS/iphoneos.xcarchive which contains:
Code Block sh . ├── BCSymbolMaps │ ├── 0A25AE50-A721-30A0-BC09-E8CFA503D4A6.bcsymbolmap │ ├── 13B3D8E5-9D37-300A-8EB9-72A33AD89E26.bcsymbolmap │ ├── 7D10C250-E408-334E-92FC-3444B7D0E067.bcsymbolmap │ └── AF8424FB-543E-37E1-A7BF-64DE4BCABD39.bcsymbolmap ├── dSYMs │ └── BrazeKit.framework.dSYM │ └── Contents │ ├── Info.plist │ └── Resources │ └── DWARF │ └── BrazeKit └── # rest omitted for the sake of brevity
I can build an XCFramework from that archive with:
Code Block sh $ xcodebuild -create-xcframework -framework ./.build/xcarchives/BrazeKit/iOS/iphoneos.xcarchive/Products/Library/Frameworks/BrazeKit.framework -output BrazeKit.xcframework
But I am unable to attach any debug symbols using -debug-symbols:
Code Block sh $ xcodebuild -create-xcframework -framework ./.build/xcarchives/BrazeKit/iOS/iphoneos.xcarchive/Products/Library/Frameworks/BrazeKit.framework -debug-symbols ./build/xcarchives/BrazeKit/iOS/iphoneos.xcarchive/dSYMs/BrazeKit.framework.dSYM -output BrazeKit.xcframework error: the path does not point to a valid debug symbols file: ./.build/xcarchives/BrazeKit/iOS/iphoneos.xcarchive/dSYMs/BrazeKit.framework.dSYM # Using the dSYM package BrazeKit.framework.dSYM
Code Block sh $ xcodebuild -create-xcframework -framework ./.build/xcarchives/BrazeKit/iOS/iphoneos.xcarchive/Products/Library/Frameworks/BrazeKit.framework -debug-symbols ./.build/xcarchives/BrazeKit/iOS/iphoneos.xcarchive/dSYMs/BrazeKit.framework.dSYM/Contents/Resources/DWARF/BrazeKit -output BrazeKit.xcframework error: the path does not point to a valid debug symbols file: ./.build/xcarchives/BrazeKit/iOS/iphoneos.xcarchive/dSYMs/BrazeKit.framework.dSYM/Contents/Resources/DWARF/BrazeKit # Using the file under the DWARF directory in the dSYM package
Whichever dSYM file I pass, I always get the error the path does not point to a valid debug symbols file.
Could you provide an example on how to correctly use the option -debug-symbols?
Thanks,