Have you found youself struggling to work out how to unit test with XCTest in Xcode 5? I have, and it’s a pain to work out how to solve this.
You may get an error like the following in your unit test classes:
Can’t find .m file
It’s actually really simple (once someone tells you) to get this working. Just do the following:
- Under your unit tests Build Settings look for the Linker > Bundle Loader setting.
Add the following:
You will need to make sure you replace [name] with your framework name that your testing.
RelatedXcode Warnings With Swift
Exchange Issues On OSX
Facebook Invalid Redirect URI
Refresh favicon in browser
Using Gmail With a Custom Domain
OSX Keyboard Icons
Handy Xcode Snippets
Push Segue Without Animation
Library Not Loaded Image Not Found Error