Azure / azure-sdk-for-ios

iOS client SDKs for Microsoft Azure
https://azure.github.io/azure-sdk-for-ios/
MIT License
188 stars 89 forks source link

[BUG] azure-sdk-for-ios (main branch) could not be resolved in Swift Package Manager #1906

Closed albrecht-jun-zhang closed 4 weeks ago

albrecht-jun-zhang commented 4 weeks ago

Describe the bug In Xcode Swift Package Manager I can't include azure-sdk-for-ios (main branch)

Exception or Stack Trace Add the exception log and stack trace if available

To Reproduce Steps to reproduce the behavior: Open Xcode -> File -> Add Package Dependencies... -> enter azure-sdk-for-ios into search top right -> pick main branch -> click the bottom right Add Package button. You will get the error.

Code Snippet Add the code snippet that causes the issue.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Screenshot 2024-10-07 at 11 52 10 PM

Setup (please complete the following information):

Additional context Add any other context about the problem here.

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

lucianopa-msft commented 4 weeks ago

Hey @albrecht-jun-zhang That GitHub URL(https://github.com/Azure/azure-sdk-for-ios.git) is not going to work. In my understanding this repo has a collection of a lot of SDKs but it doesn't support SPM directly.

So for installing those packages is going to depend on which packages you want to install e.g. if you want AzureCommunicationCommon, use this "https://github.com/Azure/SwiftPM-AzureCommunicationCommon.git" as stated in the Documentation.

tjprescott commented 4 weeks ago

@lucianopa-msft is correct. This repo is not installable via SPM and there are mirror repos that allow you to install the individual libraries via SPM.

albrecht-jun-zhang commented 3 weeks ago

Screenshot 2024-10-08 at 7 33 34 PM Really appreciate that @lucianopa-msft and @tjprescott. My initial intention was to install azure-sdk-for-ios via SPM to import AzureStorageBlob in Swift. But it looks like it's not possible. I will use the Azure Storage REST API directly to upload photos to Azure Blob Storage. Thank you again.