If I try to open/create any project Xcode takes at least ~1 hour to open it.
I had this problem with Xcode 13 but it also recurs in Xcode14, I also tried to reinstall the software.
My specs:
M1 MacBook Pro
macOS Monterey 12.5.1
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
language
import UIKit
import AVFoundation
class ViewController: UIViewController {
var audio: AVAudioPlayer?
override func viewDidLoad() {
super.viewDidLoad()
do {
let path = Bundle.main.path(forResource: "music.mp3", ofType:nil)!
let url = URL(fileURLWithPath: path)
audio = try AVAudioPlayer(contentsOf: url)
audio?.play()
} catch {
print("error: \(error)")
}
}
}
It works on iOS 14 Simulator.
Errors: HALB_IOBufferManager_Client::GetIOBuffer: the stream index is out of range