Hi 👋,
We have a SPM in which we included a caf
file, is copied to the bundle through the following code
resources: [
.copy("Resources/silence.caf")
]
The SwiftUI iOS app has no problem reading the caf
file from bundle path
file:///Users/{name}/Library/Developer/CoreSimulator/Devices/B75B8483-D213-4CB9-B30B-462047FA9E1E/data/Containers/Bundle/Application/A9D40BBE-7F25-4145-A750-85E6C19202E1/{app-name}.app/{spm-name}.bundle/silence.caf
But the Catalyst app fails to read saying No such file or directory, but it does exist. CMD + Shift + G fails as well and I had to right click - show content
on the .app
folder.
file:///Users/{name}/Library/Developer/Xcode/DerivedData/{project-name}-ccnjwvhsanbnmkhdqdcgyipagqsg/Build/Products/Debug%20(Staging)-maccatalyst/{app-name}.app/Contents/Resources/{spm-name}.bundle/Contents/Resources/silence.caf
I hope this does not sound confusing. Is this expected behaviour? What would be the fix to make it work for Mac Catalyst app?
Environment
- Mac OS - 13.0.1
- Xcode - 14.2
- swift-driver version: 1.62.15
- Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)