Post

Replies

Boosts

Views

Activity

Reply to Can't post because "This post contains sensitive language"
This works perfectly in the foreground. But once the app goes into the background, the scheduled callback runs, yet the audio engine does not start, resulting in 'AVAudioSession.ErrorCode.cannotStartPlaying'. Interestingly, if the app is already playing audio before going to the background, the scheduled sounds continue to play as expected. I have added the required background audio mode to my Info plist file by including the key UlBackgroundModes with the value audio. Is there anything else I should configure? What is the best practice to play periodic audio cues when the app runs in the background? How do apps that do turn-by-turn navigation handle continuous audio playback in the background? Any advice or pointers would be greatly appreciated!
Jul ’25
Reply to Can't post because "This post contains sensitive language"
Hello, I have been working on an audio module that plays a specific sound at regular intervals -- similar to a workout timer that alerts the user to switching exercises every few minutes. I'm configuring my audio session like this: let session = AVAudioSession.sharedlnstance() try session.setCategory( .playback, mode: default, options: [.interruptSpokenAudioAndMixWithOthers, .duckOthers] ) self.engine.attach(self.player) self.engine.connect(self.player, to: self.engine.outputNode, format: self.audioFormat) try session. setActive(true)
Jul ’25
Reply to Can't post because "This post contains sensitive language"
I just tried posting it without the error code and it still fails with the same message Could be anything really. I know that currently, in this forum, the word "s i g n a l" gets censored with asterisks. In the Apple Support Community, which uses the same back-end software, it's even worse, the word "am" is censored. So all the people trying to post "I am having a problem with...." get censored. What you're experiencing is something else. It could be some other word that is too sensitive to even get redacted with asterisks. Or it could be just some other random bug. Maybe try posting one or more screenshots of your content. At least that way people can read it. And if you have a code sample, the built-in OCR works quite well.
Jul ’25
Reply to Guidance on Java JRE Usage for PST Parsing in Mac OS Application– Code Signing & App Store Compliance
I did try the approach of moving it into the PlugIns directory and still App store expected me to codesign all the dylibs and the binaries with entitlements. Certainly. Here is an ancient post that may still be relevant for you: https://stackoverflow.com/questions/16960662/embedding-a-java-runtime-into-a-sandboxed-cocoa-mac-app It may be possible to just slap entitlements on the binary. I don't know. Another option could be to integrate the runtime into your executable. And finally, take another look at the license costs for the .NET version and keep that in mind as your burn hours trying to get Java to work.
Jun ’25
Reply to ffmpeg xcframework not working on Mac, but working correctly on iOS
Exactly what problems are you having? I reviewed those QT instructions. They don't look too bad. However, your build scripts are significantly different. In particular, you're trying to use brew. Brew can be useful in some cases where people just want to download some open source tool on their Mac and run it without thinking. But if you're going to distribute something, especially on iOS, it should be considered a non-starter. Trying to build both iOS and Mac versions of a framework using command line scripts can be very challenging. There are lots of subtle problems. You're essentially doing a cross-compile. It sounds like so many people have done this that there's good support for iOS. That's considered the default. So it makes sense you would have trouble with an oddball platform (relatively speaking) like macOS. If you can get the source into a true Xcode project, it would be much, much easier to build multiple platforms. For the record, ffmpeg is a challenging project. I did need to incorporate ffmpeg into a project myself a few years ago. Even on a major linux distribution, I still had to make changes to the ffmpeg source to get it to compile. You seem to be taking the correct approach, just trying to do too much at once. I recommend starting over with the original QT instructions. Go more slowly this time. Don't try to build both X64 and ARM. Build an xcframework just for iOS. Then add macOS Apple Silicon, which should be very similar. I expect all the complications would be from the X86 build. ffmpeg definitely supports that, but many low-level compilation settings, and maybe even source files, will be radically different.
Topic: Media Technologies SubTopic: General Tags:
Jun ’25
Reply to Guidance on Java JRE Usage for PST Parsing in Mac OS Application– Code Signing & App Store Compliance
That’s cool tech, but you still need a Java runtime to run the Java side of this. That's a disappointment. I hereby retract that recommendation. Instead, I suggest trying the Aspose Email for .NET package. I know nothing about .NET, but it seems there are some ways to incorporate .NET libraries without a .NET runtime. I sure don't understand .NET versions. But there is a much larger community of people using .NET on macOS than Java.
Jun ’25
Reply to Guidance on Java JRE Usage for PST Parsing in Mac OS Application– Code Signing & App Store Compliance
This entire setup (JAR + JRE) is bundled within the Contents/Resources directory of the macOS app Don't use the Resources directory for executable code. Maybe try the "Frameworks" folder instead? I know it says "Frameworks", but it is an older directory that is likely to be more compatible with something unusual like this. According to the current documentation, there is also a "PlugIns" and a "Library" folder that are possible. But I think these are intended for specific artifacts. The "Helpers" folder is another catch-all possibility. A better idea might be the new Swift/Java interoperability project.
Jun ’25
Reply to Apple could not verify `app` is free of malware
The app is successfully notarized and stapled, I packaged it in a .dmg using hdiutil and went ahead and notarized and stapled that as well. You don't need to notarize both. If this is a stand-alone app, I recommend just notarizing the app and distributing it as a ZIP file. You don't really need a disk image at all. The only times where a download actually worked with no problems was when I downloaded through the terminal using curl, The curl tool won't add the quarantine attribute. That makes it avoid Gatekeeper altogether. Problems like this are usually because of some runtime check. There is a new tool called "syspolicy_check", as described here, that is supposed to help with that. Are you building in Xcode? This is a common problem, but occurs most often to people who aren't using Xcode. If you are using some 3rd party build system, I recommend you put your efforts towards porting to Xcode. This makes lots of problems, including notarization, go away.
Topic: Code Signing SubTopic: General Tags:
Jun ’25