Use SDK podhelper in add-to-app module Podfile (#73072)
This commit is contained in:
@@ -422,12 +422,6 @@ end
|
||||
' ├─Building plugins...'
|
||||
);
|
||||
try {
|
||||
// Regardless of the last "flutter build" build mode,
|
||||
// copy the corresponding engine.
|
||||
// A plugin framework built with bitcode must link against the bitcode version
|
||||
// of Flutter.framework (Release).
|
||||
_project.ios.copyEngineArtifactToProject(mode, EnvironmentType.physical);
|
||||
|
||||
final String bitcodeGenerationMode = mode == BuildMode.release ?
|
||||
'bitcode' : 'marker'; // In release, force bitcode embedding without archiving.
|
||||
|
||||
|
||||
@@ -662,11 +662,12 @@ class IosProject extends FlutterProjectPlatform implements XcodeBasedProject {
|
||||
ephemeralDirectory,
|
||||
);
|
||||
}
|
||||
copyEngineArtifactToProject(BuildMode.debug, EnvironmentType.physical);
|
||||
// Use release mode so host project can link on bitcode variant.
|
||||
_copyEngineArtifactToProject(BuildMode.release, EnvironmentType.physical);
|
||||
}
|
||||
}
|
||||
|
||||
void copyEngineArtifactToProject(BuildMode mode, EnvironmentType environmentType) {
|
||||
void _copyEngineArtifactToProject(BuildMode mode, EnvironmentType environmentType) {
|
||||
// Copy framework from engine cache. The actual build mode
|
||||
// doesn't actually matter as it will be overwritten by xcode_backend.sh.
|
||||
// However, cocoapods will run before that script and requires something
|
||||
|
||||
Reference in New Issue
Block a user