Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 92d7ce2

Browse files
committed
Fix a bug where creating XCFramework failed if dSYM file did not exist
1 parent f6e7e22 commit 92d7ce2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
- Fix a bug where target names were not always resolved correctly
1010
[#1](https://github.com/ge-org/multiplatform-swiftpackage/issues/1)
1111

12+
- Fix a bug where the creation of the XCFramework failed if dSYM files did not exist
13+
1214
## [1.0.1]
1315
### Added
1416
- Add all architectures of a platform at once

src/main/kotlin/com/chromaticnoise/multiplatformswiftpackage/task/CreateXCFrameworkTask.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ internal fun Project.registerCreateXCFrameworkTask() = tasks.register("createXCF
2727
frameworks.forEach { framework ->
2828
add("-framework")
2929
add(framework.outputFile.path)
30-
add("-debug-symbols")
31-
add(File(framework.outputFile.parent, "${project.name}.framework.dSYM").path)
30+
31+
val dsymFile = File(framework.outputFile.parent, "${project.name}.framework.dSYM")
32+
if (dsymFile.exists()) {
33+
add("-debug-symbols")
34+
add(dsymFile.path)
35+
}
3236
}
3337
})
3438

0 commit comments

Comments
 (0)