Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keith/xcframework-to-fat

Create a fat framework from an xcframework bundle
https://github.com/keith/xcframework-to-fat

xcframework xcode

Last synced: 9 days ago
JSON representation

Create a fat framework from an xcframework bundle

Awesome Lists containing this project

README

        

This is a CLI to create a old style fat framework from a `xcframework`
bundle if you don't need support for Apple Silicon.

# Usage:

This command will create `Foo.framework` bundle with a `x86_64` iOS
Simulator slice and an `arm64` iOS device slice.

```sh
./xcframework-to-fat path/to/Foo.xcframework path/to/output x86_64-apple-ios-simulator arm64-apple-ios
```

See `./xcframework-to-fat --help` for more info.

# Installation

```sh
brew install keith/formulae/xcframework-to-fat
```

## Notes

- You cannot use this in the case you actually need multiple
architectures that support different platforms, in that case you must
use xcframeworks. This only exists for the case where you don't need
that, and maybe your tooling doesn't support xcframeworks yet
- Currently this tool isn't smart about resources that differ for device
or simulator, when possible it copies the resources from the framework
targeting device builds without diffing them
- Since binaries are changed through this transformations, any
code signatures they previously had are removed