Closed ethan021021 closed 2 years ago
Thanks for reporting this. Per our discussion on Discord, the betas are not supported, but we want to make sure we're aware of any issues to ensure they're resolved before release.
@ethan021021 I'm having the same problem here. However, I'm not quite sure if this error message is accurate. Have you tried to perform Generate Report command in the diagnostics window?
This likely isn't an amplify issue. See https://developer.apple.com/forums/thread/707569. Others are having the same issues with other packages.
I have the same issue with Xcode 14 GA
My cognito plugin initialization code is in the App Delegate.
Looks like Xcode Canvas (Preview) does not invoke this code to build the preview. The preview crashes with an error saying that Auth Cognito plugin is not initialized.
Here is the crash log Landmarks-2022-09-14-122515.ips.zip
Because it looks like slightly different than the issue on this thread, I opened another issue here https://github.com/aws-amplify/amplify-ios/issues/2308
We created a PR to address this problem. The fix has been merged and will be included in our next release, which should be sometime next week. In the meantime, feel free to target the main branch to test the fix, and let us know if you have any further problems with it.
Describe the bug
Using the newest Xcode 14 beta my app that uses Amplify (via SPM) will not compile using SwiftUI Preview's. Understandably it's in beta but I wanted to make sure I report this issue early on.
Steps To Reproduce
Expected behavior
SwiftUI Preview should compile/run
Amplify Framework Version
1.26.1
Amplify Categories
Analytics, API, Auth, DataStore, Geo, Predictions, Storage
Dependency manager
Swift PM
Swift version
5.7
CLI version
8.3.0
Xcode version
14.0 (14A5228q)
Relevant log output