@@ -31,7 +31,7 @@ - (NSString *)referenceProxyKeyForName:(NSString *)name
3131{
3232 __block NSString *result = nil ;
3333 [[self objects ] enumerateKeysAndObjectsUsingBlock: ^(NSString *key, NSDictionary *obj, BOOL *stop) {
34- if ([[obj valueForKey: @" isa" ] asMemberType ] == PBXReferenceProxyType ) {
34+ if ([[obj valueForKey: @" isa" ] xce_hasReferenceProxyType ] ) {
3535 NSString *candidate = [obj valueForKey: @" path" ];
3636 if ([candidate isEqualToString: name]) {
3737 result = key;
@@ -48,7 +48,7 @@ - (NSArray *)buildProductsForTargets:(NSString *)xcodeprojKey
4848{
4949 NSMutableArray *results = [[NSMutableArray alloc ] init ];
5050 [[self objects ] enumerateKeysAndObjectsUsingBlock: ^(NSString *key, NSDictionary *obj, BOOL *stop) {
51- if ([[obj valueForKey: @" isa" ] asMemberType ] == PBXReferenceProxyType ) {
51+ if ([[obj valueForKey: @" isa" ] xce_hasReferenceProxyType ] ) {
5252 // make sure it belongs to the xcodeproj we're adding
5353 NSString *remoteRef = [obj valueForKey: @" remoteRef" ];
5454 NSDictionary *containerProxy = [[self objects ] valueForKey: remoteRef];
@@ -91,7 +91,7 @@ - (NSArray *)keysForProjectObjectsOfType:(XcodeMemberType)memberType withIdentif
9191{
9292 __block NSMutableArray *returnValue = [[NSMutableArray alloc ] init ];
9393 [[self objects ] enumerateKeysAndObjectsUsingBlock: ^(NSString *key, NSDictionary *obj, BOOL *stop) {
94- if ([[obj valueForKey: @" isa" ] asMemberType ] == memberType) {
94+ if ([[obj valueForKey: @" isa" ] xce_asMemberType ] == memberType) {
9595 if (memberType == PBXContainerItemProxyType) {
9696 if ([[obj valueForKey: @" containerPortal" ] isEqualToString: identifier]) {
9797 [returnValue addObject: key];
@@ -131,20 +131,21 @@ - (NSArray *)keysForProjectObjectsOfType:(XcodeMemberType)memberType withIdentif
131131 [returnValue addObject: key];
132132 }
133133 else {
134- [NSException raise: NSInvalidArgumentException format: @" Unrecognized member type %@ " ,
135- [NSString stringFromMemberType : memberType]];
134+ [NSException raise: NSInvalidArgumentException
135+ format: @" Unrecognized member type %@ " , [NSString xce_stringFromMemberType : memberType]];
136136 }
137137 }
138138 }];
139139 if (singleton && [returnValue count ] > 1 ) {
140140 [NSException raise: NSGenericException
141- format: @" Searched for one instance of member type %@ with value %@ , but found %ld " ,
142- [NSString stringFromMemberType: memberType], identifier, (unsigned long ) [returnValue count ]];
141+ format: @" Searched for one instance of member type %@ with value %@ , but found %ld " ,
142+ [NSString xce_stringFromMemberType: memberType], identifier,
143+ (unsigned long ) [returnValue count ]];
143144 }
144145 if (required && [returnValue count ] == 0 ) {
145146 [NSException raise: NSGenericException
146- format: @" Searched for instances of member type %@ with value %@ , but did not find any" ,
147- [NSString stringFromMemberType : memberType], identifier];
147+ format: @" Searched for instances of member type %@ with value %@ , but did not find any" ,
148+ [NSString xce_stringFromMemberType : memberType], identifier];
148149 }
149150 return returnValue;
150151}
@@ -165,7 +166,7 @@ - (NSString *)containerItemProxyKeyForName:(NSString *)name proxyType:(NSString
165166{
166167 NSMutableArray *results = [[NSMutableArray alloc ] init ];
167168 [[self objects ] enumerateKeysAndObjectsUsingBlock: ^(NSString *key, NSDictionary *obj, BOOL *stop) {
168- if ([[obj valueForKey: @" isa" ] asMemberType ] == PBXContainerItemProxyType ) {
169+ if ([[obj valueForKey: @" isa" ] xce_hasContainerItemProxyType ] ) {
169170 NSString *remoteInfo = [obj valueForKey: @" remoteInfo" ];
170171 NSString *proxy = [obj valueForKey: @" proxyType" ];
171172 if ([remoteInfo isEqualToString: name] && [proxy isEqualToString: proxyType]) {
@@ -208,7 +209,7 @@ - (NSString *)makeContainerItemProxyForName:(NSString *)name fileRef:(NSString *
208209 }
209210 // make new one
210211 NSMutableDictionary *proxy = [NSMutableDictionary dictionary ];
211- proxy[@" isa" ] = [NSString stringFromMemberType : PBXContainerItemProxyType];
212+ proxy[@" isa" ] = [NSString xce_stringFromMemberType : PBXContainerItemProxyType];
212213 proxy[@" containerPortal" ] = fileRef;
213214 proxy[@" proxyType" ] = proxyType;
214215 // give it a random key - the keys xcode puts here are not in the project file anywhere else
@@ -237,7 +238,7 @@ - (void)makeReferenceProxyForContainerItemProxy:(NSString *)containerItemProxyKe
237238 }
238239 // make new one
239240 NSMutableDictionary *proxy = [NSMutableDictionary dictionary ];
240- proxy[@" isa" ] = [NSString stringFromMemberType : PBXReferenceProxyType];
241+ proxy[@" isa" ] = [NSString xce_stringFromMemberType : PBXReferenceProxyType];
241242 proxy[@" fileType" ] = [buildProductReference valueForKey: @" explicitFileType" ];
242243 proxy[@" path" ] = path;
243244 proxy[@" remoteRef" ] = containerItemProxyKey;
@@ -268,7 +269,7 @@ - (NSString *)makeTargetDependency:(NSString *)name forContainerItemProxyKey:(NS
268269 }
269270 // make new one
270271 NSMutableDictionary *targetDependency = [NSMutableDictionary dictionary ];
271- targetDependency[@" isa" ] = [NSString stringFromMemberType : PBXTargetDependencyType];
272+ targetDependency[@" isa" ] = [NSString xce_stringFromMemberType : PBXTargetDependencyType];
272273 targetDependency[@" name" ] = name;
273274 targetDependency[@" targetProxy" ] = containerItemProxyKey;
274275 NSString *targetDependencyKey = [[XCKeyBuilder forItemNamed: [NSString stringWithFormat: @" %@ -targetProxy" , keyName]]
0 commit comments