iosxcodeaddtarget

ios Create new file and add to all target automatically


Currently, I have 2 target like this.

enter image description here

When I create some file, it only choose 1 for default like this. I have to choose all target manually.

enter image description here

I afraid that developers might make some mistakes and don't add to app store version. Is there any way to automatically select both target? Or at least, by default, App Store version should be selected.


Solution

  • There's an Xcode plugin here that precisely does what you want.