Skip to content

Commit

Permalink
fixes #12 replace "-" -> "_"
Browse files Browse the repository at this point in the history
  • Loading branch information
luca992 committed Nov 29, 2023
1 parent 5aa43d8 commit b7a3467
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ internal fun removeMonoFrameworksAndAddUniversalFrameworkIfNeeded(
outputFrameworks.removeIf { mono.outputFile == it.outputFile }
}
val frameworkName = monoFrameworks[0].name
val frameworkNameLegalChars = frameworkName.value.replace("-", "_")
val buildType = if (monoFrameworks[0].linkTask.name.contains("Release")) "release" else "debug"
val destinationDir = buildDir.resolve("bin/${binFolderPrefix}Universal/${buildType}Framework")
val outputFile = AppleFrameworkOutputFile(File(destinationDir, "${frameworkName.value}.framework"))
val outputFile = AppleFrameworkOutputFile(File(destinationDir, "${frameworkNameLegalChars}.framework"))
outputFrameworks.add(
AppleFramework(
outputFile,
Expand Down

0 comments on commit b7a3467

Please sign in to comment.