Skip to content

Commit 9291dac

Browse files
fredyshoxfreak4pc
authored andcommitted
XCConfig Carthage integration
1 parent 5b01314 commit 9291dac

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Carthage.xcconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// xconfig for Carthage builds using autogenerated xcodeproj from SwiftPM
2+
3+
PRODUCT_BUNDLE_IDENTIFIER = com.CombineCommunity.$(PRODUCT_NAME)
4+
CURRENT_PROJECT_VERSION = 1

scripts/carthage-archive.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,22 @@ fi
1717

1818
REQUIRED_SWIFT_TOOLING="5.1.0"
1919
TOOLS_VERSION=`swift package tools-version`
20+
XCODE_XCCONFIG_FILE=$(pwd)/Carthage.xcconfig
21+
22+
if [ ! -f ${XCODE_XCCONFIG_FILE} ]; then
23+
echo 'Carthage.xcconfig does not exist'
24+
exit 1
25+
fi
2026

2127
if [ ! "$(printf '%s\n' "$REQUIRED_SWIFT_TOOLING" "$TOOLS_VERSION" | sort -V | head -n1)" = "$REQUIRED_SWIFT_TOOLING" ]; then
2228
echo 'You must have Swift Package Manager 5.1.0 or later.'
2329
exit 1
2430
fi
2531

2632
swift package generate-xcodeproj
27-
echo "Fixing bundle identifier and bundle version in generated xcodeproj..."
28-
ruby Helpers/fix_project.rb RxCombine.xcodeproj
33+
export XCODE_XCCONFIG_FILE
2934
carthage build --no-skip-current
3035
carthage archive
36+
unset XCODE_XCCONFIG_FILE
3137

3238
echo "Upload RxCombine.framework.zip to the latest release"

0 commit comments

Comments
 (0)