【问题标题】:Castlabs electron app breaks when running on certain MacOS versionsCastlabs 电子应用程序在某些 MacOS 版本上运行时中断
【发布时间】:2019-07-21 05:21:42
【问题描述】:

我在 MacOS High Sierra 上使用 Castlabs 电子叉用于内容安全 (https://github.com/castlabs/electron-releases) 开发了一个 DRM 播放应用程序。我收到有关应用程序无法在某些 MacOS 版本上启动的报告,并显示以下错误消息:

Process:               indee [52975]
Path:                  /Applications/indee.app/Contents/MacOS/indee
Identifier:            com.electron.indee
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           indee [52975]
User ID:               503

Date/Time:             2019-02-25 20:25:09.463 +0530
OS Version:            Mac OS X 10.11.6 (15G31)
Report Version:        11
Anonymous UUID:        4BF915F3-40DA-0ABC-3930-F21B00CF3FD7

Sleep/Wake UUID:       69FABBB3-0032-4519-81B0-0CB25B679ACC

Time Awake Since Boot: 650000 seconds
Time Since Wake:       240 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
Symbol not found: _kSecAttrKeyTypeECSECPrimeRandom
Referenced from: /Applications/indee.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework
Expected in: /System/Library/Frameworks/Security.framework/Versions/A/Security
in /Applications/indee.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework

据我所知,这个问题在运行相同 macOS 版本的不同 Mac 上并不能始终如一地重现,但它很常见以至于它会产生问题。我该如何解决这个问题?

【问题讨论】:

    标签: macos electron electron-builder


    【解决方案1】:

    作为参考,electron-releases 中报告的几个问题讨论了此问题的原因和解决方案:#34#30

    简而言之,当构建使用旧版本的 MacOSX10.12 SDK 时会出现此问题,其中可用性宏错误地指示目标操作系统版本上kSecAttrKeyTypeECSECPrimeRandom 符号的可用性,而它不是。这会导致符号使用非弱链接,从而有效地使其成为必需,从而导致缺少它的系统(即 10.12 - Sierra 之前的系统)出现故障。我们的解决方案是在构建我们的版本时使用 MacOSX10.12 SDK 的更正版本,例如 Xcode 8.3.3 提供的版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-25
      • 1970-01-01
      • 2012-12-17
      • 1970-01-01
      • 2018-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多