skip to Main Content

Xcode – SharingMusicPlayer.swift:12:79: Cannot convert value of type 'AVAudioPlayer.Type' to expected argument type 'AVAudioPlayer'

This is what I have in my singleton: import AVFoundation import Foundation class SharingMusicPlayer { static let sharingMusicPlayer = SharingMusicPlayer(backgroundMusicPlayer: AVAudioPlayer) let backgroundMusicPlayer : AVAudioPlayer private init(backgroundMusicPlayer: AVAudioPlayer) { self.backgroundMusicPlayer = backgroundMusicPlayer } func playMusic() { // open and play…

VIEW QUESTION

Xcode – Could not find module 'RxSwift'

I imported BitcoinKit.swift which worked fine but get now the error: Could not find module 'RxSwift' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator Podfile: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '15.2' target 'BTCTransaction5' do use_frameworks! pod 'BitcoinKit.swift' end System macOS Big Sur M1…

VIEW QUESTION
Back To Top
Search