File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
ReleaseTooling/Sources/ZipBuilder Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -709,13 +709,16 @@ struct FrameworkBuilder {
709
709
. appendingPathComponent ( frameworkBuildName ( name) + " .xcframework " )
710
710
711
711
// The arguments for the frameworks need to be separated.
712
- let frameworkArgs = frameworks. flatMap {
713
- [
714
- " -framework " ,
712
+ let frameworkArgs = frameworks. flatMap { frameworkPath in
713
+ do {
715
714
// Xcode 15.0-15.2: Return the canonical path to work around issue
716
715
// https://forums.swift.org/t/67439
717
- try ! $0. resourceValues ( forKeys: [ . canonicalPathKey] ) . canonicalPath!,
718
- ]
716
+ let frameworkCanonicalPath = try frameworkPath. resourceValues ( forKeys: [ . canonicalPathKey] )
717
+ . canonicalPath!
718
+ return [ " -framework " , frameworkCanonicalPath]
719
+ } catch {
720
+ fatalError ( " Failed to get canonical path for \( frameworkPath) : \( error) " )
721
+ }
719
722
}
720
723
721
724
let outputArgs = [ " -output " , xcframework. path]
You can’t perform that action at this time.
0 commit comments