require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Pod::Spec.new do |s| s.name = "react-native-multi-bundle" s.version = package["version"] s.summary = package["description"] s.description = <<-DESC React Native 多 Bundle 系统 - 支持模块按需加载和独立更新。 提供 iOS 原生模块 ModuleLoader,用于在同一个 JS 运行时中动态加载子 bundle。 DESC s.homepage = "https://github.com/AntonyMei/react-native-multiple-bundle-demo" s.license = { :type => package["license"], :file => "LICENSE" } s.author = package["author"] s.platforms = { :ios => "13.0" } s.source = { :git => "https://github.com/AntonyMei/react-native-multiple-bundle-demo.git", :tag => "v#{s.version}" } s.source_files = "ios/ModuleLoader/**/*.{h,m,mm}" # 编译选项 s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++17", "DEFINES_MODULE" => "YES" } # 依赖 React Native Core s.dependency "React-Core" end