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

[Add] Package.swift #480

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

[Add] Package.swift #480

wants to merge 6 commits into from

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)

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