Testcases in Custom Framework

Hi all,
I have created a Custom Framework which contains public and private methods. Now I want to have unit test cases for the framework which includes mocking of API responses i.e if I call the login method then it internally calls the API and then that response is converted into an object and returned back from the Framework.

var user : User = myFramework.login(ID:"2")
the output of this would be an NSObject which contains information about the userID 2 like name, avatar, link, etc.
I want to mock the API response of the login method and other such methods but the problem is their target is different. So if I add a mocking framework like cuckoo or Mockito then it will get added in tests target and not in my actual target where I have to mock the default response. Let me know if anyone has an idea to do this.
Thanks