I've been trying to install a pod called SabBar using cocoapods, I've successfully install cocoapods along with the initial setup. But for some reason I'm getting this error during compile time:
ld: warning: directory not found for option '-F/Users/Andy/Library/Developer/Xcode/DerivedData/JymJam-gocrzdctroqhlaedmghajkejcugm/Build/Products/Debug-iphonesimulator/SabBar'
ld: framework not found SabBar
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've looked at other solutions but they don't seem to work for me.
This is what my Podfile looks like:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target "JymJam" do
pod 'SabBar'
end
I've tried removing "use_frameworks!" but this doesn't work as my project is swift based.
You can add dependencies on subspecs. Specify the minimum deployment target version for the Pod library. Re-import the project.
use_frameworks! tells cocoa pods to use dynamic libraries, and was very prevalent at one point due in particular to swift not supporting static libraries, meaning there was no choice - however you often don't need use_frameworks! anymore. As of Xcode 9 beta 4, and CocoaPods 1.5.
I fixed this issue by using the following two steps:
Firstly go to the project path in terminal then apply the following steps
1 : pod deintegrate
2 : pod install
use_frameworks! is only needed if the Pod has to be imported as a dynamic framework.
There are several possibilities:
I just deleted libPod.a from Target-Build phases and it worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With