flutter_boost iOS build failed after update flutter version to 3.3+

eivnm1vs  于 5个月前  发布在  Flutter
关注(0)|答案(4)|浏览(108)

Flutter 3.0.5 is fine. After the Flutter Version update to 3.3.9 iOS build failed.

Error in flutter_boost/Option.h

Steps to Reproduce

A small application to reproduce the bug(最小化可复现的demo)

  1. Edit Podfile
flutter_application_path = '../fluter_module/'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')

post_install do |installer|
  flutter_post_install(installer) if defined?(flutter_post_install)
  installer.pods_project.targets.each do |target|
    if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
      target.build_configurations.each do |config|
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
      end
    end
  end
end

target 'Production' do
  install_all_flutter_pods(flutter_application_path)
end
  1. pod install
  2. Xcode Run

Flutter Boost Version: 4.2.0
Target Platform:
Target OS version/browser:
Devices: iPhone14 Pro Max

Logs

[✓] Flutter (Channel stable, 3.3.9, on macOS 13.0.1 22A400 darwin-arm, locale en-CN)
qni6mghb

qni6mghb1#

example跑起来没有发现问题~~

[✓] Flutter (Channel stable, 3.3.9, on macOS 12.6 21G115 darwin-x64, locale zh-Hans-CN)
    • Flutter version 3.3.9 on channel stable at /Users/zero/fvm/versions/3.3.9
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f7f1f986 (8 days ago), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/zero/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • ANDROID_HOME = /Users/zero/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.54.0

[✓] Connected device (2 available)
    • iPhone (mobile) • 50131fb4dcef9d96405ec953e272bd5c24468370 • ios        • iOS 15.0 19A346
    • macOS (desktop) • macos                                    • darwin-x64 • macOS 12.6 21G115 darwin-x64

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
efzxgjgh

efzxgjgh2#

可能是官方问题.官方改了Flutter.framework的引入方式,新建一个空项目是可以,但是老项目不行,目前还没找到问题所在,不过可以通过把脚本还原到现在的版本可以解决这个问题
flutter/flutter#115619

yzckvree

yzckvree3#

可以问下最后怎么解决得嘛...

taor4pac

taor4pac4#

怎么还原呢,大佬

相关问题