Skip to content

Commit

Permalink
fix ios build error
Browse files Browse the repository at this point in the history
  • Loading branch information
boyan01 committed Sep 28, 2020
1 parent 518b54f commit 4b026ab
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c

COCOAPODS: 1.9.3
COCOAPODS: 1.10.0.beta.2
11 changes: 4 additions & 7 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,12 @@
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${PODS_ROOT}/../Flutter/Flutter.framework",
"${BUILT_PRODUCTS_DIR}/system_clock/system_clock.framework",
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/system_clock.framework",
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down
2 changes: 1 addition & 1 deletion example/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: d8ba9b3e9e93c62c74a660b46c6fcb09f03991a7

COCOAPODS: 1.9.3
COCOAPODS: 1.10.0.beta.2
4 changes: 2 additions & 2 deletions example/macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.5.0"
version: "0.6.0"
term_glyph:
dependency: transitive
description:
Expand Down
Empty file.
Empty file.
Empty file modified publish.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: system_clock
description: Flutter timekeeping facilities. Powered by ffi
version: 0.5.0
version: 0.6.0
author: yangbinyhhbn@gmail.com
homepage: https://github.com/boyan01/system_clock

Expand Down
8 changes: 7 additions & 1 deletion tools/bin/publish.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ extension on ProcessResult {
}

Future<void> _publish(Directory dir) async {
final process = await Process.start("pwsh", ["-Command", "flutter", "pub", "publish"], workingDirectory: dir.path);
Process process;
if (Platform.isWindows) {
process = await Process.start("pwsh", ["-Command", "flutter", "pub", "publish"], workingDirectory: dir.path);
} else {
process = await Process.start("flutter", ["pub", "publish"], workingDirectory: dir.path);
}

process.stdin.addStream(stdin);
stdout.addStream(process.stdout);
stderr.addStream(process.stderr);
Expand Down

0 comments on commit 4b026ab

Please sign in to comment.