Xcode 7 debug output: “ERROR:177: timed out…mMajorChangePending=0”

前端 未结 3 540
有刺的猬
有刺的猬 2021-02-05 05:43

I am seeing the following error in Xcode 7 build 6 debug console when running my app in the iOS 9 simulator:

2015-08-27 11:31:25.464 Reps[87841:2572333] 11:31:25         


        
3条回答
  •  耶瑟儿~
    2021-02-05 05:56

    This works for me

    var sound :SystemSoundID = 0

    func Sound() {

        let rightSound = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("sound", ofType: "wav")!)
    
        AudioServicesCreateSystemSoundID(rightSound, &sound)
    
        AudioServicesPlaySystemSound(self.sound);
    
    
    }
    

提交回复
热议问题