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'm experiencing the following error when I try to run try Amplify.configure(). This seems sporadic as running my app locally was working, but after starting and stopping multiple simulations I encountered the error. I've followed the initialization instructions here and here.
I even created a new project and re-initialized a new amplify project, but the error eventually appears again (appeared on my fourth re-run). Error: Could not initialize Amplify: PluginError: Unable to decode configuration Recovery suggestion: Make sure the plugin configuration is JSONValue
My awsconfiguration and amplifyconfiguration JSON files are included in my XCode project. I've pasted them below (replacing personal information) - they are in valid JSON format.
Steps to reproduce the behavior:1. Initialize an amplify project with the Amplify, AWSAPIPlugin, AWSCognitoAuthPlugin, AWSS3StoragePlugin
2. Attempt to add the plugins to amplify and configure:tryAmplify.add(plugin:AWSCognitoAuthPlugin())tryAmplify.add(plugin:AWSS3StoragePlugin())tryAmplify.add(plugin:AWSAPIPlugin(modelRegistration:AmplifyModels()))tryAmplify.configure()3. Run the app in XCode. Stop, make changes to Views, re-build and re-run the app. On the fourth run, it fails.4. See error
Could not initialize Amplify: PluginError: Unable to decode configuration
Recovery suggestion: Make sure the plugin configuration is JSONValue
Expected behavior
I expect the app to build and run successfully, consistently.
Amplify Framework Version
2.15.3
Amplify Categories
API, Auth, Storage
Dependency manager
Swift PM
Swift version
5.8
CLI version
11.1.1
Xcode version
14.3
Relevant log output
<details><summary>Log Messages</summary>
Could not initialize Amplify: PluginError: Unable to decode configuration
Recovery suggestion: Make sure the plugin configuration is JSONValue
```
Is this a regression?
No
Regression additional context
No response
Platforms
iOS
OS Version
iOS 16.2
Device
iPhone 13 Pro, iPhone 14 Pro
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm experiencing the following error when I try to run
try Amplify.configure()
. This seems sporadic as running my app locally was working, but after starting and stopping multiple simulations I encountered the error. I've followed the initialization instructions here and here.I even created a new project and re-initialized a new amplify project, but the error eventually appears again (appeared on my fourth re-run). Error:
Could not initialize Amplify: PluginError: Unable to decode configuration Recovery suggestion: Make sure the plugin configuration is JSONValue
My awsconfiguration and amplifyconfiguration JSON files are included in my XCode project. I've pasted them below (replacing personal information) - they are in valid JSON format.
awsconfiguration:
amplifyconfiguration:
Steps To Reproduce
Expected behavior
I expect the app to build and run successfully, consistently.
Amplify Framework Version
2.15.3
Amplify Categories
API, Auth, Storage
Dependency manager
Swift PM
Swift version
5.8
CLI version
11.1.1
Xcode version
14.3
Relevant log output
Is this a regression?
No
Regression additional context
No response
Platforms
iOS
OS Version
iOS 16.2
Device
iPhone 13 Pro, iPhone 14 Pro
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: