Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 10 - Build Error #119

Open
marcellofiore opened this issue Sep 18, 2018 · 8 comments
Open

Xcode 10 - Build Error #119

marcellofiore opened this issue Sep 18, 2018 · 8 comments

Comments

@marcellofiore
Copy link

marcellofiore commented Sep 18, 2018

screen shot 2018-09-18 at 13 41 15

Using JSONWebToken (2.2.0) with Pod
I have this error when using Xcode Version 10.0, please update.

I hope in a quick update, Regards.

@novixon
Copy link

novixon commented Sep 18, 2018

I have the same issue. I saw the 3.0.0 unofficial version, but there is no .podspec file. So I am a little bit bewildered. How do you suggest to use it?

@marcellofiore
Copy link
Author

where did you find version 3.0?

@mataspetrikas
Copy link

same here, with the Pod version JSONWebToken (2.2.0)

@Pivovar63
Copy link

Same issue. Maybe it helps

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/include/CommonCrypto/module.modulemap:1:8: error: redefinition of module 'CommonCrypto'
...
/Users/.../Carthage/Checkouts/JSONWebToken.swift/CommonCrypto/module.modulemap:1:8: note: previously defined here

@juchampagne
Copy link

juchampagne commented Sep 19, 2018

Thats how I fixed it in the Podfile if this helps anyone:

post_install do |installer|
    
    installer.pods_project.targets.each do |target|
        
        if target.name == 'JSONWebToken'
            system("rm -rf Pods/JSONWebToken/CommonCrypto")
        end
        
    end
    
end

@JamaicanRumCream
Copy link

I needed to add some build variants for os types to the exclusion code by juchampagne
if target.name == 'JSONWebToken' || target.name == 'JSONWebToken-iOS' || target.name == 'JSONWebToken-macOS' || target.name == 'JSONWebToken-tvOS'

@markltownsend
Copy link

It appears the CommonCrypto is now part of iOS 12.

@bjeromeHCS
Copy link

Thanks @juchampagne I added that code to the end of my podfile and my Xcode 10.1 project can now build successfully with v2.2.0 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants