Start a new topic
Answered

ios pod not updating sdk

hi support team, while trying to install sdk using pod method for new project, i'm not getting the latest sdk. i should get 3.8.0. is there any reason why i am not getting it? please help me with this issue.


image



Best Answer
Siraj,

This issue was resolved on portal ticket. Copying our solution here to complete the loop:

"I believe that you can solve this problem by adding the following code to your Podfile


  post_install do |installer|

    installer.pods_project.targets.each do |target|

      if ['Kinvey'].include? target.name

        target.build_configurations.each do |config|

          config.build_settings['SWIFT_VERSION'] = '4.0'

        end

      end

    end

  end



Here an example here in the Podfile the post_install script should be added


https://guides.cocoapods.org/syntax/podfile.html"



Thanks,

Pranav

 


Answer
Siraj,

This issue was resolved on portal ticket. Copying our solution here to complete the loop:

"I believe that you can solve this problem by adding the following code to your Podfile


  post_install do |installer|

    installer.pods_project.targets.each do |target|

      if ['Kinvey'].include? target.name

        target.build_configurations.each do |config|

          config.build_settings['SWIFT_VERSION'] = '4.0'

        end

      end

    end

  end



Here an example here in the Podfile the post_install script should be added


https://guides.cocoapods.org/syntax/podfile.html"



Thanks,

Pranav

 

I  added Kinvey to my new Project using cocoa pods.But new kinvay sdk 3.9.1 still using old version of ObjectMapper ,So i am getting error toIntMax() was obsoleted in Swift 4


HI,

ObjectMapper is not updateding to latest version
Pratap,

I am also using pod version 1.2.1 and your podfile looks good to me. Can you try 'pod update' and see if it solves your issue? If it doesn't help, then try 'pod repo update'. It updates spec repos located at ~/.cocoapods/repos in your home folder. I have tried it on my existing projects and it worked fine.

Let me know if it solves your issue.

Thanks,
Pranav

 

Pranav, thanks for looking into this. yes i am refering getting started guide. I checkd pod version is 1.2.1. below is content of podfile


use_frameworks!

target 'mockups' do

pod 'Kinvey'

end

Pratap,

  1. Can you send me the podfile or content of the podfile that you are using?
  2. Can you also let me know what version of cocoapod you are using? You can check it using 'pod --version'.
  3. Please confirm if you are following https://devcenter.kinvey.com/ios/guides/getting-started#UsingCocoaPods.

Thanks,
Pranav

 

Login or Signup to post a comment