GithubHelp home page GithubHelp logo

gui17aume / xcframework-now Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 14 KB

Utility for transforming a given library or framework into an XCFramework, generating the arm64 simulator slices if missing.

License: MIT License

Swift 100.00%

xcframework-now's Introduction

XCFrameworkNow

XCFrameworkNow is a command-line tool that transforms a given library or framework into an XCFramework, generating the arm64 simulator slices if missing. This allows to build and run Xcode projects natively on Apple Silicon computers even if the developer of the library did not release a compatible version yet. No more Rosetta needed!

It supports static and dynamic libraries as input and can generate the arm64 slices for iOS, tvOS and watchOS simulators.

This tool is based on the project arm64-to-sim.

Installation

Homebrew

The easiest way to install XCFrameworkNow is by using Homebrew:

brew tap gui17aume/core
brew install xcframework-now

Manual install

XCFrameworkNow can be compiled and installed manually by retrieving the source code and using the following commands:

swift build -c release --disable-sandbox
install .build/release/xcframework-now /usr/local/bin

Usage

Convert a framework including the architectures for device and simulator platforms into an XCFramework:

xcframework-now -framework Foo.framework -output Foo.xcframework

Convert a library including the architectures for device and simulator platforms into an XCFramework:

xcframework-now -library libFoo.a -headers include -output Foo.xcframework

Convert a set of frameworks made for various platforms into a single XCFramework:

xcframework-now -framework Foo-iOS.framework -framework Foo-tvOS.framework -output Foo.xcframework

Convert a library split by platform into an XCFramework:

xcframework-now -library ios/libFoo.a -headers ios/include -library iossimulator/libFoo.a -headers iossimulator/include -output Foo.xcframework

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.