Code Monkey home page Code Monkey logo

Comments (12)

Daltron avatar Daltron commented on August 31, 2024 1

@RudyB Swift 4 support is now available in v1.1.0 release! 🎉

from spartan.

Daltron avatar Daltron commented on August 31, 2024

Hi @RudyB! 😄 AlamofireObjectMapper doesn't yet have a swift 4 release that can be used by pods who use AlamofireObjectMapper as a dependency. You can follow this issue as I have let the author know that a swift 4 release would be greatly appreciated. In the meantime, you can still use Spartan within a Swift 4 project as Swift 3.x and Swift 4 are completely compatible with each other. Just include this at the bottom of your podfile:

post_install do |installer|
    installer.pods_project.targets.each do |target|
        swift3_projects = ['Spartan', 'AlamofireObjectMapper', 'Alamofire']
        if swift3_projects.include? target.name
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '3.2'
            end
        end
    end
end

from spartan.

RudyB avatar RudyB commented on August 31, 2024

@Daltron I saw that you were pretty active on their issue board. I am also patiently awaiting a swift 4 release from them.

I added that code to the bottom of my pod file and I am still getting the Object Mapper Build Issues regarding the toIntMax

Did I do something dumb?

A copy of my pod file:

target 'Tempo' do

  use_frameworks!
  platform :ios, '10.3'
  # Pods for Tempo
  pod 'SpotifyLogin'
  pod 'Spartan'

  target 'TempoTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'TempoUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

post_install do |installer|
    installer.pods_project.targets.each do |target|
        swift3_projects = ['Spartan']
        if swift3_projects.include? target.name
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '3.2'
            end
        end
    end
end

from spartan.

Daltron avatar Daltron commented on August 31, 2024

@RudyB Did you rerun the pod install command? I forgot to mention that that is needed in order for the changes to take affect! 😄

from spartan.

RudyB avatar RudyB commented on August 31, 2024

I absolutely did. I also cleaned my project and build folder.

from spartan.

Daltron avatar Daltron commented on August 31, 2024

@RudyB Can you take a screenshot of the errors Xcode is reporting please?

from spartan.

RudyB avatar RudyB commented on August 31, 2024

Pod Install Output
Xcode Output

Thank you for helping me with this one

from spartan.

Daltron avatar Daltron commented on August 31, 2024

@RudyB Ahhh I'm sorry, you need to also specify 'AlamofireObjectMapper' and 'Alamofire' in the swift3_projects variable. I've updated my original comment to include these two pods.

from spartan.

RudyB avatar RudyB commented on August 31, 2024

I had to explicitly add ObjectMapper to the swift3_projects variable as well in order to get it to work. Thank you so much for all the help. You may want to add that to your code snippet

from spartan.

Daltron avatar Daltron commented on August 31, 2024

Glad to hear! 🎉

from spartan.

RudyB avatar RudyB commented on August 31, 2024

AlamofireObjectMapper 4.1.0 was released today FYI

from spartan.

RudyB avatar RudyB commented on August 31, 2024

@Daltron Thank you for your hard work.
Have a beer on me.

from spartan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.