Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OCUnit is deprecated. Error After upgraded Xcode to 5.1

I have just updated to Xcode 4.6 to 5.1 and iOS 7.0 to7.1.1Now my project is displaying a Warning alert view ”OCUnit Deprecated The project “Project Name” uses OCUnit for unit testing, which is deprecated. Choose “Convert to XCTest” to update this project to use XCTest for unit testing.”

enter image description here

Does it affect my app when i submitting to app store?

How to remove this warning (or) how to update my application to use XCTest for unit testing.

like image 458
Musthafa Avatar asked May 19 '14 03:05

Musthafa


1 Answers

No, it does not affect the app store submission. XCTest is also not supported as far as I know if your app still runs on older versions of iOS.

You will need to switch "at some point", because Xcode 6, which might be released as a beta in the next few weeks, probably will not support OCUnit. You may not be able to run your unit tests at all soon unless you upgrade.

But until then, there is no pressing need to upgrade. When you're ready to do it, just commit all your changes to git/etc so you can roll back if it goes wrong, then click the "convert to XCTest" button. It should just work... if it doesn't, post here with your specific problem.

As a general rule, I would not rush to adopt any new features in Xcode. There tend to be bugs and sometimes Apple abandons new technology a year after adopting it. But XCTest has been the default for a year now, and I haven't heard any complaints (except for bugs in the early days), so it's safe to switch.

like image 98
Abhi Beckert Avatar answered Sep 30 '22 08:09

Abhi Beckert