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

Getting Error while building XcFramework #3

Closed
Chaman-Sahu-iOS opened this issue Jan 11, 2024 · 5 comments
Closed

Getting Error while building XcFramework #3

Chaman-Sahu-iOS opened this issue Jan 11, 2024 · 5 comments

Comments

@Chaman-Sahu-iOS
Copy link

Chaman-Sahu-iOS commented Jan 11, 2024

Thank you so much for making a great package. It helps me avoid Objective-C code while implementing the React Native Modules. Please help me solve this error, I am getting this error while building the XcFramework in iOS.

error: The package product 'SwiftSyntaxMacros' requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0 (in target 'ReactBridgeMacros' from project 'ReactBridge')
error: The package product 'SwiftCompilerPlugin' requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0 (in target 'ReactBridgeMacros' from project 'ReactBridge')

Screenshot 2024-01-11 at 3 53 44 PM
@ikhvorost
Copy link
Owner

Hi! Thanks for bug reporting.

Please answer several questions:

  1. Do you user ReactBridge inside your library?
  2. What Xcode version do you use?
  3. Can you provide a sample project to reproduce?

@Chaman-Sahu-iOS
Copy link
Author

Chaman-Sahu-iOS commented Jan 12, 2024

  1. Yes I am using ReactBridge inside my library.
  2. I am Using Xcode 15.2.

@Chaman-Sahu-iOS
Copy link
Author

Hi, I found the root cause of the issue.

There are two package dependencies - React Bridge & swift-syntax
But they both have different iOS Deployment versions as attached with the given image-

Screenshot 2024-01-21 at 4 08 07 PM Screenshot 2024-01-21 at 4 08 17 PM

Please update this make with the same version it will solve the issue.

To reproduce the issue just create a xcFramework.

@Chaman-Sahu-iOS
Copy link
Author

I am adding a Sample Project also alongside this issue.

To run the Framework command try this -

  • Navigate to the project folder
  • Run this command: ./ReactXcFramework.command

The issue will reproduce when you add the React Bridge Dependency.

If you remove the React Bridge then it will work fine.

ReactBridgeIssue.zip

@ikhvorost
Copy link
Owner

The issue is fixed in 1.0.3, please try it out.

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

No branches or pull requests

2 participants