Skip to content

Commit

Permalink
fix: Fixed a bug in addFramework.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Jun 23, 2023
1 parent 348fafa commit 00d3192
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/katana_cli/lib/src/xcode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ class XCode {
return;
}
final id = generateId();
final fileId = generateId();
pbxFileReference.add(
PBXFileReference(
id: id,
name: frameworkName,
id: fileId,
name: "$frameworkName.framework",
comment: "$frameworkName.framework",
path: "System/Library/Frameworks/$frameworkName.framework",
sourceTree: "SDKROOT",
Expand All @@ -144,7 +145,7 @@ class XCode {
.any((e) => e.comment == "$frameworkName.framework")) {
frameworkGroup.children.add(
PBXGroupChild(
id: id,
id: fileId,
comment: "$frameworkName.framework",
),
);
Expand All @@ -156,7 +157,7 @@ class XCode {
id: id,
fileName: "$frameworkName.framework",
fileDir: "Frameworks",
fileRef: id,
fileRef: fileId,
),
);
}
Expand Down

0 comments on commit 00d3192

Please sign in to comment.