diff --git a/crates/ubrn_cli/src/codegen/mod.rs b/crates/ubrn_cli/src/codegen/mod.rs index f9bd59f2..4071e183 100644 --- a/crates/ubrn_cli/src/codegen/mod.rs +++ b/crates/ubrn_cli/src/codegen/mod.rs @@ -327,7 +327,7 @@ mod files { templated_file!(PodspecTemplate, "module-template.podspec"); impl RenderedFile for PodspecTemplate { fn path(&self, project_root: &Utf8Path) -> Utf8PathBuf { - let name = self.config.project.cpp_filename(); + let name = self.config.project.podspec_filename(); let filename = format!("{name}.podspec"); project_root.join(filename) } diff --git a/crates/ubrn_cli/src/config/mod.rs b/crates/ubrn_cli/src/config/mod.rs index e874a14c..4e238117 100644 --- a/crates/ubrn_cli/src/config/mod.rs +++ b/crates/ubrn_cli/src/config/mod.rs @@ -127,6 +127,10 @@ impl ProjectConfig { self.raw_name().to_kebab_case() } + pub(crate) fn podspec_filename(&self) -> String { + self.cpp_filename() + } + pub(crate) fn codegen_filename(&self) -> String { format!("Native{}", self.spec_name()) }