2

I'm using XCODE 7.1. Trying to add this library to my existing Swift project, I've made the following pod file:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'PusherSwift'

Since installing this, my project throws the following error when trying to build:

ld: framework not found CryptoSwift clang: error: linker command failed with exit code 1 (use -v to see invocation)

I can't import the required library. and I also have a red (missing) framework named Pods_myProject.framework

How can I fix it?

4
  • 1
    You are opening the yourProject.xcworkspace instead of the yourProject.xcodeproj, right? Commented Dec 7, 2015 at 1:31
  • Oh god, thank you for that Commented Dec 7, 2015 at 7:30
  • I've added an answer cause it was what I supposed it was! Glad it helped :) Please accept the answer I've just posted so the question gets 'closed' Commented Dec 7, 2015 at 12:34
  • Note on CryptoSwift: It is 500 to 1000 times slower than Apple's supplied Common Crypto and my have security issues. Commented Dec 7, 2015 at 12:55

1 Answer 1

4

After installing pods you need to make sure to open the Xcode workspace (yourProject.xcworkspace) instead of the project (yourProject.xcodeproj) when building your project.

See CocaPods page for more info.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.