mockingbot / react-native-zip-archive

Zip archive utility for react-native
MIT License
417 stars 153 forks source link

Broken on XCode 16 #307

Open mikkan-39 opened 1 month ago

mikkan-39 commented 1 month ago

Describe the bug Adter updating to the latest MacOS developer beta, when building a project with XCode 16 for iOS 18.0, following error is thrown: /node_modules/react-native-zip-archive/ios/RNZipArchive.m unsupported option '-G' for target 'arm64-apple-ios14.0-simulator'

To Reproduce Steps to reproduce the behavior:

  1. Update Xcode to version 16 Beta or install MacOS Sequoia
  2. Try to build the project

Expected behavior Builds successfully

Env (please complete the following information):

kleberfh commented 2 weeks ago

@mikkan-39 did you manage to fix this? Any workaround?

xiaoosnggao commented 2 weeks ago

mark

bimusiek commented 2 weeks ago

I found a workaround that can be easily configured in Cocoapods:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == 'RNZipArchive'
      target.source_build_phase.files.each do |file|
        if file.settings && file.settings['COMPILER_FLAGS']
            file.settings['COMPILER_FLAGS'] = ''
        end
      end
    end
  end
end