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

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

Open
RobSwish opened this issue Nov 3, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@RobSwish
Copy link

RobSwish commented Nov 3, 2021

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
@aydenp aydenp self-assigned this Nov 25, 2021
@aydenp aydenp added bug Something isn't working enhancement New feature or request labels Nov 25, 2021
@aydenp aydenp changed the title Cannot find 'Process' in scope and iOS 10 Process is not available on non-macOS platforms Nov 25, 2021
@aydenp
Copy link
Owner

aydenp commented Nov 25, 2021

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.

@aydenp aydenp changed the title Process is not available on non-macOS platforms iOS/tvOS/watchOS support: remove Process, stop invoking OpenSSL Nov 25, 2021
@aydenp aydenp added this to the 2.0 milestone Nov 25, 2021
@aydenp aydenp removed the bug Something isn't working label Nov 26, 2021
@aydenp aydenp changed the title iOS/tvOS/watchOS support: remove Process, stop invoking OpenSSL Cannot find 'Process' in scope – iOS/tvOS/watchOS support: remove Process, stop invoking OpenSSL Oct 25, 2022
@aydenp
Copy link
Owner

aydenp commented Oct 25, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants