-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unable to use SwiftUI Previews with newest version of the SDK #4
Comments
why would you need preview for audio scenario? |
Including the SDK in your app and running a SwiftUI Preview will need to load the framework. |
i see. i will try to see if i can reproduce it today. |
Thank you! |
Hey @ethan021021, wanted to check if this is working fine on a physical device? |
@maxxfrazer Looks like it's included there. Issue seems to be that the AgoraSDK is bundled with one of my frameworks that I use. The two frameworks that I use in the application are called Thanks! |
I should also mention for package management on all of these frameworks i'm using Swift Package Manager |
These libraries are private I guess? https://github.com/AgoraIO-Community/iOS-UIKit/blob/main/Package.swift line 29 in that file, look for "RtcBasic". You'll need to make sure at least that product is added to HAServiceKit in the same way. |
Sorry I forgot to include one other dependency I was using this is what the tree looks like from top down:
I'm including AgoraSDK into
Is my Syntax correct? It runs just fine on Simulator / Device but when trying to run a SwiftUI Preview I get that error I originally posted here. Thanks! |
I gave linking the xcframeworks manually a shot:
And now i'm seeing a different error when trying to compile for SwiftUI Previews:
What's odd is that it builds/launches fine on device and simulator but not for SwiftUI Previews |
Hi! Any update on this? This issue is really impacting the speed on my development |
Hi, Is there anyway to get in touch with the team? Thank you |
Did a quick search and found this, does it help with swiftui previews for you? another thread here: There seem to be a few people using a variety of frameworks having problems with preview but not simulator. |
Hey thanks for the reply, I just tried these suggestions but still haven't had any luck :/. I believe it's an issue with the |
Hey any update on this end? Thank you |
Any update on this? I'm facing the same issue on my end but I get it while trying to run the tests target of an internal Swift Package:
Tried the above solutions as well but no luck. |
When I add the AgoraAudio_iOS SDK to my project I can no longer use SwiftUI Previews.
I'm using the latest version of the SDK which is
3.7.0
Here's the error the Preview Canvas is generating:
This is blocking development currently so i'd be happy to provide any other logs if needed to get this resolved quickly :)
The text was updated successfully, but these errors were encountered: