Today i decided to give a go to Realm for a project, but, when adding it via cococa pods, it just keeps yelling me he can't find Realm.Private on the ListBase class.
tried to clean, tried to reimport, closed & reopened Xcode....
content of my cocoapods file:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'RealmSwift'
thanks.
There was an issue on Realm's GitHub repository about that.
Realm Swift's podspec makes use of some brand new CocoaPods features, so you will need to update CocoaPods to at least 0.37.1.
Cleaning the cache and the existing installation and re-installing has proven to be helpful in that case:
rm -r Pods/Realm
rm -r ~/Library/Caches/CocoaPods/Pods/Released/Realm
pod install
Related
I have tried doing the pod repo remove trunk, pod install, pod update process, but it doesn't seem to work either. Thanks in advance for your answers!
Try to delete your CocoaPods and reinstall it.
Or juste use Swift Package Manager => https://developers.facebook.com/docs/ios/getting-started/
Seems quite a common error.
First add this string at the top of the Podfile source 'https://github.com/CocoaPods/Specs.git'
On the terminal type pod repo remove trunk and then try a pod install
I recently installed CocoaPods and Firebase into my project. I've been attempting to build but am getting the following errors:
'FirebaseCore/FirebaseCore.h' file not found
Could not build Objective-C module 'Firebase'
Command PhaseScriptExecution failed with a nonzero exit code
I checked my folders and the FirebaseCore.h file definitely does NOT exist. I've reinstalled CocoaPods, modified the Podfile and did a 'pod update' and 'pod install' several times.
I've reviewed several of the questions and solutions listed on stack overflow but none of them have worked.
Here are my specs:
Xcode 11.3.1
Swift 5
My Podfile looks like this:
# platform :ios, '9.0'
target 'project' do
use_frameworks!
# Pods for Project
pod 'MessageKit', '~> 3.0.0-swift5'
pod 'MessageInputBar'
# Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# Add the pods for any other Firebase products you want to use in your app
# For example, to use Firebase Authentication and Cloud Firestore
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
end
That's the error you'll get when opening the project using the .xcodeproj file.
You need to use the .xcworkspace file to open the project.
That file is generated when installing the pods using cocoapods.
Other things to try
Quit XCode. Go into terminal and do this sudo gem install cocoapods. Then use the cocoapods.app to update the project with your pod file. Then clean and rebuild the project.
In your project, select the project name in the left column (where the project files are). Then in Targets, ensure the Team popup is selected to your team name, not 'None' and that your Signing Certificate is correct.
This one is extreme but I have seen it correct some build issues. Deleting the login keychain (using the keychain.app). This will also delete all of your stored passwords so keep that in mind.
Even I had same issue when upgrading to Xcode 11.2.1. Errors were resolved after using Firebase 6.13.0.
Please make changes to your Podfile as below,
pod 'Firebase', '=6.13.0'
pod 'Firebase/Core'
pod 'Firebase/Analytics'
Somehow my base project had other issues that were generating this error that I was never able to uncover. So I did the following:
1. Created a new project and imported old project files.
2. Installed cocoapods on the new project
3. Followed the FireBase instructions referenced in the answer from #Jay
4. Cleaned project and performed a build
5. No more error
I'm trying to install the Charts package to use with CocoaPods and it keeps saying "No such module 'Charts'".
If I added the pod 'Charts' in the podfile, and did a pod install and the files are there in Xcode, how come it still gives me an error when I try to import Charts?
Do I still need to do the steps below? Or does CocoaPods do it for me?
Drag the Charts.xcodeproj to your project
Go to your target's settings, hit the "+" under the "Embedded Binaries" section, and select the Charts.framework
My pods file looks like this now:
You just have to hit Command-b to build, then the error will go away. The other solution is to hit Product > Build.
I had a similar problem when I was developing an app for an older platform. The CocoaPod I sourced supported Swift 4 but I was developing for Swift 3. When I sourced the last Swift 3 version of the pod, the "No such module" error was no longer there. Try the following line in your Podfile:
pod 'Charts', '3.0.3'
instead of the latest version.
try installing it manually moving the complete charts folder to your project, or downloading using carthage, it's way more cleaner using carthage than cocoapods because it doesn't create you a .xcworkspace like cocoapods.
I like to integrate a zip library in my macOS application.
I created a file named Podfile in my project folder (next to .xcodeproj file).
It contains following lines (as given here - on the bottom of the page):
source 'https://github.com/CocoaPods/Specs.git'
pod 'Zip', '~> 0.4'
If I run $ pod install on the terminal, I am receiving this error:
Analyzing dependencies
[!] The dependency `Zip (~> 0.4)` is not used in any concrete target.
EDIT:
I tried it now with the pod init template, but got an error. So I raised a new question.
It's a very simple question, and it does mean that you didn't give your research on what you are searching for. Please do your research, and then post a question here if there is any problem. Please give respect to people's time.
GitHub repo SSZipArchive
CocoaPods
pod install SSZipArchive
Carthage
github "ZipArchive/ZipArchive"
So today I've been trying to try out a new project using Swift, but I've arrived to an abrupt halt. I've been trying to run the VideoCore sample project found here: https://github.com/jgh-/VideoCore/tree/823ec7cac50e5a0b4457bd06dd95a50dca88d9c0/sample/SampleBroadcaster-Swift.
So during the initial setup I had to navigate to the directory and run pod install. pod install executed without any errors, and say I need to close Xcode, and reopen the new workspace, which I did. When I try to go and run the app for debugging (as according to the documentation I can run it right after pod install'ing, I get an error that says 'type_half.inl' file not found. A few screenshots are here to better explain/show: http://d.pr/i/14TqW, and http://d.pr/i/1aYSi.
I've tried reinstalling the pod multiple times, and I haven't been able to resolve this issue. Has anyone had a situation like this, or have any idea on how to get out of this blackhole?
Thanks!
This has been resolved by downgrading CocoaPods to version 0.38.2. Here's what I did:
gem install cocoapods -v 0.38.2
gem uninstall cocoapods -v 0.39.0
And that fixed my issues.
Instead of downgrading CocoaPods to version 0.38.2. This error can be resolved in other way as I have fixed recently on of my project.
STEP 1:- Search Header Search Paths under build setting on GLM target or target that uses GLM pod like in my project VideoCore cocoapods uses GLM
STEP 2:- make it recursive instead of non-recursive.
Build again error will be fixed.
NOTE:- if you update cocoapods that you have to redo the steps again. Also target will be in pod project.
Attached image for reference.