Giter Site home page Giter Site logo

Comments (5)

matthewxu avatar matthewxu commented on September 28, 2024

I solved this issue need to import the framework by manual instead of pod.
Any one import the framework successful by pod?

from filekit.

MainasuK avatar MainasuK commented on September 28, 2024

I got the same issue when I use FileKit 4.0.1. It's looks like the pods update for Swift 4.0 somehow.
You can try FileKit 5.0.0 with Swift 4.

OR

Use that pod with Swift 3.2.
pod 'FileKit', :git => 'https://github.com/nvzqz/FileKit.git', :commit => '8599917'

from filekit.

phimage avatar phimage commented on September 28, 2024

I made a Swift 3.2 branch for swift3 for xcode 9
Put a .swift-version file with 3.2 inside your project; it could help cocoapod to choose the correct version

from filekit.

sonnytron avatar sonnytron commented on September 28, 2024

This has to be a bug because when I pull down the project and attempt to compile it with [String: Any], I get thrown an error because file manager expects FileAttributeKey: Any.
This is regardless of building Swift 4 or Swift 3.2.
My project is Swift 4, but I pulled down my Cocoapods as Swift 3.2 so I can upgrade them piecewise.
So when you have Swift 3.2 Pods on a Swift 4 project, FileManager changes the attributes for the create file method to [String: Any].

from filekit.

phimage avatar phimage commented on September 28, 2024

@sonnytron iOS or macOS ?

How did you specify that FileKit use swift 3.2 using cocoapod ?
did you check the result?
xcode swift version
https://stackoverflow.com/questions/45198857/how-to-build-a-xcode-9-project-with-swift-4-0-using-pods-in-swift-3

branch:

  • swift3.2 branch compile on iOS and macOS with Xcode 9.2 using swift 3.2
  • develop & master branch compile on iOS and macOS with Xcode 9.2 using swift 4.0

cocoapod and tag:

  • v5.0.0 is on latest commit of master branch, so for swift4 -> use v5.0.0
  • for swift3.2 specify the branch or the commit in your Podfile

from filekit.

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.