美文网首页
swift调用c方法报错

swift调用c方法报错

作者: OrrHsiao | 来源:发表于2024-04-10 15:59 被阅读0次
    ld: Undefined symbols:
      _aidlk_ecdh_curve25519_generate_keypair, referenced from:
          static AKUtil.AKECDH.cccccc() -> () in AKUtil[8](AKECDH.o)
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    
    Undefined symbols:
    Linker command failed with exit code 1 (use -v to see invocation)
    

    解决方法:c方法不能写成static

    相关文章

      网友评论

          本文标题:swift调用c方法报错

          本文链接:https://www.haomeiwen.com/subject/nfgqxjtx.html