Skip to content

Commit de03c9f

Browse files
authored
Support archive builds during carthage copy frameworks (#779)
1 parent 32df9ac commit de03c9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Loop.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,7 +1644,7 @@
16441644
);
16451645
runOnlyForDeploymentPostprocessing = 0;
16461646
shellPath = /bin/sh;
1647-
shellScript = "carthage_frameworks_dir=${SRCROOT}/Carthage/Build/iOS\nif [ -f $PROJECT_DIR/.gitmodules ]; then\n for varname in ${!SCRIPT_INPUT_FILE_*}\n do\n export ${varname}=${!varname/$carthage_frameworks_dir/$TARGET_BUILD_DIR}\n done\nfi\n/usr/local/bin/carthage copy-frameworks";
1647+
shellScript = "carthage_frameworks_dir=${SRCROOT}/Carthage/Build/iOS\nif [ -f $PROJECT_DIR/.gitmodules && [ $ACTION != \"install\" ]; then\nfor varname in ${!SCRIPT_INPUT_FILE_*}\ndo\nexport ${varname}=${!varname/$carthage_frameworks_dir/$BUILT_PRODUCTS_DIR}\ndone\nfi\n/usr/local/bin/carthage copy-frameworks";
16481648
};
16491649
43FF3DF620A8EFE800F8E62C /* Copy Frameworks with Carthage */ = {
16501650
isa = PBXShellScriptBuildPhase;
@@ -1662,7 +1662,7 @@
16621662
);
16631663
runOnlyForDeploymentPostprocessing = 0;
16641664
shellPath = /bin/sh;
1665-
shellScript = "/usr/local/bin/carthage copy-frameworks";
1665+
shellScript = "carthage_frameworks_dir=${SRCROOT}/Carthage/Build/iOS\nif [ -f $PROJECT_DIR/.gitmodules && [ $ACTION != \"install\" ]; then\nfor varname in ${!SCRIPT_INPUT_FILE_*}\ndo\nexport ${varname}=${!varname/$carthage_frameworks_dir/$BUILT_PRODUCTS_DIR}\ndone\nfi\n/usr/local/bin/carthage copy-frameworks";
16661666
};
16671667
/* End PBXShellScriptBuildPhase section */
16681668

0 commit comments

Comments
 (0)