ios_system icon indicating copy to clipboard operation
ios_system copied to clipboard

Make ios_system available as a Swift Package

Open BrianChevalier opened this issue 5 years ago • 4 comments

The Swift Package manager is now available directly in Xcode where package dependencies can be managed by version, and compiled for the appropriate platform. Packages can also specify their own dependencies (useful for python_ios, and libtex) so new developers don't have to manage that complexity. This will make it an even easier drop-in replacement for system() in iOS apps, as well as testing in the simulator and UIKit for Mac apps.

Creating Swift Packages WWDC19 Session

BrianChevalier avatar Jul 07 '19 20:07 BrianChevalier

I'll be exploring converting ios_system to a Swift Package and adding updates/resources here.

BrianChevalier avatar Jul 07 '19 20:07 BrianChevalier

Isn't this issue already resolved?

kkebo avatar Jan 22 '21 15:01 kkebo

Yes, but PR #109 is related to that as well. It keeps the binary swift package system, but it changes the method of delivery. Would you have feedback on the PR?

holzschu avatar Jan 22 '21 17:01 holzschu

@holzschu His proposal is great. For example, also in a-Shell, you can fetch XCFrameworks with swift package --package-path xcfs resolve and then their paths become relative to the project directory (e.g. $PROJECT_DIR/xcfs/.build/artifacts/xcfs/*.xcframework). That could resolve this issue as well.

In the future, if SwiftPM supports embedded binary framework, you can go back to Xcode's built-in SwiftPM again.

kkebo avatar Jan 23 '21 11:01 kkebo