SF symbol shown in simulator, but not on iPhone

In my app I use the symbol rectangle.portrait.rotate as

Image(systemName: "rectangle.portrait.rotate")`

targeting iOS 16.0 and later.

It is shown on the simulator iPhone SE 3rd generation without complaining, however on my iPhone (SE model MHGP3QL/A, iOS 16.7) it is not shown and the debugger states:

No symbol named 'rectangle.portrait.rotate' found in system symbol set

Replies

It requires SF Symbols 5, which is in iOS 17.

Likely your simulator is for iOS 17. Is it ?

Below you could use rotate.left of rotate.right and make a test on iOS version to select the rectangle.portrait.rotate of one of the others.