xcode - What is xcLanguageSpecificationIdentifier for? -
after make global search , replace operation in xcode adds xclanguagespecificationidentifier , lineending every manipulated file entry in *.pbxproj files in form of e.g.:
036b04cb1b2ae8a70010f649 /* myclass.m */ = {isa = pbxfilereference; fileencoding = 4; lastknownfiletype = sourcecode.c.objc; path = myclass.m; sourcetree = "<group>"; }; to:
036b04cb1b2ae8a70010f649 /* myclass.m */ = {isa = pbxfilereference; fileencoding = 4; lastknownfiletype = sourcecode.c.objc; lineending = 0; path = myclass.m; sourcetree = "<group>"; xclanguagespecificationidentifier = xcode.lang.objc; }; what for?
does improve search performance?
if yes, how can generate other files without making search , replace operation?
if no, how can prevent xcode creating such things?
i think xclanguagespecificationidentifier temporary indication xcode 6 swift's comming; , can found in project.pbxproj if write mixture code swift , objc.
for example, have profilevc.h , profilevc.m, delete profilevc.h , rename profilevc.m profilevc.swift (and rewrite in swift), in projectname.xcodeproject/project.pbxproj, line change
49e89ab31c3d4494006c95bb /* profilevc.m */ = {isa = pbxfilereference; fileencoding = 4; lastknownfiletype = sourcecode.c.objc; path = profilevc.m; sourcetree = "<group>";}; to
49e89ab31c3d4494006c95bb /* profilevc.swift */ = {isa = pbxfilereference; fileencoding = 4; lastknownfiletype = sourcecode.swift; lineending = 0; path = profilevc.swift; sourcetree = "<group>"; xclanguagespecificationidentifier = xcode.lang.objc; }; however, in situation, code in profilevc.swift seems not correctly colored, , code completion broken. delete part xclanguagespecificationidentifier = xcode.lang.objc; , goes quite ok.
Comments
Post a Comment