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 tests #12

Open
sindresorhus opened this issue Mar 27, 2019 · 3 comments
Open

Fix tests #12

sindresorhus opened this issue Mar 27, 2019 · 3 comments
Labels
bug 💵 Funded on Issuehunt This issue has been funded on Issuehunt help wanted

Comments

@sindresorhus
Copy link
Owner

sindresorhus commented Mar 27, 2019

Issuehunt badges

Tests are failing locally on and on Travis.

There is a $40.00 open bounty on this issue. Add more on Issuehunt.

@IssueHuntBot
Copy link

@IssueHunt has funded $40.00 to this issue.


@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label May 10, 2019
@g1eny0ung
Copy link

@sindresorhus I found this issue in issueHunt and I tried to solve it. Through logging the test, I found the AppleScript fail to run:

{
    NSAppleScriptErrorAppName = "System Events";
    NSAppleScriptErrorBriefMessage = "Not authorized to send Apple events to System Events.";
    NSAppleScriptErrorMessage = "Not authorized to send Apple events to System Events.";
    NSAppleScriptErrorNumber = "-1743";
    NSAppleScriptErrorRange = "NSRange: {71, 9}";
}

After trying many ways, I found some info in macOS Mojave 10.14 Release, it says:

image

Seems that now in macOS 10.14 and Xcode 10.2, the Xcode unit test has no permissions to execute AppleScript.

And I also view the travis CI Documantation, the xcode10.2 of osx_image was bundled with macOS 10.14.

image

So I think that's the reason why the locally and the CI tests are all fails.

@jduo
Copy link

jduo commented Jul 5, 2020

Hi @sindresorhus , is this issue still in need of help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 💵 Funded on Issuehunt This issue has been funded on Issuehunt help wanted
Projects
None yet
Development

No branches or pull requests

4 participants