[英]Compile error when trying to import web3swift
我正在嘗試將web3swift
導入我的Swift
文件之一,但出現編譯器錯誤
沒有這樣的模塊“ web3swift””。
導入語句如下所示:
import Geth
import web3swift
在我的pod文件中,我有:
pod 'web3swift', :git => 'https://github.com/MercuryProtocol/web3.swift.git', :branch => 'master'
我還嘗試了以下無效的修復程序:
Build Settings
Framework Search Paths
(區分大小寫) <Multiple values>
+
根據您的問題-可能您正在使用另一個倉庫。 請檢查實際版本0.7.0
web3swift可通過CocoaPods獲得 。 要安裝它,只需將以下行添加到您的Podfile中:
pod 'web3swift', git: 'https://github.com/matterinc/web3swift'
從命令行運行pod install
之后應該可以正常工作。 如果仍有問題,請隨時打開問題: https : //github.com/matterinc/web3swift/issues
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.