Hi, I am creating a spike for our company, trying to integrate "bitmovin-player-react-native": "0.14.1",
. I am following the integration guide for ReactNative. pod install --repo-update
finishes successfully, but the build in xcode fails with the following errors, can you help to make this work please?
Here is the Podfile:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
plugin 'cocoapods-patch'
source 'https://github.com/react-native-tvos/react-native-tvos-podspecs.git'
source 'https://cdn.cocoapods.org/'
# Bitmovin pods source url
source 'https://github.com/bitmovin/cocoapod-specs.git'
source 'https://cdn.cocoapods.org/'
install! 'cocoapods', :deterministic_uuids => false
production = ENV["PRODUCTION"] == "1"
target '<NotRelevantHere>' do
platform :ios, '14.0'
config = use_native_modules!
# Flags change depending on the env values.
flags = get_default_flags()
# Used by Kaltura player
pod 'ObjcExceptionBridging', :modular_headers => true
pod 'PlayKitYoubora'
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:production => production,
:hermes_enabled => false,
:fabric_enabled => flags[:fabric_enabled],
:flipper_configuration => FlipperConfiguration.enabled,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
plugin 'cocoapods-patch'
target '<NotRelevantHere>' do
inherit! :complete
# Pods for testing
end
end
target '<NotRelevantHere>' do
platform :tvos, '14.0'
config = use_native_modules!
# Flags change depending on the env values.
flags = get_default_flags()
# Used by Kaltura player
pod 'ObjcExceptionBridging', :modular_headers => true
pod 'PlayKitYoubora'
use_react_native!(
:path => config[:reactNativePath],
# Hermes not yet available on tvOS
:hermes_enabled => false,
:fabric_enabled => flags[:fabric_enabled],
# An abosolute path to your application root.
:app_path => "#{Dir.pwd}/.."
)
plugin 'cocoapods-patch'
target '<NotRelevantHere>' do
inherit! :complete
# Pods for testing
end
end
post_install do |installer|
installer.pods_project.targets.each do |t|
t.build_configurations.each do |config|
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
plugin 'cocoapods-patch'
end
end
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
# This is necessary for Xcode 14, because it signs resource bundles by default when building for devices
# No need when using RN0.70.3** and above
targetsToFix = ["React-Core-tvOS-AccessibilityResources"];
installer.target_installation_results.pod_target_installation_results
.each do |pod_name, target_installation_result|
target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
if targetsToFix.include? resource_bundle_target.name
resource_bundle_target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
end