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

Chat #1

Closed
danisenko123 opened this issue Jan 17, 2021 · 5 comments
Closed

Chat #1

danisenko123 opened this issue Jan 17, 2021 · 5 comments

Comments

@danisenko123
Copy link

Good afternoon,
I did a chat according to your example,
but I can't figure out how to start two devices and check the chat

@frzi
Copy link
Owner

frzi commented Jan 17, 2021

In Xcode you can run multiple simulators simultaneously. Select a different simulator and hit the “run” button again.

@danisenko123
Copy link
Author

Can me look screen

@danisenko123
Copy link
Author

Can you send me a screenshot of how to do this I'm new to Xcode

@danisenko123
Copy link
Author

eyNotFound(CodingKeys(stringValue: "message", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: "message", intValue: nil) ("message").", underlyingError: nil))
And I have such an error when sending messages.

@frzi
Copy link
Owner

frzi commented Jan 17, 2021

Can you send me a screenshot of how to do this I'm new to Xcode

In Xcode, next to the target name, click the device/simulator:
Schermafbeelding 2021-01-17 om 13 52 55
Then select a different simulator:
Schermafbeelding 2021-01-17 om 13 51 53

You can do this several times to run multiple instances of the iOS simulator (careful though, this can require a bit of CPU and memory!)

eyNotFound(CodingKeys(stringValue: "message", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: "message", intValue: nil) ("message").", underlyingError: nil))
And I have such an error when sending messages.

Make sure the SubmittedChatMessage model is exactly the same in both the app project and in the server project. These have to be identical.

If you're unsure what is wrong with your code you can clone this repository and compare it with your own.

@frzi frzi closed this as completed Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants