Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken on XCode 16 #307

Closed
mikkan-39 opened this issue Jun 25, 2024 · 7 comments
Closed

Broken on XCode 16 #307

mikkan-39 opened this issue Jun 25, 2024 · 7 comments
Labels

Comments

@mikkan-39
Copy link

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):

  • Device: MBP 16 M1 Pro
  • OS: MacOS
  • OS Version: 15.0 Sequoia Developer Beta 2
  • Package Version: 6.1.1
@kleberfh
Copy link

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

@xiaoosnggao
Copy link

mark

@bimusiek
Copy link

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

@plrthink
Copy link
Collaborator

plrthink commented Aug 9, 2024

Maybe I should create a major version for this change.

@plrthink plrthink added iOS xcode and removed iOS labels Aug 9, 2024
@plrthink
Copy link
Collaborator

This should fixed by v7.0.1

@deepak9705
Copy link

minimum ios version need to increase 15.5

@Thanaen
Copy link

Thanaen commented Oct 21, 2024

Do we really have to increase minimum version to 15.5 for a compiler bug? 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants