Skip to content

Commit 746b1d8

Browse files
build: support newer c++ versions
1 parent 92a503a commit 746b1d8

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Podfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ post_install do |installer|
106106
end
107107
end
108108
end
109+
110+
# Fix gRPC-Core template syntax issue with newer Xcode
111+
grpc_file = 'Pods/gRPC-Core/src/core/lib/promise/detail/basic_seq.h'
112+
if File.exist?(grpc_file)
113+
# Make file writable before modifying
114+
File.chmod(0644, grpc_file)
115+
text = File.read(grpc_file)
116+
new_contents = text.gsub(/Traits::template CallSeqFactory/, 'Traits::CallSeqFactory')
117+
File.write(grpc_file, new_contents)
118+
end
109119

110120
# update info about current DashSync version
111121
# the command runs in the background after 1 sec, when `pod install` updates Podfile.lock

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,6 @@ SPEC CHECKSUMS:
876876
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
877877
UIViewController-KeyboardAdditions: a691dc7e63a49854d341455a778ee8497dfc4662
878878

879-
PODFILE CHECKSUM: c34642fc313818ed36dfe39316e79fbe54e36863
879+
PODFILE CHECKSUM: da5ccce4236e1a2a19ad094c1ab26f7b5b9e8737
880880

881881
COCOAPODS: 1.15.2

0 commit comments

Comments
 (0)