ios – SPM useful resource file just isn’t accessible from Catalyst app


We have now a SPM by which we included a caf file, is copied to the bundle by means of the next code

sources: [
    .copy("Resources/silence.caf")
]

The SwiftUI iOS app has no drawback studying the caf file from bundle path

file:///Customers/{identify}/Library/Developer/CoreSimulator/Units/B75B8483-D213-4CB9-B30B-462047FA9E1E/knowledge/Containers/Bundle/Software/A9D40BBE-7F25-4145-A750-85E6C19202E1/{app-name}.app/{spm-name}.bundle/silence.caf

However the Catalyst app fails to learn saying No such file or listing, however it does exist. CMD + Shift + G fails as nicely and I needed to proper click on – present content material on the .app folder.

file:///Customers/{identify}/Library/Developer/Xcode/DerivedData/{project-name}-ccnjwvhsanbnmkhdqdcgyipagqsg/Construct/Merchandise/Debugpercent20(Staging)-maccatalyst/{app-name}.app/Contents/Sources/{spm-name}.bundle/Contents/Sources/silence.caf

I hope this doesn’t sound complicated. Is that this anticipated behaviour? What could be the repair to make it work for Mac Catalyst app?

Surroundings

  • Mac OS – 13.0.1
  • Xcode – 14.2
  • swift-driver model: 1.62.15
  • Apple Swift model 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles