Search results for

Popping Sound

19,743 results found

Post

Replies

Boosts

Views

Activity

Not able to write AAC audio with 96 kHz sample rate using AVAudioRecorder or Extended audio file services
Not able to record audio in AAC format with 96 kHz sample rate using AVAudioRecorder or Extended Audio File services with 96 kHz input audio from input device. The audio recording settings used are let settings: [String: Any] = [ AVFormatIDKey: Int(kAudioFormatMPEG4AAC), AVSampleRateKey: sampleRate AVNumberOfChannelsKey: 1 AVEncoderAudioQualityKey: AVAudioQuality.high.rawValue ] When tried using AVAudioEngine using AVAudioFile, AVAudioFile(forWriting: fileURL, // file extension .m4a settings: fileSettings, commonFormat: AVAudioCommonFormat.pcmFormatFloat32, interleaved: interleaved) else { return } got error CodecConverterFactory.cpp:977 unable to select compatible encoder sample rate AudioConverter.cpp:1017 Failed to create a new in process converter -> from 1 ch, 96000 Hz, Float32 to 1 ch, 96000 Hz, aac (0x00000000) 0 bits/channel, 0 bytes/packet, 0 frames/packet, 0 bytes/frame, with status 1718449215
1
0
245
Nov ’25
Reply to Correct SwiftData Concurrency Logic for UI and Extensions
Hi Ziqiao, Your previous guidance to use a ModelActor and PersistentIdentifiers has successfully resolved all my data race crashes. However, I'm left with one persistent UI-level race condition, specifically related to deletion. My View Structure My setup is a standard master-detail pattern, which on iPhone (where I'm seeing this bug) acts like a NavigationStack: ScheduleView (Master): Uses @Query to fetch and display all events in a List. Each row is a NavigationLink. This view also has a swipe-to-delete action on its rows. EventDetailsView (Detail): The destination of the NavigationLink. It contains a Delete button. The Problem: A dismiss() vs. @Query Race When I tap the Delete button in EventDetailsView, I call my actor (e.g., await databaseManager.deleteEvent(id: event.persistentModelID)) and then immediately call dismiss() to pop the view. The Bug: When the app returns to ScheduleView, the row for the just-deleted event is still visibly active in the list for at least 5 seconds before it finally
Nov ’25
Reply to WiFi aware demo paring issue
It sounds like you’re building an accessory and you want to use Wi-Fi Aware to talk to that accessory from iOS. If so, go to Developer > Accessories, download Accessory Design Guidelines for Apple Devices, and review the Wi-Fi Aware chapter. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Nov ’25
Real-time notification
I need to create a background notification that counts down time and uses buttons to add or subtract time. Currently, I'm developing in React Native and using Expo Go to develop my app. I managed to display a simple notification, but I can't get it to work in real-time, so that when the time is up, it emits a sound indicating that the break is over. How can I implement this feature? My application now: My goal:
1
0
98
Nov ’25
Reply to Creating an URL bookmark in macOS 26.1 of a Windows NTFS fileshare returns a bookmark with access to the local drive
Creating bookmarks to the root directory of a volume was broken in earlier versions of 26. It looks like a change was made and that change broke NTFS. Good thing I haven't released yet. I need to double check. My workaround assumed that creating the bookmark would fail. I didn't anticipate success with invalid data. I don't know if my workaround would work for you. I have a special case where I don't actually need to access the data. I just want to know the URL. I can get the data I need without a security scoped bookmark. And it sounds like I need to re-do it anyway.
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’25
Reply to PWA video playback stopped working after updating iOS to 26.0.1
I'm having the same issue with a few of my PWAs. They work fine in Safari, but when installed as a homescreen app, audio playback won't start. It does work once if I restart the phone, but then stops working again if I close and reopen the app. Additionally, it seems that sequential playback doesn't work when the phone is locked. Instead of playing the next audio track, playback will stop until the app is re-focused, at which point playback will begin again.
Topic: Safari & Web SubTopic: General
Nov ’25
Reply to Unable to upload an app with ExtensionFoundation
Hmmm, that doesn’t sound right. While ExtensionKit on iOS has significant limitations, my understanding is that we do allow iOS apps to use extensions that are bundled within the app, and that’s what you’re trying to do. I’m gonna consult with Kevin about this and one of us will get back to you. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: General Tags:
Nov ’25
Reply to No mic capture on iOS 18.5
We discovered the iOS version is not the culprit. All models starting with 14 series iPhones and onward are affected by this problem, even on iOS 17. Must be some glitched interaction of hardware and software feature. Affected models do not produce any audio, magnitude logging from C++ engine doesn't produce anything. static OSStatus mixerPlaybackCallack(void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList *ioData) { AudioEngine *self = (AudioEngine*)inRefCon; uint32_t toget = inNumberFrames << 2; //printf(mixerPlaybackCallack: bus: %u, frames: %un, (uint32_t)inBusNumber, (uint32_t)inNumberFrames); if (inBusNumber < kMaxRemoteLines) { auto& audiobuffer = self->m_remoteBuffers[inBusNumber]; int32_t len = 0; if (uint8_t *buf = audiobuffer.tail(len)) { int32_t tocopy = len > toget ? toget : len; memcpy(ioData->mBuffers[0].mData, buf, tocopy); audiobuffer.consume(tocopy); if (tocopy &
Nov ’25
Reply to Trying to remove app groups from my macOS app doesn't seem to work
Thanks. Oof. That is not good to hear. So presumably the only way out of this is if I hand the source code to my friend, they build effectively a new app with a new app id, new name on the store, new description, etc. They can take over from me with the new app, I can put something to that effect in my app description perhaps and remove my app from sale. Then existing customers who have downloaded it will still be able to use my version but all new people looking will go to his instead. Sounds like that's just about the only viable approach?
Nov ’25
Reply to Keyframe animation crashes with +[_SwiftUILayerDelegate _screen]: unrecognized selector sent to class on iOS 26
We have the same problem with iOS26 - thousands of crashes in the production. iOS 18 and older works just fine. We are not able to reproduce it locally. It started with building our app with xcode 26, with older xcode it woks ok even on iOS 26, but we were unable to do iOS 26 specific code. Fatal Exception: NSInvalidArgumentException +[_SwiftUILayerDelegate _screen]: unrecognized selector sent to class 0x1efa9da08 0 CoreFoundation 0xc98c8 __exceptionPreprocess 1 libobjc.A.dylib 0x317c4 objc_exception_throw 2 CoreFoundation 0x1656cc -[NSObject(NSObject) doesNotRecognizeSelector:] 3 CoreFoundation 0x464f8 ___forwarding___ 4 CoreFoundation 0x4e3a0 _CF_forwarding_prep_0 5 UIKitCore 0x18e7880 __35-[UIViewKeyframeAnimationState pop]_block_invoke 6 CoreFoundation 0x12170 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ 7 CoreFoundation 0x1a47cc -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] 8 UIKitCore 0x18e76bc -[UIViewKeyframeAnimationState pop] 9 UIKitCore 0x1d0e8 +[UIViewAnimationS
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’25
Reply to Wi-Fi Raw Socket Disconnection Issue on iPhone 17 Series
Thanks for the clarifications. Just FYI, in networking, raw socket usually refers to raw IP sockets, hence my confusion. So, lemme summarise the issue: You have an iOS app. It talks to a Wi-Fi based accessory over TCP. With iPhone 16, this all works as expected. With iPhone 17, things go wrong, such that your TCP socket disconnects after 20 seconds. After that, your app is unable to reconnect. And the only way to resolve the issue is to restart the Wi-Fi subsystem on your accessory. Is that right? If so, this sounds eminently bugworthy. While there are lots of ways that local networking can go wrong, the fact that this fails when the only variable you change is moving from iPhone 16 to 17 suggests that it’s caused by a Wi-Fi level issue on iPhone 17. DevForums focuses on Apple APIs and tools, and isn’t really set up to help with Wi-Fi level issues. Given your description of the problem, I think it makes sense for you to file a bug so that our Wi-Fi engineering team can investigate. In your bug, make
Nov ’25
Reply to PWA video playback stopped working after updating iOS to 26.0.1
I'm encountering the same bug. I suspect it's related to the state of the AudioContext. From what I've observed, when first entering the page, the state of AudioContext is suspended, and calling resume() within a click event fails to restore it. If I first call suspend() followed by resume() in the developer tools console, the following error message appears. So far, I haven't found a workaround—please share one if you have it. error message: InvalidStateError: Failed to start the audio device
Topic: Safari & Web SubTopic: General
Nov ’25
How do I run an arbitrary subprocess from an Xcode extension?
I'd like to start a subprocess from an Xcode extension. My prototype performCommandWithInvocation method looks like this: - (void)performCommandWithInvocation:(XCSourceEditorCommandInvocation *)invocation completionHandler:(void (^)(NSError * _Nullable nilOrError))completionHandler { NSTask*task= [[NSTask alloc]init]; [task setExecutableURL:[NSURL fileURLWithPath:@/bin/sh]]; //option A: [task setArguments:@[@-c,@echo hello from sh]]; //option B: [task setArguments:@[@-c,@/usr/bin/python3 -c 'print(hello from python3)']]; [task launch]; [task waitUntilExit]; int status=[task terminationStatus]; printf(status: %dn,status); completionHandler(nil); } So there's two options there: option A, or option B. (Uncomment to taste.) Option A does work. /bin/sh starts, and runs echo, and it prints hello to its stdout. I was foolish enough to let this convince me that this whole thing might be a goer. Option B does not work. I get an error: xcrun error: cannot be used with in an App Sandbox. Which is annoying, as virtually
0
0
70
Nov ’25