@@ -57,6 +57,14 @@ public class iOSPostBuild {
57
57
58
58
private const string ShellPath = "/bin/sh -x" ;
59
59
60
+ private static List < string > InputFiles = new List < string > ( new [ ] {
61
+ "$(BUILT_PRODUCTS_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/GoogleService-Info.plist" ,
62
+ "$(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_PATH)" ,
63
+ "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}" ,
64
+ "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist" ,
65
+ "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${PRODUCT_NAME}"
66
+ } ) ;
67
+
60
68
/// <summary>
61
69
/// When building out to iOS, write Firebase specific values to the appropriate Plist files.
62
70
/// </summary>
@@ -137,11 +145,11 @@ private static void SetupGUIDForSymbolUploads(object pbxProjectObj,
137
145
138
146
internal static iOSBuildPhaseMethodCall GetBuildPhaseMethodCall ( string unityVersion , string targetGuid , string completeRunScriptBody ) {
139
147
if ( VersionInfo . GetUnityMajorVersion ( unityVersion ) >= 2019 ) {
140
- Debug . Log ( "Using AddShellScriptBuildPhase to add the Crashlytics Run Script" ) ;
148
+ Debug . Log ( "Using AddShellScriptBuildPhase with Input Files to add the Crashlytics Run Script" ) ;
141
149
return new iOSBuildPhaseMethodCall {
142
150
MethodName = "AddShellScriptBuildPhase" ,
143
- ArgumentTypes = new [ ] { typeof ( string ) , typeof ( string ) , typeof ( string ) , typeof ( string ) } ,
144
- Arguments = new object [ ] { targetGuid , RunScriptName , ShellPath , completeRunScriptBody } ,
151
+ ArgumentTypes = new [ ] { typeof ( string ) , typeof ( string ) , typeof ( string ) , typeof ( string ) , typeof ( List < string > ) } ,
152
+ Arguments = new object [ ] { targetGuid , RunScriptName , ShellPath , completeRunScriptBody , InputFiles } ,
145
153
} ;
146
154
} else {
147
155
Debug . Log ( "Using AppendShellScriptBuildPhase to add the Crashlytics Run Script" ) ;
0 commit comments