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
bfbb3476
Unverified
Commit
bfbb3476
authored
Feb 11, 2020
by
Jenn Magder
Committed by
GitHub
Feb 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use BUILD_LIBRARY_FOR_DISTRIBUTION build setting for generating add-to-app frameworks (#50536)
parent
0a38f29c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
16 deletions
+29
-16
build_ios_framework_module_test.dart
dev/devicelab/bin/tasks/build_ios_framework_module_test.dart
+25
-1
build_ios_framework.dart
...s/flutter_tools/lib/src/commands/build_ios_framework.dart
+4
-3
Podfile.copy.tmpl
...module/ios/host_app_ephemeral_cocoapods/Podfile.copy.tmpl
+0
-12
No files found.
dev/devicelab/bin/tasks/build_ios_framework_module_test.dart
View file @
bfbb3476
...
...
@@ -218,7 +218,7 @@ Future<void> main() async {
);
}
section
(
"Check all modes' have plugin dylib"
);
section
(
'Check all modes have plugins'
);
for
(
final
String
mode
in
<
String
>[
'Debug'
,
'Profile'
,
'Release'
])
{
final
String
pluginFrameworkPath
=
path
.
join
(
...
...
@@ -238,6 +238,17 @@ Future<void> main() async {
'device_info.framework'
,
'device_info'
,
));
checkFileExists
(
path
.
join
(
outputPath
,
mode
,
'device_info.xcframework'
,
'ios-armv7_arm64'
,
'device_info.framework'
,
'Headers'
,
'DeviceInfoPlugin.h'
,
));
final
String
simulatorFrameworkPath
=
path
.
join
(
outputPath
,
mode
,
...
...
@@ -246,10 +257,23 @@ Future<void> main() async {
'device_info.framework'
,
'device_info'
,
);
final
String
simulatorFrameworkHeaderPath
=
path
.
join
(
outputPath
,
mode
,
'device_info.xcframework'
,
'ios-x86_64-simulator'
,
'device_info.framework'
,
'Headers'
,
'DeviceInfoPlugin.h'
,
);
if
(
mode
==
'Debug'
)
{
checkFileExists
(
simulatorFrameworkPath
);
checkFileExists
(
simulatorFrameworkHeaderPath
);
}
else
{
checkFileNotExists
(
simulatorFrameworkPath
);
checkFileNotExists
(
simulatorFrameworkHeaderPath
);
}
}
...
...
packages/flutter_tools/lib/src/commands/build_ios_framework.dart
View file @
bfbb3476
...
...
@@ -475,7 +475,8 @@ end
'
-
destination
generic
/
platform
=
iOS
',
'
SYMROOT
=
$
{
iPhoneBuildOutput
.
path
}
',
'
BITCODE_GENERATION_MODE
=
$bitcodeGenerationMode
',
'
ONLY_ACTIVE_ARCH
=
NO
' // No device targeted, so build all valid architectures.
'
ONLY_ACTIVE_ARCH
=
NO
', // No device targeted, so build all valid architectures.
'
BUILD_LIBRARY_FOR_DISTRIBUTION
=
YES
',
];
RunResult buildPluginsResult = await processUtils.run(
...
...
@@ -500,8 +501,8 @@ end
'
-
destination
generic
/
platform
=
iOS
',
'
SYMROOT
=
$
{
simulatorBuildOutput
.
path
}
',
'
ARCHS
=
x86_64
',
'
ONLY_ACTIVE_ARCH
=
NO
'
// No device targeted, so build all valid architectures.
'
ONLY_ACTIVE_ARCH
=
NO
'
, // No device targeted, so build all valid architectures.
'
BUILD_LIBRARY_FOR_DISTRIBUTION
=
YES
',
];
buildPluginsResult = await processUtils.run(
...
...
packages/flutter_tools/templates/module/ios/host_app_ephemeral_cocoapods/Podfile.copy.tmpl
View file @
bfbb3476
...
...
@@ -10,17 +10,5 @@ target 'Runner' do
install_flutter_plugin_pods flutter_application_path
end
post_install do |installer|
installer.pods_project.targets.each do |target|
# Aggregate targets do not have a headers build phase.
if target.respond_to?('headers_build_phase')
target.headers_build_phase.files.each do |file|
# Make headers public so they can be imported by the host application.
file.settings = { 'ATTRIBUTES' => ['Public'] }
end
end
end
end
# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
install! 'cocoapods', :disable_input_output_paths => true
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