Skip to content

Conversation

@wei18
Copy link

@wei18 wei18 commented Oct 7, 2022

As title, create Package.swift and binaryTarget pop.

About pop.zip

This script performs the following steps:

  1. Install Dependencies: Runs bundle install to set up Ruby dependencies.
  2. Clean Up: Removes previous builds and cache.
  3. Build Frameworks:
    • For iOS (arm64): Runs pod install and Rugby, then stores in popFrameworks/ios-arm64.
    • For Simulator (arm64): Builds and stores in popFrameworks/sim-arm64.
    • For Simulator (x86_64): Builds and stores in popFrameworks/sim-x86_64.
  4. Combine Architectures: Uses lipo to merge arm64 and x86_64 binaries into a single framework.
  5. Create XCFramework: Uses xcodebuild to bundle the iOS and simulator frameworks into pop.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:

@N-ihad
Copy link

N-ihad commented Jan 19, 2023

Why is no one merging it?

@N-ihad
Copy link

N-ihad commented Jan 24, 2023

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.

@wei18
Copy link
Author

wei18 commented Jan 26, 2023

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

@swiftyfinch
Copy link

@wei18 Happy to hear it)

@wei18
Copy link
Author

wei18 commented May 22, 2025

Just for the record, for anyone who wants to use the Swift package.

.package(url: https://github.com/wei18/Koloda", branch: "master"),

changes: master...wei18:Koloda:master
url: https://github.com/wei18/Koloda

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

Successfully merging this pull request may close these issues.

3 participants