I've written small library for One-Time Passwords and I'd like to make it available through CocoaPods but I'm failing at pod spec validation.
-> OTPGenerator (1.0) - ERROR | [iOS] Returned an unsuccessful exit code. You can use
--verbose
for more information. - ERROR | .../OTPGenerator/OTPGenerator/HOTPGenerator.swift:19:8: error: no such module 'CommonCrypto'
Everything works fine in XCode, example project compiles without extra configuration. I added dummy CommonCrypto
framework to the project and made actual framework dependant on it.
Is there any way to make that visible to the pod spec? I've tried multiple ways but I always end up with the same error.
Source code is available here: https://github.com/codewise/ios-otp-generators.