Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .setShortcut() crashing when called from a NSBackgroundActivityScheduler task #9

Merged
merged 2 commits into from
Jun 5, 2020

Conversation

sindresorhus
Copy link
Owner

Fixes #8

@sindresorhus
Copy link
Owner Author

@leits This seems to be a bug in Xcode/macOS. When googling, I found some other similar cases. It turns out the issue only happens when running your app from Xcode. Not when archiving, even if you archive a debug build.

I have added a workaround in 01feaab. It seems to work for me. Your app no longer crashes. Can you try it out and let me know if it fixes it for you?

@sindresorhus sindresorhus changed the title Fix crash when recording shortcut Fix .setShortcut() crashing when called from a NSBackgroundActivityScheduler task Jun 5, 2020
@leits
Copy link

leits commented Jun 5, 2020

Yeah, looks like it's working now. Thanks!
When you plan to release it?

@sindresorhus sindresorhus merged commit eb68608 into master Jun 5, 2020
@sindresorhus sindresorhus deleted the fix-crash branch June 5, 2020 15:18
@sindresorhus
Copy link
Owner Author

@leits
Copy link

leits commented Jun 5, 2020

Thanks, @sindresorhus !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Runtime error in Shortcut
2 participants