Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jaemyeong committed Dec 14, 2021
0 parents commit 6847708
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// swift-tools-version:5.5

import PackageDescription

let package = Package(
name: "NMapsMap",
platforms: [
.iOS(.v13)
],
products: [
.library(
name: "NMapsMap",
targets: [
"NMapsMap"
]
)
],
targets: [
.binaryTarget(
name: "NMapsMap",
url: "https://github.com/jaemyeong/NMapsMap-SPM/releases/download/3.14.0/NMapsMap.xcframework.zip",
checksum: "0f552f630bab0d144ea30621f1f3b4265441c2a2abd2d595b063fcd2b04d5c31"
)
]
)
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# NMapsMap

[NMapsMap](https://github.com/navermaps/NMapsMap) Swift Package Manager 지원 버전
34 changes: 34 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/sh

set -e

VERSION="release/3.14.0"

git clone --depth=1 --branch="${VERSION}" https://github.com/navermaps/NMapsMap.git

mkdir -p iphonesimulator

cp -R NMapsMap/framework/NMapsMap.framework iphonesimulator/

xcrun lipo -remove armv7 -remove arm64 iphonesimulator/NMapsMap.framework/NMapsMap -o iphonesimulator/NMapsMap.framework/NMapsMap

mkdir -p iphoneos

cp -R NMapsMap/framework/NMapsMap.framework iphoneos/

xcrun lipo -remove x86_64 -remove i386 iphoneos/NMapsMap.framework/NMapsMap -o iphoneos/NMapsMap.framework/NMapsMap

xcodebuild -create-xcframework \
-framework iphonesimulator/NMapsMap.framework \
-framework iphoneos/NMapsMap.framework \
-output NMapsMap.xcframework

rm -rf NMapsMap

rm -rf iphonesimulator

rm -rf iphoneos

zip -r NMapsMap.xcframework.zip NMapsMap.xcframework

rm -rf NMapsMap.xcframework

0 comments on commit 6847708

Please sign in to comment.