AgoraIO / AgoraRtcEngine_iOS

iOS Package for Agora Video RTE SDK. Perfect for video calls and live streaming.
https://agoraio.github.io/AgoraRtcEngine_iOS/
MIT License
58 stars 17 forks source link

Failed to install using SPM #15

Closed ppokalnis closed 2 years ago

ppokalnis commented 2 years ago

Hello, today we've started to see the problem with installing your lib via Swift Package Manager. It hangs out on the following screen and blocks several teammates to build our Xcode project.

image

"Reset Package Caches" doesn't help. Installing on empty project has the same problem. Installing previous versions has the same problem.

Looks like your lib binary is unavailable.

image

Thanks in advance for any advices how to resolve/bypass this.

maxxfrazer commented 2 years ago

Hi @ppokalnis, I just tried installing and didn't have an issue, as well as the following referenced link in the error message above does not have an issue with download: https://download.agora.io/swiftpm/AgoraRtcEngine_iOS/3.6.2/AgoraRtcKit.xcframework.zip

You're also targeting the main branch for the clone. Please don't do that, sometimes we update the main branch with an update to an older version: with this package and every other package it's better to target by versions.

It seems like a common SwiftPM issue people have. Here's some solutions on a thread at Firebase's package with similar symptoms: Manually clearing cache: https://github.com/firebase/firebase-ios-sdk/issues/8812#issuecomment-944611411 Slightly less nice manual download and inserting the package: https://github.com/firebase/firebase-ios-sdk/issues/8812#issuecomment-955186000

ppokalnis commented 2 years ago

Hi @maxxfrazer Thank you for your feedback. This morning I've managed to fetch this lib. We will keep an eye on this.