We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6195eff commit e8f38f6Copy full SHA for e8f38f6
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "xcodeproj"
3
-version = "0.2.9"
+version = "0.2.10"
4
edition = "2021"
5
description = "xcodeproj reader and parser."
6
license = "MIT OR Apache-2.0"
src/lib.rs
@@ -55,4 +55,15 @@ impl XCodeProject {
55
pub fn pbxproj(&self) -> &PBXRootObject {
56
&self.pbxproj
57
}
58
+
59
+ /// Get build file names with all targets
60
+ pub fn build_file_names(&self) -> Vec<String> {
61
+ self.build_files()
62
+ .into_iter()
63
+ .flat_map(|f| {
64
+ let file = f.file.as_ref()?;
65
+ Some(file.path.or(file.name)?.to_string())
66
+ })
67
+ .collect::<Vec<_>>()
68
+ }
69
0 commit comments