Cant type in Xcode Canvas preview, but can in simulator.

I cant type with either my Mac built in keyboard or my external keyboard. Atleast not on my canvas preview in xcode.

If i run my app either on my Iphone or on a Simulator using the xcode Simulator- Then it works.


This makes absolutely zero sense and i cant find anything about it online.

I use the newest version of Xcode.

Ive tested an old project which dosent work anymore, so i know its not code specific.


I´ve made sure that its not in select mode but in Preview mode.

I can see the blue line fading in and out, and also "AutofilL" From the top. The clicks work perfectly also buttons.


It maeks zero sense.

Since experiencing it, i have:

Cleaned build folder

Restarted preview

Restarted Xcode

Restarted my mac.

Updated Xcode.


It just dosent want to work. PLEEEASE help me.


MacBook Pro 14″, macOS 15.3

Posted on Aug 13, 2025 04:36 AM

Reply
2 replies

Aug 13, 2025 10:18 AM in response to _Luffy_

_Luffy_ wrote:

I cant type with either my Mac built in keyboard or my external keyboard. Atleast not on my canvas preview in xcode.
If i run my app either on my Iphone or on a Simulator using the xcode Simulator- Then it works.

This makes absolutely zero sense and i cant find anything about it online.
I use the newest version of Xcode.
Ive tested an old project which dosent work anymore, so i know its not code specific.

I´ve made sure that its not in select mode but in Preview mode.
I can see the blue line fading in and out, and also "AutofilL" From the top. The clicks work perfectly also buttons.

It maeks zero sense.
Since experiencing it, i have:
Cleaned build folder
Restarted preview
Restarted Xcode
Restarted my mac.
Updated Xcode.

It just dosent want to work. PLEEEASE help me.


?


see if this makes sense to you—


Navigate to Simulator > Reset Content and Settings... in the Xcode menu bar, to resolve minor glitches in the simulator's state.


Previewing your app’s interface in Xcode | Apple Developer Documentation


https://stackoverflow.com/questions/56613157/enable-keyboard-in-xcode-preview


ref: Apple Developer Forums

ref: Support - Apple Developer

ref: Xcode - Support - Apple Developer




Aug 14, 2025 12:07 AM in response to leroydouglas

Yeh, ive tried that. Also the I/O -> hardware keyboard stuff, and read the apple dev article.

None of it works, and most of them seem to say its a problem with the simulator, but my simulator works perfectly. Matter of fact the only reason i ever tried the simulator was because my keyboard stopped working here on my mac.


It just dosent make any sense why the preview dosent work but the simualtor does.


Cant type in Xcode Canvas preview, but can in simulator.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.