kylef / JSONWebToken.swift

Swift implementation of JSON Web Token (JWT).
http://jwt.io
BSD 2-Clause "Simplified" License
763 stars 226 forks source link

Xcode Version 10.0 beta 5, error Redefinition of module 'CommonCrypto' #116

Open gregoireLem opened 6 years ago

gregoireLem commented 6 years ago

Using JSONWebToken (2.2.0)

I have this error when using Xcode Version 10.0 beta 5 capture d ecran 2018-08-20 a 17 09 02

mkBajaj commented 6 years ago

I am also facing same above mentioned issue.

gregoireLem commented 6 years ago

Removing CommonCrypto file from Pods/JSONWebToken did the trick

KeimyPlaza commented 6 years ago

Maybe is the same issue, like #102

I hope the PR (https://github.com/kylef/JSONWebToken.swift/pull/114) will be approved soon

nagaraju85 commented 5 years ago

I am also facing same Issue

mtangoo commented 3 years ago

Edit: Found a solution here: https://github.com/kylef/JSONWebToken.swift/issues/102#issuecomment-470076753

# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'

target 'App' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for App
  .....
  pod 'JSONWebToken'
  #Other pods

  #Remove the folder to fix the error
  post_install do |installer|
    require 'fileutils'
    FileUtils.rm_rf('Pods/JSONWebToken/CommonCrypto')
  end
end