Adding a package to two targets in one projects results in an error

Here is my solution to the problem: