JSONWebToken.swift icon indicating copy to clipboard operation
JSONWebToken.swift copied to clipboard

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

Open gregoireLem opened this issue 7 years ago • 5 comments

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

gregoireLem avatar Aug 20 '18 15:08 gregoireLem

I am also facing same above mentioned issue.

mkBajaj avatar Aug 21 '18 10:08 mkBajaj

Removing CommonCrypto file from Pods/JSONWebToken did the trick

gregoireLem avatar Aug 21 '18 10:08 gregoireLem

Maybe is the same issue, like #102

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

KeimyPlaza avatar Aug 27 '18 08:08 KeimyPlaza

I am also facing same Issue

nagaraju85 avatar Jun 21 '19 18:06 nagaraju85

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

mtangoo avatar Mar 21 '21 05:03 mtangoo