Skip to content

Commit

Permalink
Merge pull request #4 from thisisthekap/br_12_fix_sharpie_scripts_for…
Browse files Browse the repository at this point in the history
…_xcode_12

fixed sharpie scripts for xcode 12
  • Loading branch information
thisisthekap authored Nov 3, 2020
2 parents 1ae3fe9 + 490de39 commit a9f4101
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file modified Xamarin.RevenueCat.iOS/nativelib/libPurchases.a
Binary file not shown.
6 changes: 3 additions & 3 deletions sharpie/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ TARGET=Purchases

all: lib$(TARGET).a

lib$(TARGET)-i386.a:
$(XBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphonesimulator -configuration Release clean build
lib$(TARGET)-x86_64.a:
$(XBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphonesimulator -arch x86_64 -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphonesimulator/lib$(TARGET).a $@

lib$(TARGET)-arm64.a:
$(XBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphoneos -arch arm64 -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphoneos/lib$(TARGET).a $@

lib$(TARGET).a: lib$(TARGET)-i386.a lib$(TARGET)-arm64.a
lib$(TARGET).a: lib$(TARGET)-x86_64.a lib$(TARGET)-arm64.a
xcrun -sdk iphoneos lipo -create -output $@ $^

clean:
Expand Down
2 changes: 1 addition & 1 deletion sharpie/create-sharpie-files.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
revenueCatVersion=$(cat ./revenuecat-version.txt)
targetSdk=iphoneos13.7
targetSdk=iphoneos14.1

git clone https://github.com/RevenueCat/purchases-ios.git
cd purchases-ios
Expand Down
2 changes: 1 addition & 1 deletion sharpie/finish-library-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ make

mv libPurchases.a ../Xamarin.RevenueCat.iOS/nativelib/libPurchases.a

rm libPurchases-arm64.a libPurchases-i386.a
rm libPurchases-arm64.a libPurchases-x86_64.a

rm -rf Purchases purchases-ios

0 comments on commit a9f4101

Please sign in to comment.