Post

Replies

Boosts

Views

Activity

Reply to Using .mp3 files in Swift Playgrounds project
I had to explicitly update the Package.swift file by adding the "resources" key. For example, I added "Resources" so I would have to create a Resources/ folder, add my .mp3 to that folder, and it should work. Read more in article Bundling resources with a Swift package targets: [ .executableTarget( name: "AppModule", path: ".", resources: [ .process("Resources") ] ) ],
Topic: Programming Languages SubTopic: Swift Tags:
3w
Reply to Using .mp3 files in Swift Playgrounds project
I had to explicitly update the Package.swift file by adding the "resources" key. For example, I added "Resources" so I would have to create a Resources/ folder, add my .mp3 to that folder, and it should work. Read more in article Bundling resources with a Swift package targets: [ .executableTarget( name: "AppModule", path: ".", resources: [ .process("Resources") ] ) ],
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
3w