Xcode 26 String Catalog generate comment grayed out

Why is "generate comment" button grayed out?

  • I'm running macOS Tahoe Beta 2, Xcode 26 Beta 2
  • Apple intelligence on both system preferences as well as Xcode are enabled
  • Created fresh Xcode project to test it (happens on my older project too)
  • Xcode Preferences -> Editing -> Automatically generate string catalog comments (tried with ON/OFF)
  • Tried to CMD+B to re-index project

Not sure what else to try.

Answered by Developer Tools Engineer in 845871022

Hello,

  1. The string must be automatically managed rather than manually added. Automatic strings are added to the Catalog automatically from strings in source code. Check the “Managed” picker in the Attributes Inspector.

  2. There must be at least one detected Swift usage of the string in source code. See the Attributes Inspector for detected usages.

  • ChatGPT account is attached too
Accepted Answer

Hello,

  1. The string must be automatically managed rather than manually added. Automatic strings are added to the Catalog automatically from strings in source code. Check the “Managed” picker in the Attributes Inspector.

  2. There must be at least one detected Swift usage of the string in source code. See the Attributes Inspector for detected usages.

Xcode 26 String Catalog generate comment grayed out
 
 
Q