Skip to content

Commit

Permalink
build-protobuf.sh: fix for Xcode 15.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashdnazg committed Dec 15, 2023
1 parent f2723db commit 3df4322
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build-protobuf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ xcodebuild archive \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
SKIP_INSTALL=NO \
ARCHS="arm64" \
MACH_O_TYPE=staticlib
MACH_O_TYPE=staticlib \
CLANG_WARN_STRICT_PROTOTYPES=NO \
IPHONEOS_DEPLOYMENT_TARGET=15.0

mkdir -p ${LIBDIR}/${ARCH_PREFIX}/Protobuf.framework/Headers
cp ${LIBDIR}/${ARCH_PREFIX}/ProtocolBuffers.xcarchive/Products/usr/local/lib/libProtocolBuffers.a ${LIBDIR}/${ARCH_PREFIX}/Protobuf.framework/Protobuf
Expand All @@ -253,7 +255,9 @@ xcodebuild archive \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
SKIP_INSTALL=NO \
ARCHS="arm64 x86_64" \
MACH_O_TYPE=staticlib
MACH_O_TYPE=staticlib \
CLANG_WARN_STRICT_PROTOTYPES=NO \
IPHONEOS_DEPLOYMENT_TARGET=15.0

mkdir -p ${LIBDIR}/${ARCH_PREFIX}/Protobuf.framework/Headers
cp ${LIBDIR}/${ARCH_PREFIX}/ProtocolBuffers.xcarchive/Products/usr/local/lib/libProtocolBuffers.a ${LIBDIR}/${ARCH_PREFIX}/Protobuf.framework/Protobuf
Expand Down

0 comments on commit 3df4322

Please sign in to comment.