There is no 'Build Libraries for Distribution' in Build options.
Where is 'Build Libraries for Distribution' in Xcode 15?
In Xcode 15, tap your project upper left, then your target, then Build Settings, then select "All" (not just Basic).
There is no 'Build Libraries for Distribution' in Build options.
In Xcode 15, tap your project upper left, then your target, then Build Settings, then select "All" (not just Basic).