提交 1d096cd9 编写于 作者: C Chinmay Garde

Merge pull request #2158 from chinmaygarde/master

Require the user to specify the DART_SDK_PATH manually in Xcode
......@@ -28,13 +28,8 @@ PackageProject() {
exit -1
fi
# Check if pub exists
RunCommand which pub
if [[ $? -ne 0 ]]; then
EchoError "Could not find 'pub'."
EchoError "Did you install the Dart SDK?"
exit -1
fi
# The 'flutter' command assumes the 'dart' binary is in $PATH
RunCommand export PATH=${PATH}:${DART_SDK_PATH}/bin
AssertExists $1
local project_path=$1
......
......@@ -334,7 +334,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "set -e\npushd ${FLUTTER_APPLICATION_PATH}\npub get\npopd\n";
shellScript = "set -e\npushd ${FLUTTER_APPLICATION_PATH}\n${DART_SDK_PATH}/bin/pub get\npopd\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
......@@ -476,6 +476,7 @@
9E07CF8F1BE7F4D200BCD8DE /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
DART_SDK_PATH = dart/sdk/path;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
......@@ -495,6 +496,7 @@
9E07CF901BE7F4D200BCD8DE /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
DART_SDK_PATH = dart/sdk/path;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册