While tuning my SDK, I added an example app as an executable target. If it uses APIs beyond what your SDK supports (.𝘱𝘭𝘢𝘵𝘧𝘰𝘳𝘮𝘴), the compiler fails. Expected.

But: any dependencies the example app uses get declared in the package config - they show up when users add your SDK. Users get frameworks they didn't ask for.

Example apps should only use the SDK they're made for. Keeps things clean.

#iOS #SDK #SwiftPackageManager #OpenSource