You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Delphi 10.4.2 FMX应用在iPhone 13运行崩溃求助

解决Delphi 10.4.2 PAServer 21依赖Python 2.7崩溃问题

报错核心是PAServer 21的liblldb.3.8.0.dylib依赖已被新Mac系统移除的Python 2.7,以下是具体解决思路:

  • 安装Python 2.7并适配路径
    新MacOS版本已默认移除Python 2.7,需手动安装适配ARM架构的Python 2.7安装包。安装完成后,创建软链接让系统能找到该库:

    sudo ln -s /Library/Frameworks/Python.framework/Versions/2.7 /System/Library/Frameworks/Python.framework/Versions/2.7
    

    注意:操作/System目录需先关闭系统完整性保护(SIP),完成后可重新开启。

  • 修改liblldb依赖路径(无需修改系统目录)
    若不想动系统目录,可直接修改PAServer的lldb库依赖指向已安装的Python 2.7:

    1. 先查看当前依赖:
      otool -L /Applications/PAServer-21.0.app/Contents/MacOS/lldb/lib/liblldb.3.8.0.dylib
      
    2. 更新依赖路径:
      sudo install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python /Applications/PAServer-21.0.app/Contents/MacOS/lldb/lib/liblldb.3.8.0.dylib
      
  • 升级PAServer或Delphi版本
    PAServer 21对M2芯片、XCode 13.4.1的兼容性有限,可尝试:

    • 安装Delphi 10.4.2对应的最新PAServer补丁;
    • 升级到Delphi 11.x及以上版本,其配套的PAServer已适配新Mac系统,不再依赖Python 2.7。
  • 验证修复
    重启PAServer,重新部署FMX应用到iPhone 13,检查是否仍出现崩溃及报错。

内容的提问来源于stack exchange,提问作者Arnau Serra

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.19 15:25:18