@@ -143,6 +143,20 @@ class Applesign {
143143 }
144144 }
145145
146+ async adjustAllInfoPlists ( ) {
147+ const infoPlistPath = path . join ( this . config . appdir , "Info.plist" ) ;
148+ adjustInfoPlist ( infoPlistPath , this . config , this . emit . bind ( this ) ) ;
149+ const ls = new AppDirectory ( ) ;
150+ const res = await ls . loadFromDirectory ( this . config . appdir ) ;
151+ for ( let appex of ls . appexs ) {
152+ const lidx = appex . lastIndexOf ( "/" ) ;
153+ if ( lidx !== - 1 ) {
154+ const plistPath = path . join ( appex . substring ( 0 , lidx ) , "Info.plist" ) ;
155+ adjustInfoPlist ( plistPath , this . config , this . emit . bind ( this ) ) ;
156+ }
157+ }
158+ }
159+
146160 async signAppDirectoryInternal ( ipadir : string , skipNested : boolean ) {
147161 fchk ( arguments , [ "string" , "boolean" ] ) ;
148162 await this . _pullMobileProvision ( ) ;
@@ -174,8 +188,7 @@ class Applesign {
174188 if ( this . config . insertLibrary !== undefined ) {
175189 await injectLibrary ( this . config ) ;
176190 }
177- const infoPlistPath = path . join ( this . config . appdir , "Info.plist" ) ;
178- adjustInfoPlist ( infoPlistPath , this . config , this . emit . bind ( this ) ) ;
191+ await this . adjustAllInfoPlists ( ) ;
179192 if ( ! this . config . pseudoSign ) {
180193 if ( ! this . config . mobileprovision ) {
181194 throw new Error ( "warning: No mobile provisioning file provided" ) ;
0 commit comments