Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Supports build and combine each platform framework to XCFramework for Xcode 11 #2811

Closed
dreampiggy opened this issue Jun 19, 2019 · 1 comment

Comments

@dreampiggy
Copy link

dreampiggy commented Jun 19, 2019

  • carthage install method: [x] homebrew
  • which carthage: /usr/local/bin/carthage
  • carthage version: 0.32.0
  • xcodebuild -version: Xcode 11.0

Feature request

See WWDC Session: https://developer.apple.com/videos/play/wwdc2019/416/
Xcode Release Notes: New Features - XCFramework

Xcode 11 introduce a new bundled framework format: .xcframework

It can contains all of massive platform && architecture combination of current .framework.

For example, if your framework supports all Apple platform, you'll need 4 targets and generate 8 frameworks. If you support Static Framework, this number bumped to 16.

  • iOS(armv7 arm64)
  • iOS Simulator (x86_64)
  • macOS (x86_64)
  • macOS UIKit (x86_64)
  • tvOS(arm64)
  • tvOS Simulator (x86_64)
  • watchOS (armv7k arm64_32)
  • watchOS SImulator (x86_64)

Then when you have 8 frameworks, you need to open Finder and drag them one by one for your Application target. You should also be careful not to mix them up (such as drag a iOS framework into WatchKitExtention target).

It's cool if Carthage can automatically generate one XXX.xcframework which combine all the individual framework for all valid target, then let user just drag one is OK.

image

Note the xcframework can also be dependented, so it's also cool for framework author, to just dependency one Carthage/build/YYY.xcframework in Xcode build setting.

@dreampiggy dreampiggy changed the title Feature request: Supports build each platform framework as XCFramework for Xcode 11 Feature request: Supports build and combine each platform framework to XCFramework for Xcode 11 Jun 19, 2019
@tmspzz
Copy link
Member

tmspzz commented Jun 19, 2019

Duplicate of #2799

@tmspzz tmspzz marked this as a duplicate of #2799 Jun 19, 2019
@tmspzz tmspzz closed this as completed Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants