build: publish iOS device arm64 only
This commit is contained in:
@@ -150,10 +150,6 @@ apple_xcframework(
|
||||
],
|
||||
infoplists = ["info_plist"],
|
||||
ios = {
|
||||
"simulator": [
|
||||
"x86_64",
|
||||
"arm64",
|
||||
],
|
||||
"device": ["arm64"],
|
||||
},
|
||||
minimum_os_versions = {"ios": "12.0"},
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
- CMake 3.31.6
|
||||
- Android renderer:OpenGL
|
||||
- iOS renderer:Metal
|
||||
- iOS binary build:bazel build --//:renderer=metal //platform/ios:MapLibre.dynamic
|
||||
- iOS binary build:bazel build --//:renderer=metal //platform/ios:MapLibre.dynamic(仅真机 ios-arm64,不包含 Simulator slice)
|
||||
|
||||
## 发布目标
|
||||
|
||||
|
||||
@@ -102,6 +102,10 @@ build_release() {
|
||||
(cd "$ROOT" && bazel build --//:renderer=metal //platform/ios:MapLibre.dynamic)
|
||||
IOS_SOURCE="$ROOT/bazel-out/darwin_x86_64-fastbuild/bin/platform/ios/$IOS_ZIP_NAME"
|
||||
[[ -f "$IOS_SOURCE" ]] || die "iOS XCFramework zip missing"
|
||||
unzip -Z1 "$IOS_SOURCE" | grep -Fq "/ios-arm64/" || die "iOS XCFramework missing ios-arm64 device slice"
|
||||
if unzip -Z1 "$IOS_SOURCE" | grep -Eiq "simulator|ios-arm64_x86_64"; then
|
||||
die "iOS XCFramework unexpectedly contains simulator slice"
|
||||
fi
|
||||
cp "$IOS_SOURCE" "$ARTIFACT_DIR/$IOS_ZIP_NAME"
|
||||
|
||||
note "packing RN package"
|
||||
|
||||
Reference in New Issue
Block a user