I want to create daemon process that are using endpoint security profile i created this daemon and compiled using xcode in app like structure same as below link
https://developer.apple.com/forums/thread/129596
singed with developer profile with endpoint security entitlement and done notarization
but when i run application on device it gives me error and
and when i install provision profile that are downloded from apple developer site application works fine using launchctl
please suggest me what i am doing wrong is anything need to do for provision profile to load in mac os machine
how can i deploy application with provision profile.
Thank you.
[IMPORTANT Make sure to load the job into the global context by running launchctl using sudo.
```
Yes. I am running the daemon by adding plist job in /Library/LaunchDaemons through launchctl using sudo.
I packaged the daemon as application and signed it with xcode manual signing process. (filled the details Team, Bundle ID, Provisioning Profile...)
When I run my application on my development machine with provisioning file already installed in system prefrences->Profiles, application runs fine but when i remove profile application did not run.
i am using xcode 12.3
and my app structure is
./sampleOnAccess.app/
./sampleOnAccess.app//Contents
./sampleOnAccess.app//Contents/CodeSignature
./sampleOnAccess.app//Contents/CodeSignature/CodeResources
./sampleOnAccess.app//Contents/MacOS
./sampleOnAccess.app//Contents/MacOS/sampleOnAccess
./sampleOnAccess.app//Contents/embedded.provisionprofile
./sampleOnAccess.app//Contents/Info.plist
./sampleOnAccess.app//Contents/PkgInfo
is any build settings i am missing in xcode or for provision profile?