Skip to content

Commit

Permalink
Move build artifacts cleanup to scheme pre-build
Browse files Browse the repository at this point in the history
  • Loading branch information
jurvis committed May 3, 2022
1 parent cb2cdf4 commit 645cde1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
20 changes: 19 additions & 1 deletion LibWally.xcodeproj/xcshareddata/xcschemes/LibWally.xcscheme
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1230"
version = "1.3">
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<PreActions>
<ExecutionAction
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
<ActionContent
title = "Run Script"
scriptText = "# We want to clean the libwally-core static build files for simulator so we can&#10;# build the ones for device.&#10;cd $PROJECT_DIR/CLibWally/libwally-core&#10;make clean&#10;rm -rf &quot;$(pwd)/build&quot;&#10;">
<EnvironmentBuildable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FE9CD3B0229C397900345DFA"
BuildableName = "LibWally.framework"
BlueprintName = "LibWally"
ReferencedContainer = "container:LibWally.xcodeproj">
</BuildableReference>
</EnvironmentBuildable>
</ActionContent>
</ExecutionAction>
</PreActions>
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
Expand Down
7 changes: 0 additions & 7 deletions build-libwally-swift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ xcodebuild archive -scheme LibWally \
-archivePath ${BIN_OUTPUT_DIRECTORY}/LibWally-Sim \
SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES

# We want to clean the libwally-core static build files for simulator so we can
# build the ones for device.
pushd CLibWally/libwally-core
make clean
rm -rf $(pwd)/build
popd

xcodebuild archive -scheme LibWally \
-destination "generic/platform=iOS" \
-archivePath ${BIN_OUTPUT_DIRECTORY}/LibWally-iOS \
Expand Down

0 comments on commit 645cde1

Please sign in to comment.