Post

Replies

Boosts

Views

Activity

Reply to Doubled text upon Paste action in Xcode 12 Beta 3?
Hello fellow keystroke doubling Xcode restarting beta users! 👋😄 I'm seeing this happen about 1-2x per hour working with Version 12.0 beta 3 (12A8169g) on 10.15.6. Given the reports so far it seems like it's not correlated with macOS version. There seems to be some sort of triggering event that puts the entire UI into the keystroke doubling / bell-on-every-keypress failure mode, which I've only been able to remedy w/ a full Xcode restart. I have yet to narrow down the specific steps that produce this state, but I'll continue to squint at this and report back if I stumble on any more information.
Aug ’20
Reply to AVKit Error
Hello! I'm getting the similar error messages in a SwiftUI application in XCode 12 Beta 3 when I am trying to add sound to the . For my app it seems that the initialization of AVAudioPlayer is what triggers the errors within the iOS Simulator. Here's the relevant snippet of code: import AVFoundation var audioPlayer: AVAudioPlayer? func playSound(sound: String, type: String) { 	if let path = Bundle.main.path(forResource: sound, ofType: type) { 		do { 			print("Want to play sound! file: \(sound) type: \(type)") 			audioPlayer = try AVAudioPlayer(contentsOf: URL(fileURLWithPath: path)) 			audioPlayer?.play() 		} catch { 			print("ERROR: Could not find and play the sound! file: \(sound) type: \(type)") 		} 	} } Errors: 2020-08-02 11:01:42.254964-0500 myapp[1720:143366]	HALCADClient::ConnectToServer: failed to find the AHS sub-server port, Error: 0x10000004 2020-08-02 11:01:47.256608-0500 myapp[1720:143366]	HALCADClient::ConnectToServer: failed to find the AHS sub-server port, Error: 0x10000004 2020-08-02 11:01:47.257136-0500 myapp[1720:143366]	HALDefaultDevice::Initialize: couldn't add the default input device listener, Error: 268435460 (\^P) 2020-08-02 11:01:52.257906-0500 myapp[1720:143366]	HALCADClient::ConnectToServer: failed to find the AHS sub-server port, Error: 0x10000004 2020-08-02 11:01:52.258145-0500 myapp[1720:143366]	HALDefaultDevice::Initialize: couldn't add the default output device listener, Error: 268435460 (\^P) 2020-08-02 11:01:57.259596-0500 myapp[1720:143366]	HALCADClient::ConnectToServer: failed to find the AHS sub-server port, Error: 0x10000004 2020-08-02 11:01:57.260023-0500 myapp[1720:143366]	HALDefaultDevice::Initialize: couldn't add the default system output device listener, Error: 268435460 (\^P) 2020-08-02 11:02:02.260790-0500 myapp[1720:143366]	HALCADClient::ConnectToServer: failed to find the AHS sub-server port, Error: 0x10000004 2020-08-02 11:02:02.261091-0500 myapp[1720:143366]	HALDefaultDevice::Initialize: couldn't add the default shared output device listener, Error: 268435460 (\^P) 2020-08-02 11:02:02.261927-0500 myapp[1720:143366] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000038849a0> F8BB1C28-BAE8-11D6-9C31-00039315CD46 2020-08-02 11:02:02.262654-0500 myapp[1720:143366]	AudioObjectSetPropertyData: no object with given ID 0 2020-08-02 11:02:02.262870-0500 myapp[1720:143366] 83: Failed to set processVolumeScalar on device. Error: 560947818 Want to play sound! file: sound type: mp3 I'm downloading beta 2 to check if the problem persists there and I will follow up.
Aug ’20
Reply to AVFoundation in XCode 12 Beta 3
Thanks Gerrit! Here's a bit more detail for anyone having trouble finding and editing this file. Assuming your Xcode beta 3 is located at /Applications/Xcode-beta.app this file is located at: /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/swift/AVFoundation.swiftmodule/x86_64-apple-macos.swiftinterface I added @available(OSX, unavailable) to lines 71 and 129 of this file.
Aug ’20
Reply to AVKit Error
Update: I've upgraded to Big Sur beta 3 and this problem goes away! Sound is working fine in the iOS Simulator using Xcode Version 12.0 beta 3 (12A8169g) with macOS 11.0 Beta (20A5323l) and the logged errors I pasted above are gone.
Aug ’20