簡體   English   中英

安裝不帶cocoapods的'JSONWebToken'庫

[英]Install 'JSONWebToken' library without cocoapods

有沒有沒有cocoapods的安裝此的方法? 因為當我使用pod安裝它時,出現此錯誤:

[!] Pods written in Swift can only be integrated as frameworks; add `use_frameworks!`
to your Podfile or target to opt into using it. The Swift Pods being used are: 
CryptoSwift and JSONWebToken

當我添加'use_framewords!' 我在使用pod也用objective-c編寫的其他庫上也遇到了錯誤

這是我的podfile:

source “https://github.com/CocoaPods/Specs.git”
platform :ios, '8.1'
pod 'GoogleMaps'
pod 'RSKImageCropper'
pod 'AFNetworking', '~> 3.0'
pod 'DZNEmptyDataSet'
pod 'Instabug'

提前致謝

  • 您可以將鏈接源拖放到您的項目中。 如果以這種方式添加庫,則將按照您所知的方式手動更新庫。
  • 第二種選擇是使用cocoapods並解決問題。 當您使用use_frameworks! cocoapods嘗試將整個pod轉換為框架,因此錯誤應該出在橋接頭中。 嘗試將框架導入文件中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

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