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

watchOS compilation errors #3

Open
ticky opened this issue Jan 21, 2022 · 3 comments
Open

watchOS compilation errors #3

ticky opened this issue Jan 21, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@ticky
Copy link

ticky commented Jan 21, 2022

This library looks perfect for my fairly simple independent watchOS app's needs, thanks for sharing!

Unfortunately, v0.0.1, as well as the current HEAD revision, don't build under a watchOS deployment target, giving these errors;

Mercato/Sources/Mercato/Mercato.swift:56:59: Cannot find type 'UIWindowScene' in scope
Mercato/Sources/Mercato/Mercato.swift:118:72: Cannot find type 'UIWindowScene' in scope
Mercato/Sources/Mercato/Mercato.swift:125:73: Cannot find type 'UIWindowScene' in scope
Mercato/Sources/Mercato/Mercato.swift:134:55: Cannot find type 'UIWindowScene' in scope
Mercato/Sources/Mercato/Mercato.swift:61:39: Value of type 'Transaction' has no member 'beginRefundRequest'
Mercato/Sources/Mercato/Mercato.swift:136:22: Type 'AppStore' has no member 'showManageSubscriptions'

(paths trimmed for clarity)

I've seen these errors both in my actual project, and in an out of the box Swift-based Xcode watchOS app project template, each with Mercato imported using Xcode's package management UI

My experience isn't deep in writing this sort of cross-platform code, but it seems as though the code specific to iOS isn't guarded sufficiently for the watchOS platform. If you have suggestions I'm all ears!

@tikhop
Copy link
Owner

tikhop commented Apr 25, 2022

Hi @ticky, I don't think it's still relevant, but I'm planing to make some improvements in a week.

@tikhop tikhop added the bug Something isn't working label Apr 25, 2022
@tikhop
Copy link
Owner

tikhop commented Apr 25, 2022

@ticky I see that you forked the project and made some fixes. It would be awesome, if you have a chance to make a PR. Thank you!

@ticky
Copy link
Author

ticky commented Apr 26, 2022

I'm not highly experienced at this, and couldn't get it working without just brute-force removing everything that wasn't implemented on watchOS ticky@6be6e66 so I'm not sure that's a great PR for your project 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants