Coder Social home page Coder Social logo

Add Swift Package Manager support about ampere HOT 6 CLOSED

ole avatar ole commented on June 25, 2024
Add Swift Package Manager support

from ampere.

Comments (6)

ole avatar ole commented on June 25, 2024

See Daniel Duan's article about automating testing for all permutations of CocoaPods/Carthage/SwiftPM and macOS/iOS/tvOS/watchOS: http://dduan.net/2016/10/10/distribution-tests/

from ampere.

ole avatar ole commented on June 25, 2024

SwiftPM currently hardcodes the macOS deployment target to 10.10 (Ampere needs 10.12). Here is a workaround, but it's not in 3.0. apple/swift-package-manager#715

from ampere.

billabt avatar billabt commented on June 25, 2024

What version of the Swift toolchain has the fix for this problem in it?

Using swift-3.0.1-RELEASE, I see the default target overriding my specified target...

other-args: ["-j8","-D","SWIFT_PACKAGE","-Onone","-g","-enable-testing","-F","/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks","-target","x86_64-apple-macosx10.12","-target","x86_64-apple-macosx10.10","-sdk","/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk","-Xcc","-fmodule-map-file=/Users/babt/Source/IBMSwift/Open Source/BlueRSA/Packages/CommonCrypto-0.1.4/module.modulemap","-module-cache-path","/Users/babt/Source/IBMSwift/Open Source/BlueRSA/.build/debug/ModuleCache"]

from ampere.

ole avatar ole commented on June 25, 2024
$ cd swift-source
$ swift/utils/update-checkout
$ cd swiftpm
$ git branch -r --contains 28e221b
  origin/HEAD -> origin/master
  origin/master
  origin/master-next
  origin/swift-3.1-branch

So it seems this will be part of Swift 3.1.

from ampere.

ole avatar ole commented on June 25, 2024

See #9 for a version that builds with the Swift Package Manager (using a recent Swift snapshot).

from ampere.

ole avatar ole commented on June 25, 2024

Taking this issue up again now that Xcode 11 has SwiftPM support. My plan is to fully migrate to SwiftPM and delete the Xcode project.

Checklist:

  • Add Package manifest
  • Change directory structure to accomodate SwiftPM
  • Delete Xcode project
  • Set macOS and iOS deployment targets
  • Add Docker config for testing under Linux
  • Update .gitignore
  • Update usage instructions in readme
  • Update .travis.yml to use Docker or use GitHub Actions

from ampere.

Related Issues (15)

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.