mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #2158 from chinmaygarde/master
Require the user to specify the DART_SDK_PATH manually in Xcode
This commit is contained in:
commit
1d096cd954
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user