I got code of CMIO CameraExtension by Xcode target and it is running with FaceTime. I guess this kind of Extension has lots of security limitation.
I like to run command like "netstat" in Extension. Is that possible to call Process.run()? I got keep getting error like "The file zsh doesn’t exist". Same code with Process.run() worked in macOS app.
I like to run DistributedNotificationCenter and send text from App to CameraExtension. Is that possible? I do not receive any message on CameraExtension.
If there is any other IPC method between macOS app and CameraExtension, please let me know.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I saw NSNetServiceBrowser is marked as deprecated on Apple document. But I cannot see replacement of this class.
I need to write mDNS finder program. Should I use NSNetServiceBrowser or another class?
I had 2 crash report from our customer. Both crash point is same but there is no my code on crash stack trace. How to fix this kind of crash problem.
Thread 1 Crashed:: Dispatch queue: com.apple.root.background-qos
0 libsystem_kernel.dylib 0x7ff81b84922a __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff81b880f7b pthread_kill + 263
2 libsystem_c.dylib 0x7ff81b7caca5 abort + 123
3 libc++abi.dylib 0x7ff81b83b082 abort_message + 241
4 libc++abi.dylib 0x7ff81b82c23d demangling_terminate_handler() + 266
5 libobjc.A.dylib 0x7ff81b529023 _objc_terminate() + 96
6 libc++abi.dylib 0x7ff81b83a4a5 std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x7ff81b83a456 std::terminate() + 54
8 libdispatch.dylib 0x7ff81b701a58 _dispatch_client_callout + 28
9 libdispatch.dylib 0x7ff81b704500 _dispatch_continuation_pop + 463
10 libdispatch.dylib 0x7ff81b715dff _dispatch_source_invoke + 2184
11 libdispatch.dylib 0x7ff81b7116a2 _dispatch_root_queue_drain + 343
12 libdispatch.dylib 0x7ff81b711e4d _dispatch_worker_thread2 + 160
13 libsystem_pthread.dylib 0x7ff81b87dc9d _pthread_wqthread + 256
14 libsystem_pthread.dylib 0x7ff81b87cc67 start_wqthread + 15
This crash point is exactly same with this post. I do not throw C++ exception.
https://developer.apple.com/forums/thread/725197
I need to write macOS App, CameraExtension(CMIO) and Uninstaller app.
Bundle ID is like this
App : com.my.app
CameraExtension : com.my.app.cameraex
Uninstaller app : com.my.app.unisntaller
My App can activate CameraExtension by OSSystemExtensionRequest.activationRequest.
But Uninstaller cannot deactivate CameraExtension.
I got error : Error Domain=OSSystemExtensionErrorDomain Code=4 "Extension not found in App bundle: perhaps App is not validly structured"
I set AppGroup and add SystemExtension feature and provision for uninstaller.
I guess "com.my.app.unisntaller" cannot deactivate "com.my.app.cameraex".
What kind of Bundle ID should I use for my uninstaller?
Writing App and Uninstaller is correct way for CameraExtension?
My manager ask to provide easy method for removing all modules.
When my macOS app try to deactivate CameraExtension, my app's didFailWithError is called with this error.
Error Domain=OSSystemExtensionErrorDomain Code=4 "(null)"
I cannot search for error code=4 with that domain.
MyApp calls OSSystemExtensionManager.shared.submitRequest with OSSystemExtensionRequest.deactivationRequest
I did implement these tasks.
BundleID, MyApp: com.myapp,
BundleID, CameraExtension: com.myapp.camera
Added entitlement and App Groups for app and extension
MyApp has SystemExtension capability on Xcode and provision
MyApp is installed on /Applications/MyAppGroup/MyApp.app
MyApp is executed by Finder
macOS is Sonoma 14.2.1 (23C71) on M1 MacBook