今是昨非

今是昨非

日出江花红胜火,春来江水绿如蓝

Xcode 15 packaging fails to install on iOS versions below 13, how to fix it.

Xcode15 Packaging iOS 13 and below installation crash fix#

To fix the installation crash issue when packaging iOS 13 and below using Xcode15, refer to the solution in Xcode15 + iOS13 crash. The main solutions are as follows, you can give them a try:

Add -ld64 to the build setting->other linker flags
If using Cocoapods, you must also add the -Wl,-ld_classic option to the OTHER_LDFLAGS in the Pod project settings
For iOS12 crash, check the Generate Swift Asset Symbol Framework Support option in Asset Catalog Compiler and remove SwiftUI

The method to add CocoaPods is as follows:


need_otherlinkerflags_frameworks = ['XXX']

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['CODE_SIGN_IDENTITY'] = ''
      if need_otherlinkerflags_frameworks.include?(target.name)
        config.build_settings['OTHER_LDFLAGS'] = '-Wl,-weak-lswiftCoreGraphics, -ld_classic'
      end
    end
  end
end
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.