Skip to content
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

Discrepancy in API Availability between CocoaPods and Swift Package Manager for AWSS3TransferUtilityUploadTask #5301

Open
DrunkardSworder opened this issue Apr 24, 2024 · 2 comments
Labels
bug Something isn't working build Issues related to build problems and CI/CD pending-response Issue is pending response from the issue requestor storage

Comments

@DrunkardSworder
Copy link

State your question
When using AWSS3TransferUtilityUploadTask via Swift Package Manager (SPM), I encountered a discrepancy in the availability of certain API methods compared to when using CocoaPods. Specifically, under SPM, I encountered an error message stating "Value of type 'AWSS3TransferUtilityUploadTask' has no member 'completeWithError'". However, the same API functions perfectly when using CocoaPods.

image

Which AWS Services are you utilizing?
AWSS3 AWSCore

Environment(please complete the following information):

  • SDK Version: 2.36.0
  • Dependency Manager: [SPM]
  • Swift Version : [5.0+]
@lawmicha lawmicha added build Issues related to build problems and CI/CD pending-triage Issue is pending triage storage labels Apr 24, 2024
@lawmicha
Copy link
Member

Hi @DrunkardSworder, thanks for opening this issue. Could you provide us with more details as to which SPM package version of the SDK you are using, and which pod version? Do you have a screenshot of the code you see with SPM? (assuming that screenshot corresponds to the cocapods installation since I can see completeWithError there. Any code snippets for us to use during reproducing this would be helpful as well.

@lawmicha lawmicha added the bug Something isn't working label Apr 24, 2024
@ruisebas
Copy link
Member

ruisebas commented May 6, 2024

Hi @DrunkardSworder!
It appears that these methods defined in the AWSS3TransferUtilityTasks+Completion.h file were meant to be used internally only, which is why you don't see them when consuming through SPM. But they show up in CocoaPods due to how the AWSS3.podspec file is defined.

Completing tasks is solely the responsibility of the AWSS3TransferUtility, attempting to manually do so would result in unexpected behaviour.

Could you please tell us if this is something that you actively need (and the use case for it), or were you just wondering about this discrepancy?

Thanks

@ruisebas ruisebas added pending-response Issue is pending response from the issue requestor and removed pending-triage Issue is pending triage labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Issues related to build problems and CI/CD pending-response Issue is pending response from the issue requestor storage
Projects
None yet
Development

No branches or pull requests

3 participants