簡體   English   中英

嘗試導入web3swift時發生編譯錯誤

[英]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>
  • 點擊+
  • 添加$(SRCROOT)並將其設置為遞歸

根據您的問題-可能您正在使用另一個倉庫。 請檢查實際版本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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM