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(ios): correctly link frameworks required #535

Merged
merged 8 commits into from
Mar 4, 2025
6 changes: 5 additions & 1 deletion react-native-voice.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'json'


package = JSON.parse(File.read(File.join(__dir__, "package.json")))
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'

Expand All @@ -14,8 +13,13 @@ Pod::Spec.new do |s|
s.homepage = package['homepage']
s.platform = :ios, "9.0"

# Link with Speech framework
s.frameworks = ['Speech']

s.source = { :git => "https://github.com/react-native-voice/voice.git" }
s.source_files = "ios/**/*.{h,m,mm,cpp}"



# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
Expand Down