Post

Replies

Boosts

Views

Activity

Reply to Idea for Wallpaper Feature
wrong forum. This one is for developers to ask questions and (perhaps) provide answers about developing software and accessories for Apple devices. You can submit unsolicited feature requests for iPhone here: https://www.apple.com/feedback/iphone/
Topic: Community SubTopic: Apple Developers Tags:
Sep ’25
Reply to Mac mini M2 Pro SOS blinking power light after rebooting to complete Tahoe 26 Beta 9 update from beta 8
if your Mac Mini turned into a brick, try reviving or restoring it with Apple Configurator on another Mac and a USB C (but not Thunderbolt 3!) cable in between. There's a particular port you need to use (or not use), dependent on your particular Mac (the leftmost, as seen from the back of the Mac Mini). Do I know the difference between Revive and Restore? No, I do not, and the docs don't tell me. Maybe you can figure it out. https://support.apple.com/en-us/108900
Topic: Community SubTopic: Apple Developers Tags:
Sep ’25
Reply to Screen layout positioning in Swift
something went wrong with formatting the code in your post, so it is a difficult to reproduce. I'm not sure what you're trying to get at here - you can wrap the two check boxes in an HStack, they will then appear side by side HStack { Toggle(isOn: $isCheckedOption900) { Text("9:00am") } .toggleStyle(CheckboxToggleStyle()) Toggle(isOn: $isCheckedOption930) { Text("9:30am") } } Please, when you post code, say for which platform (your code doesn't work on iOS). If you have check boxes for every half hour from 9am till 6:30pm, they're probably not going to fit across one screen anyway, if you don't want a fixed-size window, maybe you want to think about using some other container.
Topic: UI Frameworks SubTopic: SwiftUI
Sep ’25
Reply to AVAudioSession.outputVolume not reporting correctly in iOS 18+ devices
This kind of thing is where I've had some success with a code-level developer technical support question. Sometimes, you'll get an answer on the forum here, but more often not. It seems like a genuine regression, and one that you could report with a small test app and good steps-to-reproduce. You file the bug first, then ask for code level support; "hey, this worked in older OS versions, how do I make it work on the current OS"? At worst, you get an answer like "oops, we broke it, it will be fixed in future, there's no workaround", but at least it is an answer and you don't have to spend your time poking around in the dark trying to find non-existent workarounds.
Topic: Media Technologies SubTopic: Audio Tags:
Sep ’25
Reply to XCode Refuses to Load Team
so if you log in to developer.apple.com and click the Account tab, you see the missing team under your name? But in Xcode's Settings, you don't see that team under your account? That does sound frustrating. It has never happened to me, so I can't help directly. There is a link to Membership and Account help here: https://developer.apple.com/contact/topic/select good luck!
Sep ’25
Reply to Why does AVAudioRecorder show 8 kHz when iPhone hardware is 48 kHz?
Is the iPhone mic actually capturing at 8 kHz, or is it recording at 48 kHz and then downsampling to 8 kHz internally? the latter. Your own investigation indicates this. The microphone doesn't record, it provides samples. The AVAudioRecorder records, you gave it the settings to use. Is there any way to force the hardware to record natively at 8 kHz? Have you tried setPreferredSampleRate? The docs say it is hardware dependent, the microphone might provide samples at a single fixed, or a few fixed rates. If not, what’s the recommended approach for telephony-quality audio (true 8 kHz) on iOS devices? Well, 8kHz 16-bit recordings from a modern iPhone microphone probably yields better than telephone quality. What are you actually trying to achieve? "Sounds like an old analog telephone" is probably a job for a narrow bandwidth filter (300 to 3.5kHz), the injection of noise at about 45 dB below the maximum amplitude, and some distortion and clipping. See https://developer.apple.com/documentation/avfoundation/creating_custom_audio_effects
Topic: Media Technologies SubTopic: Audio Tags:
Sep ’25
Reply to iPadOS: remove system actions from Menu Bar
if you're building your app with SwiftUI, you're looking for CommandGroup(replacing: .windowList) { } if you remove too many (for example, if the windowList command group contains Close Window), then you'll need to put it back in manually, using CommandMenu. But if you don't have a New Window command, why would you keep Close Window around? What happens when you close the last (or only) window? If you elect to quit the app, all you need it a Quit command, which is another menu.
Topic: UI Frameworks SubTopic: UIKit
Sep ’25
Reply to Xcode won't execute code?
in this example: struct ContentView: View { var body: some View { Button("Tap Me") { // Action to perform when the button is tapped print("Button was tapped!") startAccelerometer() } } } you see the error "Cannot find 'startAccelerometer' in scope" because startAccelerometer is outside the scope of the structure ContentView (which begins at its { and ends at its }. The compiler doesn't know you mean the function called startAccelerometer inside your MyViewController class. That's a good thing, because names are often re-used in different places in code. In your more recent example, your ContentView doesn't refer to startAccelerometer, and there is no code to call it (what happened to your button? Your screen is blank and white because that's what an empty content view looks like. Your startAccelerometer function, if called, would call itself again and again until your program ran out of stack space and was terminated. You usually don't need a UIViewController in a SwiftUI app. Interfacing between SwiftUI and UIKit is an advanced topic. I suggest you take a step back and review a few simple SwiftUI projects so you can get the hang of drawing into a window and responding to clicks and drags inside a view. You should also try to learn about basic programming concepts like scope. Or, if you are just desperate to see what is going on with the accelerometer, here is a quick and dirty program which will print the results into the debugger console in Xcode on your Mac while the program runs on your phone. It is not a good example of app design (most code samples are not) import SwiftUI import CoreMotion struct ContentView: View { @State private var motionManager: CMMotionManager = CMMotionManager() var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundStyle(.tint) Text("Hello, world!") } .padding() .onAppear() { if motionManager.isAccelerometerAvailable { motionManager.accelerometerUpdateInterval = 0.1 // 10 updates per second motionManager.startAccelerometerUpdates(to: .main) { (data, error) in guard let accelerometerData = data else { return } let x = accelerometerData.acceleration.x let y = accelerometerData.acceleration.y let z = accelerometerData.acceleration.z // Process the x, y, and z acceleration values here print("X: \(x), Y: \(y), Z: \(z)") } } } } }
Aug ’25
Reply to Unable to get external display working
does your iPad support anything other than mirroring? See https://support.apple.com/guide/ipad/connect-to-a-display-with-a-cable-ipadf1276cde/18.0/ipados/18.0 Also, you need a touchpad or mouse, because otherwise you can't manipulate windows on the external screen. And you might need an external keyboard too.
Topic: UI Frameworks SubTopic: SwiftUI
Aug ’25
Reply to Xcode Beta (Version 26.0 beta 5 (17A5295f)) Constantly Crashing!
it works for me (M1 MBA and M1 MBP with M1 Pro). If I were you, I'd file a bug, then delete Xcode 26b5 and everything associated with it, then re-install it. If that doesn't work, and you're on a beta of macOS, wipe the Mac and reinstall everything. If it is still a problem, follow up on the bug with new crash logs. If it is fixed, close the bug with "cannot reproduce".
Aug ’25
Reply to PCIDriverKit entitlements during development
and here are the bug numbers FB19449747 No developer flavor of PCI transport capability FB19450162 Two indistinguishable PCI transport capabilities shown FB19450508 Xcode hides provisioning profiles FB19451832 indistinguishable USB transport entitlements also, to revert the changes you made to a victim machine: sudo nvram boot-args -c to clear all the boot-args. sudo nvram boot-args --help will tell you more then boot into recovery and perform csrutil enable to turn SIP on again
Topic: Code Signing SubTopic: Entitlements Tags:
Aug ’25
Reply to PCIDriverKit entitlements during development
thank you Kevin for that answer. In the meantime I've discovered a few more facts, which I'll detail here. I'll also file some bugs and attach their numbers here. I did manage to get a PCI driver to match and install on a victim machine. I used an Xcode-generated profile that includes our own PCI entitlement, but installed the driver on a machine with entitlement checks turned off. To do this, on the victim machine: boot into recovery and turn SIP off (csrutil disable at the command line) boot back into the OS, and execute: sudo nvram boot-args="amfi_get_out_of_my_way=1 -arm64e_preview_abi dk=0x8001" reboot to let the boot-args take effect change the architecture of the driver to arm64e (it was ${STANDARD_ARCHS} (in build settings/architectures) It is possible that not all of the boot-args are necessary. I had to change the build architecture because it seems like the other arguments make the OS think that everything is a platform binary. The driver still failed entitlement checks until I added dk=0x8001. All of this information takes a lot of searching to find (some of it comes from these very forums) I then tried making a USB driver for development (for a vendor ID we don't have an entitlement for). On my usual Mac, the driver won't load because the entitlement in my provisioning profile is for a specific vendor ID - I can't choose the development USB transport capability. I would have to deploy this driver on a victim machine with SIP off and the same shenanigans as above. This probably wouldn't affect a team with no USB transport entitlement at all, they'd only be able to choose the development flavor of the capability.
Topic: Code Signing SubTopic: Entitlements Tags:
Aug ’25
Reply to ScreenCapture + CMSampleBuffer logic issue
some code accessed a nil pointer. The code doesn't belong to your process (or else you would have landed in the debugger with a BAD_ACCESS error), instead didStop is called. However, almost undoubtedly your code caused the nil pointer access. Take a close look at how you manage video buffers and read the documentation very carefully. CMSampleBufferCreateCopy doesn't actually copy the buffer's data, for example.
Jul ’25