1

Basically, I am trying to write the Test cases using XCTest Framework available in the iOS. So I came across this DI and was exploring it on Google where I came across Stack Overflow and Objection. But I am unable to understand as how to integrate this into the project. Could anybody guide me as how can achieve this?

Is it necessary to use DI or is there any work around on it?

May be is there any other available DI Framework available for iOS we can use as I am not able to understand how to implement the Objection Framework?

Community
  • 1
  • 1
Rahul Singh
  • 103
  • 1
  • 10
  • Check this [enter link description here][1], You can find your answer in detail [1]: http://stackoverflow.com/questions/8782398/recommended-ioc-framework-for-ios – Adnan Aftab Jan 08 '14 at 12:02
  • I have already gone through this link, but did not find it useful in terms of implementation.I did not find any documentation of it.Could you let me know how to use it in any Xcode project? – Rahul Singh Jan 08 '14 at 13:58
  • This link shows an example with xcode project. http://objection-framework.org/ – Adnan Aftab Jan 08 '14 at 14:41
  • 1
    i am unable to run the code.It is saying `ipo: can't open input file: /Users/portia/Library/Developer/Xcode/DerivedData/Objection-freoyqhgfcvkmagdhjnbgkguekvv/Build/Products/Debug-iphonesimulator/libObjection-StaticLib.a (No such file or directory) Command /bin/sh failed with exit code 1 ` I added the libObjection-Static.a file but still getting the same error. I also added the **HeaderSearchPath** to it but still not able to run the code. – Rahul Singh Jan 09 '14 at 04:16

0 Answers0