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

Unable to Build Package #28

Closed
Peyton-McKee opened this issue Dec 23, 2023 · 5 comments
Closed

Unable to Build Package #28

Peyton-McKee opened this issue Dec 23, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Peyton-McKee
Copy link

Describe the bug

When adding the package to my project and trying to build, I get the error Cannot find type 'CredentialsProvider' in scope in AmplifyLibreMapAdapter/Sources/AmplifyLibreMapAdapter/AWSMapURLProtocol+GeoConfig

Steps To Reproduce

Steps to reproduce the behavior:
1. Go to 'Add new package2. Add Package with both package components
3. Build
4. See Error

Expected behavior

It should build

Amplify MapLibre Adapter Version

2.0.1

Swift version

5

Xcode version

15.1

Is this a regression?

No

Regression additional context

No response

Device

N/A

iOS Version

IOS 17

Specific to simulators

No response

Additional context

When I right click on credentialsProvider it takes me to the class. So Not really sure whats going on there. I also tried installing amplify first and then installing this package and the same thing happened.

@Peyton-McKee
Copy link
Author

Ive tried just creating a brand new project and same thing happens.

@Peyton-McKee
Copy link
Author

I think its a bug... I manually added the code from scratch into my project and changed it to credentialsproviding to actually be the protocol and it worked

@atierian
Copy link
Member

atierian commented Jan 8, 2024

Thanks for reporting this @Peyton-McKee.
This is due a change to a type name in the AWS SDK for Swift. We're working on a fix -- in the meantime, you can pin to Amplify Swift 2.2.0

@atierian atierian added the bug Something isn't working label Jan 8, 2024
@atierian atierian self-assigned this Jan 8, 2024
@ruisebas ruisebas assigned ruisebas and unassigned atierian May 14, 2024
@ruisebas
Copy link
Member

Fixed in 2.1.0

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants