Target has transitive dependencies that include statically linked binaries in podspec - ios

I have a problem when I try to update google-cast-sdk pod in the podspec file my Pod library project.
In this podspec file I have:
s.dependency 'google-cast-sdk', '= 4.2.0'
This version works fine, but I need update the library to the last version so I modified this line to:
s.dependency 'google-cast-sdk'
But when I execute the pod install I get the following error:
[!] The 'Pods-XXXPlay_Example' target has transitive dependencies that
include statically linked binaries:
(/Users/juanfran/code/xxxx-play-ios/Example/Pods/google-cast-sdk/GoogleCastSDK-ios-4.4.7_static/GoogleCast.framework)
Could you help me with this problem, please?
Thanks so much.

Related

Why can't I specified the dependency version in a private pod?

I have a private pod and some configuration of the podspec file is as follows:
s.dependency 'QMUIKit','~> 2.7.1'
By the way, the newest version of QMUIKit is 2.7.2.And the cocoapods version of mine is 1.4.0
When I use pod lib lint command to verify the podspec file,I found that QMUIKit is installing to 2.7.2,the newest version in the master repo of cocoapods. And it is for this reason that my private pod can't be validated.
Why is that?What's wrong with the profile.

Issue with importing framework in Swift with Cocoapods

I am new to Swift, but I learned the basics. I wanted to import a framework but I ran into issues. I will now explain what steps I followed and what failed.
I installed cocoapods by using terminal command: sudo gem install cocoapods
I then navigated to my projects root directory with terminal then used command: pod init
It created a podfile, and I edited it as I have shown below.
platform :ios, '8.0'
use_frameworks!
target 'Testy' do
end
target 'TestyTests' do
pod 'Kingfisher', '~> 1.8.1'
end
target 'TestyUITests' do
pod 'Kingfisher', '~> 1.8.1'
end
I then closed xcode and started the project by clicking 'Testy.xcworkspace' file.
At this point, I did not add any code, just built the project without issues, problems start here.
When i try to import my framework and build, it gives the follow error:
Cannot load underlying module for 'Kingfisher'
So what might be the problem here? If you need additional info, ask me and I can provide.
In your Podfile, you do not have "pod 'Kingfisher', '~> 1.8.1'" listed for the target "Testy".

CocoaPods pod install. Modules cannot be imported

I installed CocoaPods by using $ sudo gem install cocoapods.
I have a swift Xcode project with the following podfile
platform :ios, '8.2'
use_frameworks!
target 'Clover' do
pod 'Alamofire', '~> 1.2'
pod 'SwiftyJSON', '~> 2.2'
pod 'ObjectMapper', '~> 0.12'
pod 'ImageLoader', '~> 0.3.0'
pod 'SVProgressHUD'
end
target 'CloverTests' do
end
After I run pod install, which seems to run correct with no error messages, I have a Pods folder generated with Pods.xcodeproject along with several other files.
However, when attempting to compile the project, I will into errors telling me my modules are not found. The error message is No such module followed by the module name.
I then attempted to install the modules manually and confirmed that the pods are indeed not working as each module after its manual installation, works.
I have searched and attempted several solutions as follows:
Deleted and reinstall pod.
Upgraded ruby to 2.2.1
Delete the pods folder and re-run $ pods install.
Clean the project.
More a comment than an answer, but I don't have enough reputation to comment:
When you use pod install with your-project.xcodeproject, it creates a new file/folder named your-project.xcodeworkspace (…project becomes …workspace) and this is this new file that you should open.
You didn't mention whether or not you knew that, so here you go: close the .xcodeproject in Xcode and open the .xcodeworkspace instead and it should work.

Unable to install Parse package via Cocoapods. Missing library

Senario:
I'm studying parse.com inter-table relationship via code.
I've set up a cocoapod dependency and am working from the .workspace.
This is the podfile content:
platform :ios
pod 'Parse', '~> 1.7.2.1'
However I received the following compiler error:
Apparently I'm missing a Library.
What am I doing wrong?
Try rerunning pod update from the project folder via the command line, then cleaning your build.
Also, you don't need to be quite to specific with your podfile. Try this instead:
platform :ios
pod 'Parse', '~> 1.7'

the file tidy.h and buffio.h not found

I am developing app using CXFeedParser. But after doing all the integration,
The File "MWImageParser.m" is generating error.
# import "tidy.h" and "buffio.h" not found
buffio.h and tidy.h is a part of TidyLib.
Simple solution is to include its source in your project (see include and src folder).
Other solution is to include a cocoapod tidy-html5 (seems to be experimental, so be careful). There is a cocoapod for MWFeedParser too.
Check the Cocoapods website for more information (if you still need).
Basically, after installation (via sudo gem install cocoapods), you need to create the following Podfile in your project root, with the following content:
pod 'MWFeedParser', '~> 1.0'
pod 'tidy-html5', '~> 0.0'
Then run pod install and open the generated xcworkspace.
Note: only Podfile and Podfile.lock should be added to source control. The Pods directory can be ignored.
Edit: You are using CXFeedParser. If you look at the CXFeedParser podspec, you'll see it has a dependency with CTidy. So remove MWFeedParser from your project and have the following Podfile:
pod 'MWFeedParser', '~> 1.0'
pod 'CTidy', '~> 0.3'
There is very simply way i have found, no need to do any pod setup, just download the Tidy.h and Buffio.h from GIT Hub and include in Your project, and it will run smoothly..
Finally solved my own question.

Resources