Hi,
I have developed and ported a sequencer to Apple macOS. It is written in ANSI C and uses Gtk+-3.0 (Gimp Toolkit) for UI.
This toolkit uses some Cocoa specific backend, note there are different backends for different platforms available.
After some research I have found this:
https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/scheduler/scheduler.html#//apple_ref/doc/uid/TP30000905-CH211-BABCHEEB
The function I wanted to use was:
thread_policy_set()
But the header file doesn't contain it:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/task_policy.h
So was it deprecated? Howto do this, nowadays?
		struct task_category_policy tcatpolicy;
		int ret;
		tcatpolicy.role = TASK_FOREGROUND_APPLICATION;
		if((ret = task_policy_set(mach_task_self(),
			TASK_CATEGORY_POLICY, (thread_policy_t)&tcatpolicy,
			TASK_CATEGORY_POLICY_COUNT)) != KERN_SUCCESS) {
			fprintf(stderr, "set_my_task_policy() failed.\n");
		}
Because the UI animation performance is really bad. The threads interfacing CoreAudio are fine.
The UI thread is usually the main thread of the process.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
I did a complex makefile setup with git LFS and submodules. All files extracted, build, installed and deploy to MyApplication.app by makefile.
The application and its dependencies are built within 1 hour across many makefile targets.
The finaly DMG is built by hditool invocation within makefile.
I commented out the call to open -n MyApplication.app
I would love to run the integration test suite of MyApplication.app, this are compiled tests.
Are there common rules document writing makefiles for Apple XCodeCloud? How can I setup continues integration builds in cloud?
What works so far is running build and showing opened git directories. I am familiar with Aquamacs.app or emacs and command line tools. But don't know much about XCode. I read some documents but they all were using integrated build system, I think.
regards, J.
Hi,
I have create a universal app then did this:
https://support.apple.com/en-vn/guide/apple-business-essentials/axm20c32e0c6/web
But this doesn't produce a working package installer.
productbuild --sign "3rd Party Mac Developer Installer: ****" --component /Applications/MyApp.app MyApp-universal.pkg
Do I need to create a code signature with codesign, prior to call productbuild?
regards, Joël
Hi,
I would love to disable app sandbox completely, because my music application requires extended filesystem permissions. Like reading configuration files from $HOME and enabling services through sockets.
The UI toolkit I am using endorses IPC mechanism.
cheers, Joël
Hi,
I have codesigned my application and after this macos won't run the binary anymore.
codesign -f -o runtime --timestamp -s "Developer ID Application: YOUR NAME (TEAM_ID)" --entitlements $HOME/workspace/GSequencer-cocoa/gsequencer-macos/macos-contrib/GSequencer.entitlements -i com.gsequencer.GSequencer --deep $HOME/workspace/GSequencer-cocoa/gsequencer-macos/build/universal/GSequencer.app
Verify signature works.
codesign -vv $HOME/workspace/GSequencer-cocoa/gsequencer-macos/build/universal/GSequencer.app
The same for the DMG file, still doesn't work anymore.
codesign -f -o runtime --timestamp -s "Developer ID Application: YOUR NAME (TEAM_ID)" $HOME/workspace/GSequencer-cocoa/gsequencer-macos/build/arm64/GSequencer-6.9.1.dmg
I would love to distribute my application with code signing. Note all libraries are built using clang or clang++.
I figured out that when I leave entitlements away it would launch but complains about library signatures.
regards, Joël
After upload using transporter I get following message:
"Cannot be used with TestFlight because the signature for the bundle at “GSequencer.app” is missing an application identifier but has an application identifier in the provisioning profile for the bundle. Bundles with application identifiers in the provisioning profile are expected to have the same identifier signed into the bundle in order to be eligible for TestFlight." (90886)
I am unsure about the cause of this problem, please give some advice howto fix?
Hi,
I am experience crashes with my application after code signing, this didn't happen before. Does OpenGL require special permissions?
GSequencer stack-trace gtk4 crash
by, Joël
Topic:
App Store Distribution & Marketing
SubTopic:
General
Tags:
App Store
Objective-C
OpenGL
Code Signing
Hi,
My application ships a copy of following cryptographic libraries:
libp11-kit.0.dylib
libnettle.8.dylib
libgnutls.30.dylib
It's purpose is to connect by secured HTTP to an optional server, that might be turned on to allow to receive HTTP requests.
I think this is standard encryption, but do I need to mention this explicitely with App Uses Non-Exempt Encryption?
The application doesn't encrypt content it is just for secured HTTP connections.
regards, Joël
Hi,
On macOS I used to open MP3 and MP4 files with ExtAudioFile. For a few years it doesn't work anymore.
So I decided to try different macOS API using the AudioFileID of AudioToolbox framework.
I decided to write a test:
https://gist.github.com/joelkraehemann/7f5b241b52ca38c3a765c138fb647588
It fails right here:
AudioFileOpenWithCallbacks()
By telling OSStatus error 1954115647, which means kAudioFileUnsupportedFileTypeError.
The filename was set to an MP4 file:
~/Music/test.mp4
Howto fix this?
regards, Joël
hi,
Is there an Audio Unit logo I can show on my website? I would love to show that my application is able to host Audio Unit plugins.
regards, Joël
Hi,
Recently I encountered troubles uploading a binary with temporary-exception.audio-unit-host entitlement using Transporter.
I would love to make use of in my application and distribute in the AppStore.
What is necessary to do so?
regards, Joël