here are the images of the project and target
what is the difference between this two?
why both are given?
An image of project..
An image of target..
Overview. Each target contains a set of source files that Swift Package Manager compiles into a module or test suite. You can vend targets to other packages by defining products that include the targets. A target may depend on other targets within the same package and on products vended by the package's dependencies.
Add a New Target to Your Project Choose File > New > Target. Select the platform for the new target. Choose a starting template.
An Xcode scheme defines a collection of targets to build, a configuration to use when building, and a collection of tests to execute.
A scheme is how you specify what you want to run and it also contains information about how you want to run it. For example, I could have a project with an iOS app and a Watch app, and in that case, I would have one scheme to run my iOS app and one scheme to run my Watch app. Run will run my app in the debugger.
It's a good thing to have both because it lets you create different products from the same set of files. As an example, you can target different architectures/devices, or build a testing product which runs unit tests against your code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With