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
c9825d24
Unverified
Commit
c9825d24
authored
Apr 21, 2022
by
Jenn Magder
Committed by
GitHub
Apr 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle CocoaPods ffi stderr (#102327)
parent
c73100bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
cocoapods.dart
packages/flutter_tools/lib/src/macos/cocoapods.dart
+4
-3
cocoapods_test.dart
...lutter_tools/test/general.shard/macos/cocoapods_test.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/macos/cocoapods.dart
View file @
c9825d24
...
...
@@ -349,10 +349,11 @@ class CocoaPods {
}
void
_diagnosePodInstallFailure
(
ProcessResult
result
)
{
if
(
result
.
stdout
is
!
String
)
{
final
Object
?
stdout
=
result
.
stdout
;
final
Object
?
stderr
=
result
.
stderr
;
if
(
stdout
is
!
String
||
stderr
is
!
String
)
{
return
;
}
final
String
stdout
=
result
.
stdout
as
String
;
if
(
stdout
.
contains
(
'out-of-date source repos'
))
{
_logger
.
printError
(
"Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
\n
"
...
...
@@ -360,7 +361,7 @@ class CocoaPods {
' pod repo update
\n
'
,
emphasis:
true
,
);
}
else
if
((
std
out
.
contains
(
'ffi_c.bundle'
)
||
stdout
.
contains
(
'/ffi/'
))
&&
}
else
if
((
std
err
.
contains
(
'ffi_c.bundle'
)
||
stderr
.
contains
(
'/ffi/'
))
&&
_operatingSystemUtils
.
hostPlatform
==
HostPlatform
.
darwin_arm
)
{
// https://github.com/flutter/flutter/issues/70796
UsageEvent
(
...
...
packages/flutter_tools/test/general.shard/macos/cocoapods_test.dart
View file @
c9825d24
...
...
@@ -514,7 +514,7 @@ Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by
'LANG'
:
'en_US.UTF-8'
,
},
exitCode:
1
,
std
out
:
cocoaPodsError
,
std
err
:
cocoaPodsError
,
),
const
FakeCommand
(
command:
<
String
>[
'which'
,
'sysctl'
],
...
...
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