Coder Social home page Coder Social logo

Comments (6)

bradmartin avatar bradmartin commented on May 16, 2024 1

Thanks Nick. I have no clue about this iOS jazz :) I'll see if Walker can
fix that

On Mon, Sep 26, 2016, 8:59 AM Nick Iliev [email protected] wrote:

The pod file MaterialCard https://github.com/NathanWalker/MaterialCard
should be converted to SWIFT 3.0 and updated on the CocoaPods site in order
for this plugin to work with XCode 8.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#29 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFulhBbAXjlairUN5KLi_4CAtJsAd5liks5qt8-0gaJpZM4KCpcK
.

from nativescript-cardview.

NickIliev avatar NickIliev commented on May 16, 2024 1

I was able to locally convert ti to Swift 3.0 and apply it to my test project the following way.

  • Open the Pod in XCode 8 ( _Pods.xcodeproj file )
  • Convert to Swift 3.0 (will prompt right away or Edit > Convert >> To Currrent Swift Syntax)

Now to apply the converted pod I had to add this in the plugin Podfile

pod 'MaterialCard', :local => "/Users/niliev/Desktop/test/MaterialCard" // I've changed this only to use my local coverted pod 

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '3.0'
    end
  end
end

Still I am not pretty sure if this way will have backwards compatibility or maybe there is a most human way to force convertion

from nativescript-cardview.

NickIliev avatar NickIliev commented on May 16, 2024

The pod file MaterialCard should be converted to SWIFT 3.0 and updated on the CocoaPods site in order for this plugin to work with XCode 8.

from nativescript-cardview.

bradmartin avatar bradmartin commented on May 16, 2024

@NathanWalker ^^^

from nativescript-cardview.

hypery2k avatar hypery2k commented on May 16, 2024

as a workaround you can add this to app/AppResources/iOS/build.xconfig:

...
SWIFT_VERSION = 2.3

from nativescript-cardview.

NathanWalker avatar NathanWalker commented on May 16, 2024

closes via #31

Published Swift 3.0 compatibility with 1.2.0 👍

from nativescript-cardview.

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.