简体   繁体   中英

Install 'JSONWebToken' library without cocoapods

Is there a way to install this library without cocoapods ? because when i install it with pod i get this error :

[!] 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

And when i add 'use_framewords!' i got error on the other libraries written with objective-c that use pod also

Here is my podfile :

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

Thank's in advance

  • You can drag and drop the link sources into your project. If you add the library in this way, you will update the library manually as you know.
  • The second option is using cocoapods and solving the problem. When you use use_frameworks! cocoapods tries to convert the whole pods as framework, so the error should be in your bridging header. Try to import your frameworks in your files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM