[Add] Package.swift
As title, create Package.swift and binaryTarget pop.
About pop.zip
This script performs the following steps:
-
Install Dependencies: Runs
bundle installto set up Ruby dependencies. - Clean Up: Removes previous builds and cache.
-
Build Frameworks:
- For iOS (arm64): Runs
pod installandRugby, then stores inpopFrameworks/ios-arm64. - For Simulator (arm64): Builds and stores in
popFrameworks/sim-arm64. - For Simulator (x86_64): Builds and stores in
popFrameworks/sim-x86_64.
- For iOS (arm64): Runs
-
Combine Architectures: Uses
lipoto merge arm64 and x86_64 binaries into a single framework. -
Create XCFramework: Uses
xcodebuildto bundle the iOS and simulator frameworks intopop.xcframework.
The resulting .xcframework is suitable for Xcode projects targeting both iOS devices and simulators.
For more details, you can download this file for reference to the source code: https://github.com/Wei18/pop/releases/download/1.0.12/setup-pop-zip.zip
Special thanks to @swiftyfinch:
- https://github.com/swiftyfinch/Rugby
Why is no one merging it?
By the way @Wei18 you sure about minimum version of Swift in Package.swift being 5.7?
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
By the way @Wei18 you sure about minimum version of Swift in Package.swift being 5.7?
// swift-tools-version: 5.7 // The swift-tools-version declares the minimum version of Swift required to build this package.
Not the minimum but current. The SwiftPackage is still developing and closing stability, so I think that others developers should follow the latest tools version. It's okay to commit other tools version of Package.swift