Reputation: 5044
Is there a way to only build certain classes? I am testing code in one part of the application and I don't want to have to change it all across the program if it is not going to work correctly.
Upvotes: 0
Views: 267
Reputation: 32681
You have multiple possibilities:
If you choose to create a dedicated target, you can easily switch between this new target (to compile only the selected classes) and the main target (to compile the whole app) and vice-versa, at any time.
(if you only need to compile one class for the day until you finish your refactoring but won't need this later, it's probably not worth creating a target; But creating a target could be useful if you intend to test this class on its own in multiple occasions during your development phases)
Upvotes: 2