Мое приложение не могло быть построено после добавления пользовательской платформы. Пользовательская платформа должна будет использовать платформу iOSOTARTK и iOSDULibrary
однако, когда я обновил подфайл и запустил установку модуля, он вернет следующую ошибку
Library not loaded: @rpath/ZIPFoundation.framework/ZIPFoundation
Кроме того, у меня есть специальная платформа, которая будет сохраняться в [project] > [framework] > [XXX.framework]
Может ли какой-либо метод для React-native позволяет одновременно использовать платформу xcode Cocoapods и платформу Flipper?
podfile
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '11.0'
install! 'cocoapods', :deterministic_uuids => false
target 'XXXXXX' do
config = use_native_modules!
# Flags change depending on the env values.
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
#target 'XXXXXX' do
# inherit! :complete
# Pods for testing
#end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
use_flipper!()
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
# Add these lines for Xcode 14 builds
installer.pods_project.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
# End of added lines
end
# react-native-permissions permission handlers
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Camera', :path => "#{permissions_path}/Camera/Permission-Camera.podspec"
pod 'AZSClient'
pod 'iOSOTARTK'
pod 'iOSDFULibrary'
pod 'ZIPFoundation'
pod 'Zip', '~> 2.1'
end
Подробнее здесь: https://stackoverflow.com/questions/782 ... t-the-same