From 6a8898573cc4b3fbdec48e147f5b7948ed0d06cd Mon Sep 17 00:00:00 2001 From: mustiikhalil <26250654+mustiikhalil@users.noreply.github.com> Date: Sat, 5 Oct 2024 00:17:05 +0200 Subject: [PATCH] [Swift] Updates CocoaPods author info & fixes bug with versioning not working as expected (#8328) * Fix versioning not being able to parse vX.Y.Z and updates author * Adds BUILD_LIBRARY_FOR_DISTRIBUTION flag for cocoapods --- FlatBuffers.podspec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/FlatBuffers.podspec b/FlatBuffers.podspec index 2aa69e2a0..83c86e16a 100644 --- a/FlatBuffers.podspec +++ b/FlatBuffers.podspec @@ -10,12 +10,15 @@ Pod::Spec.new do |s| s.homepage = 'https://github.com/google/flatbuffers' s.license = { :type => 'Apache2.0', :file => 'LICENSE' } - s.author = { 'mustii' => 'mustii@mmk.one' } - s.source = { :git => 'https://github.com/google/flatbuffers.git', :tag => s.version.to_s, :submodules => true } + s.author = { 'mustii' => 'me@mustiikhalil.se' } + s.source = { :git => 'https://github.com/google/flatbuffers.git', :tag => "v" + s.version.to_s, :submodules => true } s.ios.deployment_target = '11.0' s.osx.deployment_target = '10.14' s.swift_version = '5.0' s.source_files = 'swift/Sources/Flatbuffers/*.swift' + s.pod_target_xcconfig = { + 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' + } end