Yang-Xijie / InputSourceSwitcher

A menu bar app to swiftly change input sources using shortcuts on macOS Big Sur. [Swift+SwiftUI] NO LONGER MAINTAIN
MIT License
36 stars 6 forks source link

Support Apple Silicon #9

Closed KElee01 closed 2 years ago

KElee01 commented 3 years ago

Please add support for Apple Silicon.

Yang-Xijie commented 3 years ago

I'm not so familiar with M1 Mac and I don't have an M1 machine... Will it be okay to just change the build target in Xcode?

image
Yang-Xijie commented 3 years ago

I'm not sure whether it works. Could you please try it to see whether it works on Apple Silicon? Source Switcher build 6 Apple Silicon.zip

KElee01 commented 3 years ago

I don't think it works, but it does run natively on arm. Thank you, it's okay if you are not familiar with it, it's still a nice app.

1 2
Yang-Xijie commented 3 years ago

You mentioned I don't think it works. Could you tell me about the details?

Did you try clicking the Reset button? After resetting, the input sources should appear.

If it still not works, then I have no idea about it...

KElee01 commented 3 years ago

I don't think it works just because I saw the switch buttons were not shown. I tried to reset and restart the app but it doesn't work.

Yang-Xijie commented 3 years ago

All right. Sorry for that. I'll fix the problem if I have a Mac with Apple Silicon. By the way, pull requests are welcome!

KElee01 commented 3 years ago

It's okay, I'm looking forward to it.

Yang-Xijie commented 3 years ago

emmm I think it's better to keep this issue open 😀

KElee01 commented 3 years ago

Okay..😂

owiofwm2i commented 2 years ago
[2021/11/27, 3:57:21 PM] [Model] createMyInputSources()
[2021/11/27, 3:57:21 PM] [Applescript] NSAppleScript.executeAndReturnError(): {
    NSAppleScriptErrorAppName = "System Events";
    NSAppleScriptErrorBriefMessage = "Source Switcher is not allowed assistive access.";
    NSAppleScriptErrorMessage = "System Events got an error: Source Switcher is not allowed assistive access.";
    NSAppleScriptErrorNumber = "-1719";
    NSAppleScriptErrorRange = "NSRange: {87, 4}";
}
[2021/11/27, 3:57:21 PM] [Applescript] NSAppleScript.executeAndReturnError(): {
    NSAppleScriptErrorAppName = "System Events";
    NSAppleScriptErrorBriefMessage = "Source Switcher is not allowed assistive access.";
    NSAppleScriptErrorMessage = "System Events got an error: Source Switcher is not allowed assistive access.";
    NSAppleScriptErrorNumber = "-1719";
    NSAppleScriptErrorRange = "NSRange: {87, 4}";
}
[2021/11/27, 3:57:22 PM] [NotificationCenter.requestAuthorization] error - Error Domain=UNErrorDomain Code=1 "Notifications are not allowed for this application" UserInfo={NSLocalizedDescription=Notifications are not allowed for this application

I did give permission, and it looks like the permission was not given successfully

owiofwm2i commented 2 years ago

fix #16

owiofwm2i commented 2 years ago

Source Switcher.app.zip

This is the Universal app I compiled for the release version