首页 升级Xcode15 遇到问题汇总
文章
取消

升级Xcode15 遇到问题汇总

Error (Xcode): Assertion failed: (false && “compact unwind compressed function offset doesn’t fit in 24 bits”), function operator(), file Layout.cpp, line 5758.

1
2
3
4
5
6
Error (Xcode): Assertion failed: (false && "compact unwind compressed function offset doesn't fit in 24 bits"), function operator(), file Layout.cpp, line 5758.

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.

解决办法:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# in Podfile
post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)

    target.build_configurations.each do |config|
      if config.name == 'Debug'
        config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
      end

      # Xcode 15: OTHER_LDFLAGS = ld_classic
      if config.build_settings['OTHER_LDFLAGS'] != nil
        config.build_settings['OTHER_LDFLAGS'] << ' -ld_classic'
      end
    end
  end
end
本文由作者按照 CC BY 4.0 进行授权

设置 Android App 图标

CLI:将Web项目发布到腾讯云