@@ -8,25 +8,28 @@ public class PBXBuildPhase : PBXObject
88 {
99 protected const string FILES_KEY = "files" ;
1010
11- public PBXBuildPhase ( )
11+ public PBXBuildPhase ( ) : base ( )
1212 {
13- Debug . Log ( "base" ) ;
13+ // Debug.Log( "base" );
1414 }
1515
16- public PBXBuildPhase ( string guid , PBXDictionary dictionary ) // : base ( guid, dictionary )
16+ public PBXBuildPhase ( string guid , PBXDictionary dictionary ) : base ( guid , dictionary )
1717 {
18- Debug . Log ( "constructor " + GetType ( ) . Name ) ;
18+ // Debug.Log( "constructor " + GetType().Name );
1919 }
2020
2121 public bool AddBuildFile ( PBXBuildFile file )
2222 {
23- if ( ( ( string ) file [ ISA_KEY ] ) . CompareTo ( "PBXBuildFile" ) != 0 )
24- return false ;
23+ // if( ((string)file[ ISA_KEY ]).CompareTo( "PBXBuildFile" ) != 0 )
24+ // return false;
2525
26- if ( ! ContainsKey ( FILES_KEY ) )
26+ if ( ! ContainsKey ( FILES_KEY ) ) {
27+ Debug . Log ( "key not present" ) ;
2728 this . Add ( FILES_KEY , new PBXList ( ) ) ;
28-
29- ( ( PBXList ) this [ FILES_KEY ] ) . Add ( file . guid ) ;
29+ }
30+ Debug . Log ( "key: " + _data [ FILES_KEY ] ) ;
31+ Debug . Log ( "Adding: " + file . guid ) ;
32+ ( ( PBXList ) _data [ FILES_KEY ] ) . Add ( file . guid ) ;
3033 return true ;
3134 }
3235
@@ -37,7 +40,7 @@ public void RemoveBuildFile( string id )
3740 return ;
3841 }
3942
40- ( ( PBXList ) this [ FILES_KEY ] ) . Remove ( id ) ;
43+ ( ( PBXList ) _data [ FILES_KEY ] ) . Remove ( id ) ;
4144 }
4245
4346 public bool HasBuildFile ( string id )
@@ -50,7 +53,7 @@ public bool HasBuildFile( string id )
5053 if ( ! IsGuid ( id ) )
5154 return false ;
5255
53- return ( ( PBXList ) this [ FILES_KEY ] ) . Contains ( id ) ;
56+ return ( ( PBXList ) _data [ FILES_KEY ] ) . Contains ( id ) ;
5457 }
5558
5659// class PBXBuildPhase(PBXObject):
@@ -85,41 +88,41 @@ public bool HasBuildFile( string id )
8588
8689 public class PBXFrameworksBuildPhase : PBXBuildPhase
8790 {
88- public PBXFrameworksBuildPhase ( string guid , PBXDictionary dictionary ) // : base ( guid, dictionary )
91+ public PBXFrameworksBuildPhase ( string guid , PBXDictionary dictionary ) : base ( guid , dictionary )
8992 {
90- Debug . Log ( "constructor child" + GetType ( ) . Name ) ;
93+ // Debug.Log( "constructor child" + GetType().Name );
9194 }
9295 }
9396
9497 public class PBXResourcesBuildPhase : PBXBuildPhase
9598 {
96- public PBXResourcesBuildPhase ( string guid , PBXDictionary dictionary ) // : base ( guid, dictionary )
99+ public PBXResourcesBuildPhase ( string guid , PBXDictionary dictionary ) : base ( guid , dictionary )
97100 {
98- Debug . Log ( "constructor child" + GetType ( ) . Name ) ;
101+ // Debug.Log( "constructor child" + GetType().Name );
99102 }
100103 }
101104
102105 public class PBXShellScriptBuildPhase : PBXBuildPhase
103106 {
104- public PBXShellScriptBuildPhase ( string guid , PBXDictionary dictionary ) // : base ( guid, dictionary )
107+ public PBXShellScriptBuildPhase ( string guid , PBXDictionary dictionary ) : base ( guid , dictionary )
105108 {
106- Debug . Log ( "constructor child" + GetType ( ) . Name ) ;
109+ // Debug.Log( "constructor child" + GetType().Name );
107110 }
108111 }
109112
110113 public class PBXSourcesBuildPhase : PBXBuildPhase
111114 {
112- public PBXSourcesBuildPhase ( string guid , PBXDictionary dictionary ) // : base ( guid, dictionary )
115+ public PBXSourcesBuildPhase ( string guid , PBXDictionary dictionary ) : base ( guid , dictionary )
113116 {
114- Debug . Log ( "constructor child" + GetType ( ) . Name ) ;
117+ // Debug.Log( "constructor child" + GetType().Name );
115118 }
116119 }
117120
118121 public class PBXCopyFilesBuildPhase : PBXBuildPhase
119122 {
120- public PBXCopyFilesBuildPhase ( string guid , PBXDictionary dictionary ) // : base ( guid, dictionary )
123+ public PBXCopyFilesBuildPhase ( string guid , PBXDictionary dictionary ) : base ( guid , dictionary )
121124 {
122- Debug . Log ( "constructor child" + GetType ( ) . Name ) ;
125+ // Debug.Log( "constructor child" + GetType().Name );
123126 }
124127 }
125128}
0 commit comments