Reputation: 83
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.
Upvotes: 7
Views: 10137
Reputation: 71
First close workspace Second clean derived data (~/Library/Developer/Xcode/DerivedData/)
First put this line in Podfile, after this line config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
pod 'CocoaAsyncSocket' <— put it after above line
Then run below command in terminal pod deintegrate rm Podfile.lock
Then manually delete workspace of project
After that go to iOS folder
And run below command Pod install
You can see after pod install command , Podfile.lock and workspace generated automatically.
Then open workspace and clean project and build again then you get a new error of “multiple command produces derived data” so, for that go to Build phases > Copy Bundle Resources and remove info.plist and fonts ttf file from there.
Notes: workspace must be “New build system,”..
Then build the project..
It works very fine.
Upvotes: 0
Reputation: 6471
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
Upvotes: 7
Reputation: 5866
I just deleted libPod.a from Target-Build phases and it worked.
Upvotes: 1
Reputation: 148
use_frameworks! is only needed if the Pod has to be imported as a dynamic framework.
There are several possibilities:
Upvotes: 4