Skip to content

Commit

Permalink
fix: Fixed a problem with Xode versioning.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Jan 9, 2023
1 parent 6e4d957 commit d4a4c6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/katana_cli/lib/src/xcode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ class XCode {
_rawData = PBXFileReference._save(_rawData, _pbxFileReference);
_rawData = PBXBuildFile._save(_rawData, _pbxBuildFile);
_rawData = PBXBuildConfiguration._save(_rawData, _pbxBuildConfiguration);
_rawData = _rawData.replaceFirstMapped(
RegExp(r"objectVersion = ([0-9]+);"),
(m) => "objectVersion = ${(int.tryParse(m.group(1) ?? "") ?? 0) + 1};",
);
// _rawData = _rawData.replaceFirstMapped(
// RegExp(r"objectVersion = ([0-9]+);"),
// (m) => "objectVersion = ${(int.tryParse(m.group(1) ?? "") ?? 0) + 1};",
// );
final pbx = File("ios/Runner.xcodeproj/project.pbxproj");
await pbx.writeAsString(_rawData);
}
Expand Down

0 comments on commit d4a4c6b

Please sign in to comment.