问题
I want to update magical record from 2.2 to 2.3.3 sdk. In my project having pod file.. so how to update magical record sdk 2.2 to magical record 2.3.3 sdk. please guide me any body.i am new to cocoa pods and pod file. Thanks in advance. in my pod file having like this
pod 'MagicalRecord', '~> 2.2'
pod 'Reachability', '~> 3.1.1'
pod 'AFNetworking', '~> 2.2'
pod 'MBProgressHUD', '~> 0.8'
This is the magical record sdk 2.3.3 updated link.
https://github.com/magicalpanda/MagicalRecord
回答1:
1) Open Terminal
2) Write CD command. and Drag and Drop folder (To get a path of your project) -> press enter
3) write command open -e podfile (to add a new version)
4) close podfile . write command in terminal pod upade
That's it.
Edit 1 :-
Edit 2 :-
Step 1 :- Remove "pod 'MagicalRecord', '~> 2.3.3’ " from your pod file.
step 2:- pod update (it will uninstall magical record from your project)
Now again follow edit 1 as write again "pod 'MagicalRecord', '~> 2.3.3’ " in your podfile. and write command pod update.
Edit 3 :- Don't forget open your project from .xcworkspace file.
Note :- Before do anything first take backup of your project.
回答2:
replace pod 'MagicalRecord', '~> 2.2'
with pod 'MagicalRecord', '~> 2.3'
and then
- open terminal
type cd -> Drag and drop your projectfolder
pod install
来源:https://stackoverflow.com/questions/35868025/how-to-update-magical-record-sdk-in-pod-file-in-ios