star-micronics / StarPRNT-SDK-iOS-Swift

StarPRNT SDK for iOS including libraries for supporting application development for Star printers.
https://www.star-m.jp/products/s_print/sdk/starprnt_sdk/manual/ios_swift/en/index.html
Other
41 stars 7 forks source link

SPM Support [BUG] #19

Closed John-Connolly closed 1 year ago

John-Connolly commented 2 years ago

Description

The included XCFramework does not work with Swift package manager. When integrating as a binary target in a swift package, SPM throws the error.

Cannot open file handle for file at path: Path(str: "/Sources/Frameworks/StarIO_Extension.xcframework/ios-arm64_i386_x86_64-simulator/StarIO_Extension.framework")

This is due to no top-level info plist on for the .framework files. Also, the info.plist in the fat framework resources folder is not processed.

Your device where the bug occurs

N/A

Your printer

N/A

Your development environment

ProductName:    macOS
ProductVersion: 12.4
BuildVersion:   21F79

To Reproduce

I have attached a sample project to reproduce quickly. Open the "App" Xcode project in the attached zip and build to replicate.

Expected behaviour

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the bug here.

SPM-import-issue.zip

bandit-ibayashi commented 1 year ago

We understand your request, and the framework included in the successor StarXpand SDK supports the Swift Package Manager, but StarIO requires a different configuration and does not support it.

SPM support is summarized in the previously posted Issue #2, so this issue will be closed.

Thank you for your understanding.