forked from adobe/aepsdk-compatibility-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
19 lines (16 loc) · 996 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
WORKSPACE_NAME = ACPCore.xcworkspace
SIMULATOR_ARCHIVE_PATH = ./build/ios_simulator.xcarchive/Products/Library/Frameworks/
IOS_ARCHIVE_PATH = ./build/ios.xcarchive/Products/Library/Frameworks/
# targets
make-libs:
pod install
git clone [email protected]:adobe/aepsdk-core-ios.git
cd aepsdk-core-ios && make archive
cp -r aepsdk-core-ios/build ./
xcodebuild -workspace $(WORKSPACE_NAME) archive -scheme ACPCore -archivePath "./build/ios.xcarchive" -sdk iphoneos -destination="iOS" SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcodebuild -workspace $(WORKSPACE_NAME) archive -scheme ACPCore -archivePath "./build/ios_simulator.xcarchive" -sdk iphonesimulator -destination="iOS Simulator" SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcodebuild -create-xcframework -framework $(SIMULATOR_ARCHIVE_PATH)ACPCore.framework -framework $(IOS_ARCHIVE_PATH)ACPCOre.framework -output ./build/ACPCore.xcframework
rm -rf aepsdk-core-ios/
clean:
rm -rf ./build
rm -rf aepsdk-core-ios/