Siddharth
Siddharth

Reputation: 9574

ld: framework not found IDZSwiftCommonCrypto

I have installed the pod libcommoncrypto, the path is <project>/Pods/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/*.swift files

I fail to understand why Xcode is not able to find a framework installed by the pod.

Edit (Podfile)

source 'https://github.com/CocoaPods/Specs.git'
project 'myproject.xcodeproj'
target 'myproject' do
  use_frameworks!
  pod 'Toaster'
  pod 'libCommonCrypto'
end

Library Project

Edit : CommonCrypto not found CommonCrypto not found

Upvotes: 2

Views: 799

Answers (1)

Gereon
Gereon

Reputation: 17864

You apparently have IDZCSwiftCommonCrypto and Toaster as explicit entries in your "Linked Frameworks and Libraries", not as part of you cocoapods. Remove those two and try again, these should be added to your app only via Pods_SwiftCommons.framework that cocoapods creates for you.

Also: pod 'libCommonCrypto' does not create any files named IDZSwiftCommonCrypto at all, instead I find Pods/libCommonCrypto/CommonCrypto.{h,swift}, as I would expect. IDZSwiftCommonCrypto is another pod, unrelated to libCommonCrypto, if you still have those files I'd recommend cleaning your your Pods directory and running pod update again.

Upvotes: 3

Related Questions