I am trying to clone a project from a bitbucket repository and am getting an error Id: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation)
when trying to run an Xcode project in workspace. These are the steps I have followed, if anyone could let me know what I am doing wrong, that would be great!
git clone (link to bitbucket)
none
for both debug and releasepod install
Id: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation)
Edit Here is the podfile:
# Uncomment this line to define a global platform for your project platform :ios, '8.0' use_frameworks! source 'https://github.com/CocoaPods/Specs.git' target 'Oncarb' do pod 'Alamofire' pod 'SwiftyJSON', '~> 2.2.0' end #target 'OncarbTests' do # pod 'Alamofire' # pod 'SwiftlyJSON', '~> 2.2.0' #end
Is there a step I am missing?
Thank you!
“CocoaPods manages library dependencies for your Xcode projects. The dependencies for your projects are specified in a single text file called a Podfile. CocoaPods will resolve dependencies between libraries, fetch the resulting source code, then link it together in an Xcode workspace to build your project.
Save the changes you made to your project's Podfile and open Terminal or iTerm. Execute the pod install command to install the dependencies you defined in the project's Podfile. If you want to know exactly what CocoaPods is doing behind the scenes, you can add the --verbose flag.
This is usually caused by having the .xcodeproj file open instead of .xcworkspace. When you run 'pod install' for the first time, it will create an .xcworkspace file, which includes your original .xcodeproj and a Pods project. You'll need to close your .xcodeproj and open the .xcworkspace instead.
The first thing that you will need to do is remove the Podfile, Podfile.lock, the Pods folder, and the generated workspace. Next, in the .xcodeproj, remove the references to the Pods.xcconfig files and the libPods.a file.
Remove Pods.framework. The only thing you may want to do is include some of the libraries that you were using before. You can do this by simply draging whatever folders where in the pods folders into your project (I prefer to put them into my Supporting Files folder).
Sometimes after renaming a target or moving something, you can corrupt your pods installation. Luckily, there's an easier way to fix it than sudo make install
's solution.
pod deintegrate
to remove any trace of Cocoapods from your project.pod install
again to add it all back.That's it, fixed.
This has fixed it for me:
In my case, it didn't work unless I removed the pods frameworks, but I get the feeling that this is a workaround. Perhaps someone with more experience can comment.
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