Xcode 15.0 Beta: String Catalog is not syncing with code in a Static Library

Seems like a bug on the Xcode 15.0 beta.

Steps to reproduce:

  1. Create a new empty Static Library project in Xcode (objective-C)
  2. Add a String Catalog file
  3. Add a dummy function which includes NSString *str = NSLocalizeString(@"test string", @"comment");
  4. Build the project.

Result: String Catalog is empty while it should be updated with "test string".

I submitted FB12408229

Anyone encountered this? Anyone from Apple can kindly confirm?