尝试导入web3swift时编译错误

问题描述 投票:2回答:1

我试图将web3swift导入我的Swift文件之一,但得到编译器错误

没有这样的模块'web3swift'“。

import语句如下所示:

import Geth
import web3swift

在我的pod文件中,我有:

pod 'web3swift', :git => 'https://github.com/MercuryProtocol/web3.swift.git', :branch => 'master'

我也尝试了以下修复,但没有奏效:

  • Build Settings
  • 搜索Framework Search Paths(区分大小写)
  • 双击<Multiple values>
  • 单击+
  • 添加$(SRCROOT)并将其设置为递归
ios swift cocoapods web3 web3swift
1个回答
0
投票

根据你的问题 - 可能你正在使用另一个回购。请,请检查实际版本0.7.0

Installation

web3swift可通过CocoaPods获得。要安装它,只需将以下行添加到Podfile:

pod 'web3swift', git: 'https://github.com/matterinc/web3swift'

从命令行运行pod install

之后应该可以正常工作。如果您仍有问题,请随时打开问题:https://github.com/matterinc/web3swift/issues

© www.soinside.com 2019 - 2024. All rights reserved.