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

Error building with Xcode 14.3 #2038

Closed
sgabriel opened this issue Apr 17, 2023 · 5 comments · Fixed by #2041
Closed

Error building with Xcode 14.3 #2038

sgabriel opened this issue Apr 17, 2023 · 5 comments · Fixed by #2041

Comments

@sgabriel
Copy link
Contributor

Bug

Unexpected behavior

When building a project using the latest version of this library, the following error occurs.

In file included from <project-paht>/node_modules/react-native-svg/apple/Elements/RNSVGUse.mm:16:
<project-paht>/ios/Pods/Headers/Public/React-Fabric/react/renderer/components/view/conversions.h:111:39: error: 'value' is unavailable: introduced in iOS 12.0
          ? std::optional<Float>(base.value() * floatFromYogaFloat(value.value))

Other libraries have the same error and it seems to be related to Xcode 14.3 see this PR

Possible fix:

Change this line from

s.platforms       = { ios: '11.0', tvos: '11.0' }

to

s.platforms       = { ios: '12.4', tvos: '11.0' }
sgabriel added a commit to sgabriel/react-native-svg that referenced this issue Apr 17, 2023
@rarenatoe
Copy link

shameless bump

@WoLewicki WoLewicki linked a pull request May 24, 2023 that will close this issue
4 tasks
WoLewicki pushed a commit that referenced this issue May 24, 2023
Updated iOS version to 12.4 to be able to build on Xcode 14.3
@RichardLindhout
Copy link

I want a release :)

@josmmv
Copy link

josmmv commented Jul 5, 2023

When will you release this?

@RichardLindhout
Copy link

I used patch-package in the meantime btw :)

@WoLewicki
Copy link
Member

It's released in v13.10.0 🚀

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

Successfully merging a pull request may close this issue.

5 participants