I'm implementing some tests and I need to access the source files from my main target.
Do I need to add all required files in "Compile Sources" ?
Yes you need to add them in "Compile Sources". Alternatively you can select file in "Project Navigator" and change target membership in "Utility -> File Inspector" pane on right side of Xcode window.