标签: macos-mojave

如何避免Mojave上的Safari扩展崩溃?

当我构建我的带有Safari扩展的macOS应用程序(我在Safari上运行)时,它会在运行几秒后崩溃(尽管它确实显示在扩展中).

这似乎是Safari尝试从本地Library文件夹获取数据的问题.它似乎也很难与Info.plist斗争.

这是崩溃日志:

2018-08-02 17:33:47.464379+0200 Safari[14693:1179568] [default] Unable to load Info.plist exceptions (eGPUOverrides)
2018-08-02 17:33:47.487993+0200 Safari[14693:1179565] [SQLiteStore] Failed to acquire database store coordination lock at /Users/lukasmuller/Library/Safari/Favicon Cache/favicons.db-lock: [35: Resource temporarily unavailable]
2018-08-02 17:33:47.488150+0200 Safari[14693:1179565] [SQLiteStore] Failed to acquire exclusive access to database at file:///Users/lukasmuller/Library/Safari/Favicon%20Cache/favicons.db.
2018-08-02 17:33:47.488580+0200 Safari[14693:1179565] [SQLiteStore] Failed to acquire database store coordination lock at /Users/lukasmuller/Library/Safari/Favicon Cache/favicons.db-lock: [35: Resource temporarily unavailable]
2018-08-02 17:33:47.488615+0200 Safari[14693:1179565] [SQLiteStore] Failed to acquire exclusive access to database at file:///Users/lukasmuller/Library/Safari/Favicon%20Cache/favicons.db.
2018-08-02 …
Run Code Online (Sandbox Code Playgroud)

safari-extension swift macos-mojave

7
推荐指数
1
解决办法
1243
查看次数

更新到MacOs后,Mojave Visual Studio代码文本几乎无法读取

我刚刚安装了MacO Mojave ......当我打开Visual Studio Code时......惊喜!文字有点暗淡,对比度较低,特别是在外部显示器上.结果是代码难以阅读.它似乎与模式有关,但不是!它在光明和黑暗模式下都会发生.

在此输入图像描述

有没有人找到解决这个问题的方法?

atom-editor electron visual-studio-code macos-mojave

7
推荐指数
1
解决办法
2994
查看次数

com.apple.iTunes AEDeterminePermissionToAutomateTarget始终返回-600

import ScriptingBridge

class iTunesAccess {
    static func requestAccess() -> Bool {
        guard #available(OSX 10.14, *) else {
            return true
        }
        if var addressDesc = NSAppleEventDescriptor(bundleIdentifier: "com.apple.iTunes").aeDesc?.pointee {
            let appleScriptPermission = AEDeterminePermissionToAutomateTarget(&addressDesc, typeWildCard, typeWildCard, true)
            AEDisposeDesc(&addressDesc)
            return appleScriptPermission == noErr
        }
        return false
    }
}
Run Code Online (Sandbox Code Playgroud)

info.plist中:

<key>NSAppleEventsUsageDescription</key>
<string>somedescriprtion</string>
Run Code Online (Sandbox Code Playgroud)

iTunes运行但我总是得到-600 osstatus.我怎么解决它?iTunes捆绑包ID很好.

/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' /Applications/iTunes.app/Contents/Info.plist
com.apple.iTunes
Run Code Online (Sandbox Code Playgroud)

PS,但如果我使用"com.apple.dt.Xcode"捆绑ID它的工作原理!

PPS我找到了repo https://github.com/melchor629/iTunes-Scrobbler并构建它.它也有效.

macos swift macos-mojave

7
推荐指数
1
解决办法
444
查看次数

macOS Mojave:从High Sierra更新为Mojave后无效的活动开发人员路径

升级到macOS Mojave后,我尝试从终端运行GIT,但它一直给我以下错误:

xcrun:错误:无效的活动开发人员路径(/ Library/Developer/CommandLineTools),缺少xcrun:/ Library/Developer/CommandLineTools/usr/bin/xcrun.

以前它工作正常.

git macos macos-mojave

7
推荐指数
1
解决办法
6123
查看次数

如何将旧版本的 Xamarin.iOS 与 Visual Studio Mac 结合使用?

您好,我错误地将 Visual Studio for Mac 升级到 8.5.2(内部版本 13),其中 Xamarin.iOS 版本:13.16.0.13(Visual Studio 社区)。

事实证明,这不适用于 XCode 11.3.1,需要 XCode 11.4,这意味着我需要将操作系统从 Mojave 升级到 Catalina;我还没有准备好升级操作系统..

我尝试在 Microsoft 网站上搜索,但看不到任何明显的降级或选择其他 Xamarin.iOS 版本的链接

如何将 Xamarin.iOS 回滚到与 XCode 11.3 兼容的版本?

xcode xamarin.ios visual-studio-mac macos-mojave macos-catalina

7
推荐指数
1
解决办法
3403
查看次数

Karabiner-Elements 将按键映射到组合键

我是卡拉宾纳的新手。据我了解,该程序可以更改键盘映射。我理解并能够使用“简单修改”“From key”“To key”。

但是,如果我想将 Home 按钮重新映射到 CTRL+LEFT_ARROW,我该怎么做呢?

目前在 MacOs Mojave 上

macos karabiner macos-mojave

7
推荐指数
1
解决办法
1万
查看次数

如何在 MySQLWorkBench 上备份 MySQL 连接?

我在 Mac OS X 上使用 MySQL WorkBench 已经很长时间了。在更新 MySQL WorkBench 之前,我一直尝试保存/备份所有主机连接。

在此输入图像描述

有没有办法做到这一点 ?

mysql macos database-connection mysql-workbench macos-mojave

6
推荐指数
2
解决办法
3345
查看次数

我真的需要 Mac 上的 X11 for R 吗?

R版本3.5.2

macOS 版本 10.14.2 莫哈韦

每当安装 R 包时,我都会看到以下警告:

Warning message:
In doTryCatch(return(expr), name, parentenv, handler) :
  unable to load shared object '/Library/Frameworks/R.framework/Resources/modules//R_X11.so':
  dlopen(/Library/Frameworks/R.framework/Resources/modules//R_X11.so, 6): Library not loaded: /opt/X11/lib/libSM.6.dylib
  Referenced from: /Library/Frameworks/R.framework/Resources/modules//R_X11.so
  Reason: image not found
Run Code Online (Sandbox Code Playgroud)

一切似乎都运转良好。ggplot2 绘图被绘制,...等等。

我真的需要从 XQuartz 安装 X11 吗?真的有什么东西坏了吗?

它会“解锁”任何东西吗?

x11 macos r xquartz macos-mojave

6
推荐指数
1
解决办法
3684
查看次数

mysql2:库未加载:自制软件更新后的/usr/local/opt/openssl/lib/libssl.1.0.0.dylib

在我将 mac OS Mojave 从 升级v10.14.0v10.14.2以及所有使用 Homebrew 安装的软件包后,我在运行时开始收到以下错误bin/rails console

/Users/hirurg103/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require': dlopen(/Users/hirurg103/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-0.4.4/lib/mysql2/mysql2.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError)
  Referenced from: /usr/local/opt/mysql@5.6/lib/libmysqlclient.18.dylib
  Reason: image not found - /Users/hirurg103/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-0.4.4/lib/mysql2/mysql2.bundle
Run Code Online (Sandbox Code Playgroud)

我尝试卸载mysql2gem 并使用 cpp 和 ld 标志安装它:

gem uninstall mysql2
gem install mysql2 -v 0.4.4 -- --with-cppflags=-I/usr/local/opt/openssl/include/openssl --with-ldflags=-L/usr/local/opt/openssl/lib
Run Code Online (Sandbox Code Playgroud)

但它没有帮助。

我也尝试升级mysql2到最新版本(v0.5.3在撰写本文时),但它也不起作用

ls -l /usr/local/opt/openssl/lib 给我:

total 14472
drwxr-xr-x  4 hirurg103  staff      128 Sep 10 16:13 engines-1.1
-r--r--r--  1 hirurg103  staff  2265596 Dec 13 …
Run Code Online (Sandbox Code Playgroud)

openssl mysql2 macos-mojave

6
推荐指数
2
解决办法
6313
查看次数

Git 钩子:'.git/hooks/pre-commit':不允许操作

这一切都在 OS X Mojave 上。

我试图阻止自己错误地提交到 master 分支,因为这是我经常做的事情,使用这个 SO answer 中pre-commitGit 钩子,因为我使用 bash 而不是 sh 稍微改变了。但是,每次我尝试运行它时,都会得到以下信息:

fatal: cannot exec '.git/hooks/pre-commit': Operation not permitted
Run Code Online (Sandbox Code Playgroud)

我检查了.git.git/hooks目录的权限。两者都是drwxrwxrwxpre-commit本身的权限是:

-rwxr-xr-x@  1 emeyer  staff    25 Feb  5 11:50 pre-commit
Run Code Online (Sandbox Code Playgroud)

...这与pre-commit.sample我复制到pre-commit然后替换内容的文件相同。我试过了,chmod +w但这并没有解决它。

我决定简化我的测试并替换pre-commit为以下内容:

#!/bin/bash

echo "Test"
Run Code Online (Sandbox Code Playgroud)

我仍然遇到上面提到的Operation not permitted错误。我也在#!/bin/shSO answer's example 中尝试了它;同样的结果。

如果我尝试直接运行脚本,通过./pre-commit从命令行输入,我会得到一个稍微不同的错误:-bash: ./pre-commit: /bin/bash: bad interpreter: Operation not …

git bash githooks macos-mojave

6
推荐指数
1
解决办法
2043
查看次数