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
a8fbe02a
Commit
a8fbe02a
authored
Jul 30, 2019
by
Dan Field
Committed by
Jenn Magder
Jul 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide symbols from spotlight (#37217)
parent
7eb09a84
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
build.dart
packages/flutter_tools/lib/src/base/build.dart
+4
-1
build_aot.dart
packages/flutter_tools/lib/src/commands/build_aot.dart
+3
-3
build_test.dart
...ges/flutter_tools/test/general.shard/base/build_test.dart
+5
-1
No files found.
packages/flutter_tools/lib/src/base/build.dart
View file @
a8fbe02a
...
...
@@ -257,9 +257,12 @@ class AOTSnapshotter {
printError
(
'Failed to link AOT snapshot. Linker terminated with exit code
${compileResult.exitCode}
'
);
return
linkResult
;
}
// See https://github.com/flutter/flutter/issues/22560
// These have to be placed in a .noindex folder to prevent Xcode from
// using Spotlight to find them and potentially attach the wrong ones.
final
RunResult
dsymResult
=
await
xcode
.
dsymutil
(<
String
>[
appLib
,
'-o'
,
fs
.
path
.
join
(
outputPath
,
'App.framework.dSYM'
),
'-o'
,
fs
.
path
.
join
(
outputPath
,
'App.framework.dSYM
.noindex
'
),
]);
if
(
dsymResult
.
exitCode
!=
0
)
{
printError
(
'Failed to extract dSYM out of dynamic lib'
);
...
...
packages/flutter_tools/lib/src/commands/build_aot.dart
View file @
a8fbe02a
...
...
@@ -149,12 +149,12 @@ class BuildAotCommand extends BuildSubCommand with TargetPlatformBasedDevelopmen
'-create'
,
'-output'
,
fs
.
path
.
join
(
outputPath
,
'App.framework'
,
'App'
),
]);
final
Iterable
<
String
>
dSYMs
=
iosBuilds
.
values
.
map
<
String
>((
String
outputDir
)
=>
fs
.
path
.
join
(
outputDir
,
'App.framework.dSYM'
));
fs
.
directory
(
fs
.
path
.
join
(
outputPath
,
'App.framework.dSYM'
,
'Contents'
,
'Resources'
,
'DWARF'
))..
createSync
(
recursive:
true
);
final
Iterable
<
String
>
dSYMs
=
iosBuilds
.
values
.
map
<
String
>((
String
outputDir
)
=>
fs
.
path
.
join
(
outputDir
,
'App.framework.dSYM
.noindex
'
));
fs
.
directory
(
fs
.
path
.
join
(
outputPath
,
'App.framework.dSYM
.noindex
'
,
'Contents'
,
'Resources'
,
'DWARF'
))..
createSync
(
recursive:
true
);
await
runCheckedAsync
(<
String
>[
'lipo'
,
'-create'
,
'-output'
,
fs
.
path
.
join
(
outputPath
,
'App.framework.dSYM'
,
'Contents'
,
'Resources'
,
'DWARF'
,
'App'
),
'-output'
,
fs
.
path
.
join
(
outputPath
,
'App.framework.dSYM
.noindex
'
,
'Contents'
,
'Resources'
,
'DWARF'
,
'App'
),
...
dSYMs
.
map
((
String
path
)
=>
fs
.
path
.
join
(
path
,
'Contents'
,
'Resources'
,
'DWARF'
,
'App'
))
]);
}
else
{
...
...
packages/flutter_tools/test/general.shard/base/build_test.dart
View file @
a8fbe02a
...
...
@@ -210,7 +210,11 @@ void main() {
verify
(
xcode
.
cc
(
argThat
(
contains
(
'-fembed-bitcode'
)))).
called
(
1
);
verify
(
xcode
.
clang
(
argThat
(
contains
(
'-fembed-bitcode'
)))).
called
(
1
);
verify
(
xcode
.
dsymutil
(
any
)).
called
(
1
);
verify
(
xcode
.
dsymutil
(<
String
>[
'build/foo/App.framework/App'
,
'-o'
,
'build/foo/App.framework.dSYM.noindex'
,
])).
called
(
1
);
final
File
assemblyFile
=
fs
.
file
(
assembly
);
final
File
assemblyBitcodeFile
=
fs
.
file
(
'
$assembly
.bitcode'
);
...
...
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