4

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.

Moin Shirazi
  • 4,372
  • 2
  • 26
  • 38
Khant Thu Linn
  • 5,905
  • 7
  • 52
  • 120

2 Answers2

2

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

Cyrille
  • 25,014
  • 12
  • 67
  • 90
0

Create a new file and select all the targets. Xcode will automatically remember and select those targets when creating subsequent files.

File -> New -> File -> Swift file

Adekola Akano
  • 169
  • 2
  • 7