azure-sdk-for-ios icon indicating copy to clipboard operation
azure-sdk-for-ios copied to clipboard

Installation issues using instructions and Demo application

Open elemental21 opened this issue 2 years ago • 4 comments

Using the instructions found here: https://github.com/Azure/azure-sdk-for-ios/tree/main/sdk/core/AzureCore#add-a-package-dependency-with-swift-package-manager

Tried: Add a package dependency with Swift Package Manager via XCode: Error I get with that method: image

Tried: Swift CLI Error: No such module 'PackageDescritpion'

Tried: Integrate the client libraries with CocoaPods With my project when I run "pod install" I get the error: Specs satisfying the AzureCore (= 1.0.0-beta.15)dependency were found, but they required a higher minimum deployment target. So I downloaded the demo project: https://github.com/Azure/azure-sdk-for-ios/tree/main/examples/AzureSDKDemoSwift and ran "pod install" and it didn't give me the above error.

However, ultimately I always end up with this error when building (with both my project and the AzureSDKDemoSwift project) image

I also tried adding the frameworks manually and it resulted in the "Framework not found AzureCore" error as well

Any help would be greatly appreciated

elemental21 avatar Jun 29 '22 20:06 elemental21

I am getting the same issue, cannot add via Package Manager as seems the Package.swift file is missing

gavinb80 avatar Jul 22 '22 10:07 gavinb80

@elemental21 @gavinb80 when you add a package via Swift PM, you need to use the version-based dependency rules, not a branch or commit. The mirror repos exists only to track tagged releases, so the branch/commit approach will not work.

image

For the SDKs in beta, we recommend pinning to Exact Version since there can be breaking changes between beta versions.

Please let me know if that helps resolve your issues.

tjprescott avatar Jul 25 '22 16:07 tjprescott

Thanks, that worked. We actually found that solution a little while back after posting this question. However after doing that I get this next issue when trying to build and haven't been able to get past it. Any suggestions image

elemental21 avatar Jul 26 '22 15:07 elemental21

You cannot install AzureStorageBlob via SPM. It is not released. https://github.com/Azure/azure-sdk-for-ios/issues/469

tjprescott avatar Jul 26 '22 16:07 tjprescott

Closing this issue as the storage code that the demo relied upon has been removed from the main branch.

tjprescott avatar Aug 18 '22 21:08 tjprescott