Need help getting to the latest ver of RealmSwift

Whenever I debug my app, I get the message of their being a new version of RealmSwift, 10.52.2.

I installed RealmSwift using pods. with this I have no experience. Unsure of what the proper technique, I just ran the same pods procedure that I got from YouTube, to install it. Ran it more than once, and in all the verbiage it definitely said 10.52.2

But when I finally looked at the .info file of the Realm part of my project, it said 10.52.1

Can someone help me out on how to upgrade RealmSwift on my Mac, as well as in my project file?

Thanks you

Can you please include your podfile, version of CocoaPods and XCode?

Xcode 15.4

pod 1.15.2

And if you mean the pod file that I used to install Realm (barely know what I am doing on this end, unix type):

Uncomment the next line to define a global platform for your project

platform :ios, ‘9.0’

target ‘How Many’ do

Comment the next line if you don’t want to use dynamic frameworks

use_frameworks!

Pods for How Many

pod ‘RealmSwift’

end

You may want to update your podfile to this

pod ‘RealmSwift’, ‘~>10’

Also, the lowest supported iOS is iOS 12.0+, so may want to alter that line as well.

1 Like

Sorry need a little more help: I did as told, yet I have little to no knowledge of pods, etc. Gotten this far with YouTube.

I changed my pod file to:

Uncomment the next line to define a global platform for your project

platform :ios, ‘12.0’

target ‘How Many’ do

Comment the next line if you don’t want to use dynamic frameworks

use_frameworks!

Pods for How Many

pod ‘RealmSwift’, ‘>=10’

end

No matter how much I played with the 10 it still only installs 10.52.1

Analyzing dependencies
Downloading dependencies
Installing RealmSwift 10.52.1
Generating Pods project
Integrating client project
Pod installation complete! There is 1 dependency from the Podfile and 2 total pods installed.

Any thoughts?

@Sergio_Caplan

Go in to the project folder and delete the podfile.lock and then do a pod install in terminal.

Well, I know longer get the message when I start the debugger that there is a new version.

However, when I look at the resource info file it still says 10.52.1

Getting a little dizzy here

Ah - you’re repo is out of date. That’s how CocoaPods knows what to install

Quit the project and XCode completly

Navigate to the project folder and delete podfile.lock

Then in terminal navigate to the same folder and do the following commands

pod repo update

pod install

the repo update will take a few minutes so be patient. I just went through that process and it worked and updated to 10.52.2

1 Like

Did that, ran pod install one more time and it finally update to 10.52.3! Took me so long I skipped x.1

Thanks for all your help, never would have figured this out on my own,

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.