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

Carthage Build fails for IDZSwiftCommonCrypto #24

Closed
priyapy opened this issue May 11, 2016 · 13 comments
Closed

Carthage Build fails for IDZSwiftCommonCrypto #24

priyapy opened this issue May 11, 2016 · 13 comments
Assignees
Labels

Comments

@priyapy
Copy link

priyapy commented May 11, 2016

Carthage is not getting build for IDZSwiftCommonCrypto. Following is the error i am getting.

The following build commands failed:
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/Utilities.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/KeyDerivation.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/Status.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/Crypto.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/Cryptor.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/StreamCryptor.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/Updateable.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/Random.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(9 failures)
/Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/KeyDerivation.swift:10:8: error: no such module 'CommonCrypto'
/Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/KeyDerivation.swift:10:8: error: no such module 'CommonCrypto'
/Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/KeyDerivation.swift:10:8: error: no such module 'CommonCrypto'
/Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/KeyDerivation.swift:10:8: error: no such module 'CommonCrypto'
/Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/KeyDerivation.swift:10:8: error: no such module 'CommonCrypto'
/Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/KeyDerivation.swift:10:8: error: no such module 'CommonCrypto'
/Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/KeyDerivation.swift:10:8: error: no such module 'CommonCrypto'
/Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/KeyDerivation.swift:10:8: error: no such module 'CommonCrypto'
A shell task (/usr/bin/xcrun xcodebuild -workspace /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto.xcworkspace -scheme IDZSwiftCommonCrypto (Release) -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** BUILD FAILED **

The following build commands failed:
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/Utilities.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/KeyDerivation.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/Status.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/Crypto.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/Cryptor.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/StreamCryptor.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/Updateable.swift
CompileSwift normal arm64 /Users/MyComputer/Documents/ - iOS/10 May/XXXXX/Carthage/Checkouts/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/Random.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(9 failures)

Some body please help me

@iosdevzone
Copy link
Owner

Hi priyapy, What version of Xcode, OS X and Carthage are you using?

@iosdevzone iosdevzone self-assigned this May 11, 2016
@priyapy
Copy link
Author

priyapy commented May 12, 2016

I am using xcode 7.3.1 .
OS X: El captain 10.11.4
Carthage : 0.16.2

@iosdevzone
Copy link
Owner

iosdevzone commented May 13, 2016

I am having difficulty reproducing the problem. I wonder if the presence of the path element " - iOS" in your paths is to blame? Paths containing spaces or '-' characters confuse some command line tools.
Perhaps move your project to a directory that has no spaces or '-' signs.
If this does not work, please attach the complete output of Carthage and the complete log file and I will try to help out.

@priyapy
Copy link
Author

priyapy commented May 15, 2016

Sure i ll try this

@priyapy
Copy link
Author

priyapy commented May 17, 2016

Thank you for the prompt response. It worked well.

@priyapy priyapy closed this as completed May 17, 2016
@priyapy priyapy reopened this May 17, 2016
@priyapy
Copy link
Author

priyapy commented May 17, 2016

But getting error as Missing required module 'Common Crypto' when using in another device

@iosdevzone
Copy link
Owner

iosdevzone commented May 17, 2016

Hi there, sorry you're still having trouble. I am not sure I understand what you mean by "when using in another device" can you explain a little more please? For example, were you attempting to compile or attempting to run when you saw this message?

Also please copy & paste or attach original log file or error messages... It seems a little strange that there is a space in 'Common Crypto' in your message, unless it is a typo.

Hopefully I can get you up and running soon.

Thanks for your patience,
idz

@priyapy
Copy link
Author

priyapy commented May 18, 2016

I am using this particular idzswiftcommoncrypt in a dynamic framework. While i am referring that framework from an external project i am getting error "missing required module 'CommonCrypto'". Why is it like that.

@iosdevzone
Copy link
Owner

iosdevzone commented May 18, 2016

Hi,
Without a build log I really don't have enough information to help you any further. Please attach a build log or post a minimal project that reproduces the problem somewhere.
This is not a build problem with IDZSwiftCommonCrypto, it is an issue in the build configuration of your dynamic framework build.
idz

@priyapy
Copy link
Author

priyapy commented May 18, 2016

Can u clarify one thing? Y do we need to create a fake module map for common crypto while installing it manually

@iosdevzone
Copy link
Owner

Apple does not provide a module map for CommonCrypto because there is no CommonCrypto.framework. The routines are part of the System framework. The fake module map serves to make the routines visible to Swift. It should only be needed during the compilation of IDZSwiftCommonCrypto. After that the linker will just resolve the CommonCrypto routines to the ones in System. Somehow your project seems to think it needs CommonCrypto; not sure why.

@priyapy
Copy link
Author

priyapy commented May 19, 2016

Ok, but i believe we need to do this step only for manual implementation.
Currently I am using this in my dynamic framework. So I am attaching the error which i am facing when i am using my framework in a project application
screenshot 2016-05-19

@iosdevzone
Copy link
Owner

HI there, without a project to reproduce it I really can't help you any further. Closing this issue for the moment. If you can provide an example project I will reopen it.

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

No branches or pull requests

2 participants