Skip to content

Update protobuf-3.6.1 (CPP) build script to support M1 macs, Xcode 14 #1

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
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
59 changes: 8 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,61 +9,18 @@ Build the runtime Google Protobuf Buffers v3.6.1 C++ libraries (libprotoc.a, lib
* macOS (arm64)
* iOS Device (arm64)
* iOS Simulator (x86_64)
* iOS Simulator (arm64)
* WatchOS device (armv7k)
* WatchOS device (arm64_32)
* WatchOS device (arm64)
* WatchOS simulator (i386)
* WatchOS simulator (x86_64)
* iOS Fat Mach-O
* WatchOS Fat Mach-O
* WatchOS simulator (arm64)
* iOS Simulator Fat Mach-O
* iOS arm64 Mach-O
* WatchOS Simulator Fat Mach-O
* WatchOS device Fat Mach-O

Just clone this repo and run `./build-protofbuf.sh`

<!--`universal$ otool -vf ./libprotobuf.a

Fat headers
fat_magic FAT_MAGIC
nfat_arch 5

architecture i386
cputype CPU_TYPE_I386
cpusubtype CPU_SUBTYPE_I386_ALL
capabilities 0x0
offset 108
size 3649264
align 2^2 (4)

architecture arm64_32
cputype CPU_TYPE_ARM64_32
cpusubtype CPU_SUBTYPE_ARM64_V8
capabilities 0x0
offset 3649372
size 10286304
align 2^2 (4)

architecture armv7k
cputype CPU_TYPE_ARM
cpusubtype CPU_SUBTYPE_ARM_V7K
capabilities 0x0
offset 13935676
size 9941128
align 2^2 (4)

architecture x86_64
cputype CPU_TYPE_X86_64
cpusubtype CPU_SUBTYPE_X86_64_ALL
capabilities 0x0
offset 23876808
size 4018064
align 2^3 (8)

architecture arm64
cputype CPU_TYPE_ARM64
cpusubtype CPU_SUBTYPE_ARM64_ALL
capabilities 0x0
offset 27894872
size 10477928
align 2^3 (8)

Archive : ./libprotobuf.a`-->


![Screen shot](screenshot.jpg)
Loading