aydenp / PassEncoder

Simple PassKit (Apple Wallet) encoding and signing in Swift.

Home Page:https://aydenp.github.io/PassEncoder/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find 'Process' in scope – iOS/tvOS/watchOS support: remove Process, stop invoking OpenSSL

RobSwish opened this issue · comments

Hello, this is my first time using Swift Package manager to hopefully I am doing things right. I have added your dependency and within PassEncoder I am getting the following issues which I think are preventing it from building properly so my other classes can't use it.

Screenshot 2021-11-03 at 18 26 21

Screenshot 2021-11-03 at 18 26 13

pe

Thanks for opening this issue! The requirements in the readme are wrong (as #7) and should be updated. Unfortunately, the Process API used in signing is macOS-only. It's a future goal of this project to be able to run without using Process at all, so that it can run on iOS, tvOS, and watchOS too.

The reason you are receiving the temporaryDirectory error is because there is no compatibility information in the Package.swift file, so Xcode doesn't know that the project targets iOS/tvOS 10+, where this API was added. Once uses of Process are eliminated and the Package.swift is updated to indicate non-macOS support, this error should go away.

If you're facing this issue, it is because you are trying to build the library for iOS, tvOS, or watchOS. It is currently only supported on macOS and Linux.