Open Shasoosh opened 2 years ago
I can confirm that i experience the same. The Package seems fine, also did the following:
Derived Data
and Bin
before trying/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill
I also build another fresh app and added the workflow with all settings myself which is also not working with the same result.
Simply no launch after login
XCode 13.2 on BigSur 11.6.1
This is keeping me on Xcode 12.4. Any update on this?
I was able to get the mechanism to work yesterday after upgrading to macOS 11.6.2
I discovered, that SMLoginItemSetEnabled
did not triggered to update
/private/var/db/com.apple.xpc.launchd/loginitems.501.plist
to make the corresponding entries for App and LauncherApp.
It also did not check the return values of SMLoginItemSetEnabled
, which i do now.
After upgrade of macOS the entry was written, and AutoLaunch works.
Same problem with me . Any ideas?
Created a new project with a fresh bundle id to avoid zombie instances of the app.
This is my code:
I've run it in debugging mode. I can see that
isEnabled
returns true even after restarting the app. Also, running/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -dump
will include the fresh bundle id but yet when restarting my machine, the app won't launch.How else can I debug this?
Edit: Seems like the issue is when compiled on Xcode Version 13.0 beta 5