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
d6fbfdb9
Unverified
Commit
d6fbfdb9
authored
Apr 14, 2021
by
Core
Committed by
GitHub
Apr 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include debug symbol in xcframework when building iOS-framework (#80065)
parent
8920f7a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
build_ios_framework_module_test.dart
dev/devicelab/bin/tasks/build_ios_framework_module_test.dart
+19
-0
build_ios_framework.dart
...s/flutter_tools/lib/src/commands/build_ios_framework.dart
+9
-1
No files found.
dev/devicelab/bin/tasks/build_ios_framework_module_test.dart
View file @
d6fbfdb9
...
...
@@ -310,6 +310,17 @@ Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals
'DeviceInfoPlugin.h'
,
));
if
(
mode
!=
'Debug'
)
{
checkDirectoryExists
(
path
.
join
(
outputPath
,
mode
,
'device_info.xcframework'
,
localXcodeArmDirectoryName
,
'dSYMs'
,
'device_info.framework.dSYM'
,
));
}
final
String
simulatorFrameworkPath
=
path
.
join
(
outputPath
,
mode
,
...
...
@@ -333,6 +344,14 @@ Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals
checkFileExists
(
simulatorFrameworkHeaderPath
);
}
checkDirectoryExists
(
path
.
join
(
outputPath
,
'Release'
,
'device_info.xcframework'
,
localXcodeArmDirectoryName
,
'BCSymbolMaps'
,
));
section
(
'Check all modes have generated plugin registrant'
);
for
(
final
String
mode
in
<
String
>[
'Debug'
,
'Profile'
,
'Release'
])
{
...
...
packages/flutter_tools/lib/src/commands/build_ios_framework.dart
View file @
d6fbfdb9
...
...
@@ -525,7 +525,15 @@ end
'
-
create
-
xcframework
',
for (Directory framework in frameworks) ...<String>[
'
-
framework
',
framework.path
framework.path,
...framework.parent
.listSync()
.where((FileSystemEntity entity) =>
entity.basename.endsWith('
bcsymbolmap
') ||
entity.basename.endsWith('
dSYM
'))
.map((FileSystemEntity entity) =>
<String>['
-
debug
-
symbols
', entity.path])
.expand<String>((List<String> parameter) => parameter)
],
'
-
output
',
outputDirectory.childDirectory('
$frameworkBinaryName
.
xcframework
').path
...
...
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