mac gdb调试的各种错误解决方案

在MacOSX上,使用lldb调试需要进行代码签名。通过创建名为lldb_codesign的证书来设置调试和发布构建的代码签名。详细步骤包括:创建证书,设置信任级别,证书复制到系统密钥链,终端命令添加信任,最后删除并重启以解决问题。
摘要由CSDN通过智能技术生成

On MacOSX lldb needs to be code signed. The Debug and Release builds
are set to code sign using a code signing certificate named
lldb_codesign.

If you don’t have one yet you will need to:

  • Launch /Applications/Utilities/Keychain Access.app

  • In Keychain Access select the “login” keychain in the “Keychains”
    list in the upper left hand corner of the window.

  • Select the following menu item:

    Keychain Access->Certificate Assistant->Create a Certificate…

  • Set the following settings

    Name = lldb_codesign
    Identity Type = Self Signed Root
    Certificate Type = Code Signing

  • Click Continue

  • Click Continue

  • Click Done

  • Click on the “My Certificates”

  • Double click on your new lldb_codesign certificate

  • Turn down the “Trust” disclosure triangle

    Change:
    When usin

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值