Khant Thu Linn
Khant Thu Linn

Reputation: 6133

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.

Upvotes: 4

Views: 2671

Answers (2)

Adekola Akano
Adekola Akano

Reputation: 169

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

Upvotes: 0

Cyrille
Cyrille

Reputation: 25144

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

Upvotes: 2

Related Questions