aptabase / aptabase-swift

Swift SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps
https://aptabase.com
MIT License
21 stars 8 forks source link

visionOS compatibility? #17

Closed Black-Fox-2022 closed 7 months ago

Black-Fox-2022 commented 7 months ago

Maybe I am doing smth wrong, but i think you have no option for visionOS here, which is why it does not work

Bildschirmfoto 2024-02-03 um 11 32 01

goenning commented 7 months ago

Is it not compiling?

Black-Fox-2022 commented 7 months ago

No, maybe these are just shadow errors and their is another issue somewhere else, but even after relaunching it does not change

goenning commented 7 months ago

can you share the errors? I'll try a sample vision app soon

MadeiraAlexandre commented 7 months ago
image

Here's a screenshot showing the compile errors when trying to build when Aptabase package is included in the visionOS project.

Just noticed now that it's same from the original post, sorry. 😅

goenning commented 7 months ago

Any idea how to fix it? I’m happy to merge a PR.

goenning commented 7 months ago

import VisionKit maybe?

Black-Fox-2022 commented 7 months ago

It's difficult to try for us... Maybe import UIKit / SwiftUI when not only iOS but also visionOS?

goenning commented 7 months ago

Done, can you try this branch before I merge it? https://github.com/aptabase/aptabase-swift/tree/visionos

Black-Fox-2022 commented 7 months ago

Gonna do that later today!

MadeiraAlexandre commented 7 months ago

Hi, I can confirm that the visionOS branch is working.

image image
goenning commented 7 months ago

Thanks @MadeiraAlexandre 0.3.7 was just released with this change :)