rime / squirrel

【鼠鬚管】Rime for macOS
https://rime.im
GNU General Public License v3.0
4.52k stars 412 forks source link

osx 12.7 安装 0.16.2版本失败 #949

Closed allen7fu closed 2 weeks ago

allen7fu commented 2 weeks ago

簡要描述 Bug: 安装报错

預期行爲: 安装成功

實際行爲: 安装失败

環境

请问下,是不是有什么前置条件,还有我怎么找到安装失败的日志可以提供给你们,谢谢🙏

allen7fu commented 2 weeks ago

在 /var/log/install.log 中找到以下错误

2024-06-20 14:17:08+08 C02F60DEMD6T package_script_service[1754]: ./postinstall: dyld[21122]: Library not loaded: '/usr/lib/swift/libswift_StringProcessing.dylib'
2024-06-20 14:17:08+08 C02F60DEMD6T package_script_service[1754]: ./postinstall:   Referenced from: '/Library/Input Methods/Squirrel.app/Contents/MacOS/Squirrel'
2024-06-20 14:17:08+08 C02F60DEMD6T package_script_service[1754]: ./postinstall:   Reason: tried: '/usr/lib/swift/libswift_StringProcessing.dylib' (no such file), '/usr/lib/libswift_StringProcessing.dylib' (no such file)
2024-06-20 14:17:08+08 C02F60DEMD6T package_script_service[1754]: ./postinstall: /tmp/PKInstallSandbox.FFEsOc/Scripts/im.rime.inputmethod.Squirrel.xD7OcD/postinstall: line 17: 21121 Abort trap: 6           /usr/bin/sudo -u "${login_user}" "${squirrel_executable}" --install
2024-06-20 14:17:08+08 C02F60DEMD6T package_script_service[1754]: Responsibility set back to self.
2024-06-20 14:17:08+08 C02F60DEMD6T install_monitor[21115]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2024-06-20 14:17:08+08 C02F60DEMD6T installd[1740]: PackageKit: releasing backupd
2024-06-20 14:17:08+08 C02F60DEMD6T installd[1740]: PackageKit: allow user idle system sleep
2024-06-20 14:17:08+08 C02F60DEMD6T installd[1740]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "运行软件包“Squirrel.pkg”的脚本时出错。" UserInfo={NSFilePath=./postinstall, NSURL=file://localhost/Users/su.fu/Downloads/Squirrel.pkg, PKInstallPackageIdentifier=im.rime.inputmethod.Squirrel, NSLocalizedDescription=运行软件包“Squirrel.pkg”的脚本时出错。} {
        NSFilePath = "./postinstall";
        NSLocalizedDescription = "\U8fd0\U884c\U8f6f\U4ef6\U5305\U201cSquirrel.pkg\U201d\U7684\U811a\U672c\U65f6\U51fa\U9519\U3002";
        NSURL = "file://localhost/Users/xxx/Downloads/Squirrel.pkg";
        PKInstallPackageIdentifier = "im.rime.inputmethod.Squirrel";
    }
cai-caiweili commented 2 weeks ago

我也是一样的问题。。。。你解决了么

LEOYoon-Tsaw commented 2 weeks ago

0.16.2 版本沒用到swift,咋會要求libswift?你確定你裝的是0.16.2?不是1.0.2?

allen7fu commented 2 weeks ago

我想起来了,我应该是没注意到安装了一次1.0.2,安装失败后,换成安装0.16.2就一直报错了。 估计环境不干净了,不知道怎么删除...

LEOYoon-Tsaw commented 2 weeks ago

/Library/Input Methods/Squirrel.app 刪了應該就行

cai-caiweili commented 2 weeks ago

/Library/Input Methods/Squirrel.app 刪了應該就行

非常感謝,解決了

allen7fu commented 2 weeks ago

感谢🙏