Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class Prefix missing in project template in Xcode 6.1

Tags:

xcode6.1

There used to be a class prefix field on project template, which would help distinguish project classes with framework classes. This is no longer available in Xcode 6.1 project templates. What is the intension behind this?

like image 347
user3869369 Avatar asked Nov 23 '14 16:11

user3869369


1 Answers

According to some sources Apple removed this intentionally. They are no longer encouraging the use of prefixes for app code, with the reasoning that app code will not be reused and therefore will have little chance of name conflicts. See: http://scottberrevoets.com/2014/07/25/objective-c-prefixes-a-thing-of-the-past/

They are encouraging it only if you are developing a framework. For frameworks, you can add it using project inspector: Why is Xcode not prefixing filenames

I use the above method to add prefixes to my app code because I find it neater. Also if some framework I end up using doesn't follow the prefix convention, I can be sure there won't be a name conflict with my code.

like image 101
Alexander Liberson Avatar answered Dec 06 '22 17:12

Alexander Liberson