Skip to content

Commit

Permalink
fix(ios): correctly link frameworks required (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
xgtz421 authored Mar 4, 2025
1 parent 6ae9c96 commit 2a7d27a
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 2a7d27a

Please sign in to comment.