Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build error for 4.9 #14

Merged
merged 1 commit into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ on:

jobs:
build:
runs-on: macOS-latest
runs-on: macos-13

steps:
- name: Prepare Xcode
run: |
sudo xcode-select -s /Applications/Xcode_15.1.app/Contents/Developer

- name: actions-setup-cmake
uses: jwlawson/[email protected]
with:
cmake-version: 3.24
cmake-version: 3.28

- name: Checkout
uses: actions/checkout@v3
Expand All @@ -34,12 +38,14 @@ jobs:
- name: Build xcframework
working-directory: opencv
env:
IPHONEOS_DEPLOYMENT_TARGET: 11.0
IPHONEOS_DEPLOYMENT_TARGET: 12.0
MACOSX_DEPLOYMENT_TARGET: 10.13
run: |
git apply $GITHUB_WORKSPACE/opencv-spm/opencv.patch
pip3 install pathlib
python3 platforms/apple/build_xcframework.py --iphoneos_archs=arm64 --disable-bitcode -o build
python3 platforms/apple/build_xcframework.py \
--iphoneos_archs=arm64 \
--disable-bitcode -o build

- name: Zip artifact
working-directory: opencv
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let checksum = "ce65a8379a4d7428e2c09a8658110015d8f5ded79c15e3aa3b512f14bc85b7dd
let package = Package(
name: "OpenCV",
platforms: [
.macOS(.v10_13), .iOS(.v11), .macCatalyst(.v13)
.macOS(.v10_13), .iOS(.v12), .macCatalyst(.v13)
],
products: [
.library(
Expand Down
Loading