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

Release 1.13.1 Compiler Error using Swift Package Manager #1364

Closed
jleishman opened this issue Aug 6, 2021 · 4 comments
Closed

Release 1.13.1 Compiler Error using Swift Package Manager #1364

jleishman opened this issue Aug 6, 2021 · 4 comments
Labels
bug Something isn't working datastore Issues related to the DataStore category

Comments

@jleishman
Copy link

Describe the bug

Using release 1.13.1 causes a compiler error when brought in using Swift Package Manager:

amplify-ios/AmplifyPlugins/DataStore/AWSDataStoreCategoryPlugin/Sync/Support/SQLiteResultError.swift:34:20: error: cannot find 'SQLITE_CONSTRAINT' in scope
        if code == SQLITE_CONSTRAINT {

Steps To Reproduce

Steps to reproduce the behavior:
1. Create a new iOS project (just select one of the templates)
2. Add the amplify-ios library using Swift Package Manager
3. Build
4. See error

Expected behavior

Compilation should be successful.

Amplify Framework Version

1.13.1

Amplify Categories

API

Dependency manager

Swift PM

Swift version

5.0

CLI version

4.50.2

Xcode version

12.5.1

Relevant log output

No response

Is this a regression? (i.e. was this working before a version upgrade)

1.13.0 does not exhibit this behavior

Device

iPhone 12 Pro

iOS Version

iOS 14.5

Specific to simulators

No

Additional context

No response

@lawmicha
Copy link
Member

lawmicha commented Aug 6, 2021

Hi @jleishman, sorry for the inconvenience caused, we're still investigating why isn't working for SPM, and have #1365 that should fix the problem. We'll release this as 1.13.2 and deprecate 1.13.1. If you are trying to use the changes from 1.13.1, feel free to switch over to the fix/sqlite branch for now or revert to 1.13.0 to continue your development

@lawmicha lawmicha added bug Something isn't working datastore Issues related to the DataStore category investigating This issue is being investigated labels Aug 6, 2021
@jleishman
Copy link
Author

@lawmicha any chance that branch (or at least the latest commit on it) won't disappear if and when the pull request is merged?

@lawmicha
Copy link
Member

lawmicha commented Aug 6, 2021

Good question, we have auto delete enabled so I’ll make sure to reopen the branch when merging

@lawmicha
Copy link
Member

lawmicha commented Aug 9, 2021

we have release the fix in 1.13.3 https://github.com/aws-amplify/amplify-ios/releases/tag/v1.13.3 please let us know if you see any other issues

@lawmicha lawmicha closed this as completed Aug 9, 2021
@lawmicha lawmicha removed the investigating This issue is being investigated label Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working datastore Issues related to the DataStore category
Projects
None yet
Development

No branches or pull requests

2 participants