Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
9d291084
Unverified
Commit
9d291084
authored
Jan 24, 2020
by
Jenn Magder
Committed by
GitHub
Jan 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove App.framework copy during build ios-framework (#49321)
parent
7915e58f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
build_ios_framework.dart
...s/flutter_tools/lib/src/commands/build_ios_framework.dart
+4
-11
No files found.
packages/flutter_tools/lib/src/commands/build_ios_framework.dart
View file @
9d291084
...
...
@@ -326,17 +326,17 @@ end
Future<void> _produceAppFramework(BuildMode mode, Directory iPhoneBuildOutput, Directory simulatorBuildOutput, Directory modeDirectory) async {
const String appFrameworkName = '
App
.
framework
';
final Directory destinationAppFrameworkDirectory = modeDirectory.childDirectory(appFrameworkName);
destinationAppFrameworkDirectory.createSync(recursive: true);
if (mode == BuildMode.debug) {
final Status status = globals.logger.startProgress('
├─
Adding
placeholder
App
.
framework
for
debug
...
', timeout: timeoutConfiguration.fastOperation);
try {
destinationAppFrameworkDirectory.createSync(recursive: true);
await _produceStubAppFrameworkIfNeeded(mode, iPhoneBuildOutput, simulatorBuildOutput, destinationAppFrameworkDirectory);
} finally {
status.stop();
}
} else {
await _produceAotAppFrameworkIfNeeded(mode,
iPhoneBuildOutput, destinationAppFramework
Directory);
await _produceAotAppFrameworkIfNeeded(mode,
mode
Directory);
}
final File sourceInfoPlist = _project.ios.hostAppRoot.childDirectory('
Flutter
').childFile('
AppFrameworkInfo
.
plist
');
...
...
@@ -398,8 +398,7 @@ end
Future<void> _produceAotAppFrameworkIfNeeded(
BuildMode mode,
Directory iPhoneBuildOutput,
Directory destinationAppFrameworkDirectory,
Directory destinationDirectory,
) async {
if (mode == BuildMode.debug) {
return;
...
...
@@ -411,7 +410,7 @@ end
try {
await aotBuilder.build(
platform: TargetPlatform.ios,
outputPath:
iPhoneBuildOutput
.path,
outputPath:
destinationDirectory
.path,
buildMode: mode,
// Relative paths show noise in the compiler https://github.com/dart-lang/sdk/issues/37978.
mainDartFile: globals.fs.path.absolute(targetFile),
...
...
@@ -421,12 +420,6 @@ end
iosBuildArchs: <DarwinArch>[DarwinArch.armv7, DarwinArch.arm64],
dartDefines: dartDefines,
);
const String appFrameworkName = '
App
.
framework
';
fsUtils.copyDirectorySync(
iPhoneBuildOutput.childDirectory(appFrameworkName),
destinationAppFrameworkDirectory,
);
} finally {
status.stop();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment