You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I no longer need AWSCognitoIdentityProvider. It was imported into only one file, and then that import was later removed, and I've confirmed that it is not being imported anywhere else.
I can't seem to uninstall only this package. All attempts to do so cause build errors related to AWSMobileClientXCF.
The installation appears in Xcode as a single package called AWSiOSSDKV2, both in the navigator and in the Project > Package Dependencies section, so I can't just remove the one I no longer need.
The only place I can find a mention of AWSCognitoIdentityProvider is in Target > Build Phases > Link Binary With Libraries.
I've tried various combinations of the following steps:
Uninstall the entire package, then reinstall and select only the one I need
Remove the other package from Target > Build Phases > Link Binary With Libraries
Clean the Build folder
Delete the Products folder
Delete the DerivedData folder
Reset the package caches
Every time I try to build after performing some or all of these steps, it fails. The exact error depends on which combination of the above steps I attempted.
For example, this is one attempt:
Uninstall the entire package
Delete DerivedData
Clean the build folder
Install the package and select only AWSMobileClientXCF
Clean the build folder
Build - Failure
Errors:
Command SwiftCompile failed with a nonzero exit code
someFileOfMine: Failed to build module 'AWSMobileClientXCF'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)', while this compiler is 'Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)'). Please select a toolchain which matches the SDK.
arm-64-apple-ios-simulator.private: Could not build Objective-C module 'AWSCognitoIdentityProvider'
AWSCognitoIdentityProvider: 'AWSCore/AWSCore.h' file not found
Immediately after this I did the following:
Close the simulator
Clean the build folder
Build - Failure
Errors this time:
Missing package product 'AWSMobileClientXCF'
someFileOfMine: No such module 'AWSMobileClientXCF'
In AWSiOSSDKV2 > Package.swift, I see this:
extensionTarget.Dependency{
// Framework dependencies present in the SDK
staticletawsCore:Self=.target(name:"AWSCore")staticletawsAuthCore:Self=.target(name:"AWSAuthCore")staticletawsCognitoIdentityProviderASF:Self=.target(name:"AWSCognitoIdentityProviderASF")staticletawsCognitoIdentityProvider:Self=.target(name:"AWSCognitoIdentityProvider")}
Does this mean AWSCognitoIdentityProvider must also be installed? I can't see how that would be the case since I never had installed AWSCore or AWSAuthCore. If this is the case, I can install it again, but I want to be sure so I don't have unused packages installed.
How can I remove this package I no longer need?
The text was updated successfully, but these errors were encountered:
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
I installed the following packages from the AWS SDK for iOS (https://github.com/aws-amplify/aws-sdk-ios-spm):
AWSCognitoIdentityProvider
AWSMobileClientXCF
I no longer need
AWSCognitoIdentityProvider
. It was imported into only one file, and then that import was later removed, and I've confirmed that it is not being imported anywhere else.I can't seem to uninstall only this package. All attempts to do so cause build errors related to
AWSMobileClientXCF
.The installation appears in Xcode as a single package called
AWSiOSSDKV2
, both in the navigator and in theProject > Package Dependencies
section, so I can't just remove the one I no longer need.The only place I can find a mention of
AWSCognitoIdentityProvider
is inTarget > Build Phases > Link Binary With Libraries
.I've tried various combinations of the following steps:
Target > Build Phases > Link Binary With Libraries
Every time I try to build after performing some or all of these steps, it fails. The exact error depends on which combination of the above steps I attempted.
For example, this is one attempt:
AWSMobileClientXCF
Errors:
Command SwiftCompile failed with a nonzero exit code
someFileOfMine: Failed to build module 'AWSMobileClientXCF'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)', while this compiler is 'Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)'). Please select a toolchain which matches the SDK.
arm-64-apple-ios-simulator.private: Could not build Objective-C module 'AWSCognitoIdentityProvider'
AWSCognitoIdentityProvider: 'AWSCore/AWSCore.h' file not found
Immediately after this I did the following:
Errors this time:
Missing package product 'AWSMobileClientXCF'
someFileOfMine: No such module 'AWSMobileClientXCF'
In
AWSiOSSDKV2 > Package.swift
, I see this:Does this mean
AWSCognitoIdentityProvider
must also be installed? I can't see how that would be the case since I never had installedAWSCore
orAWSAuthCore
. If this is the case, I can install it again, but I want to be sure so I don't have unused packages installed.How can I remove this package I no longer need?
The text was updated successfully, but these errors were encountered: