-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Time.h typedef redefinition
with iOS 10 set as a deployment target
#1470
Comments
In general the fixes for clock_gettime on apple platforms have been a bit complicated, but hopefully @chadaustin has some idea if this would be the right fix for iOS. |
same |
This stuff is always a pain. I'm trying to understand exactly what's going on in your failing case. We only #define CLOCK_REALTIME if FOLLY_HAVE_CLOCK_GETTIME is 0 (and Apple/Windows). Would it make sense if folly/folly/portability/Time.h Line 46 in b26907e
Are you asking about the PR that pins back to iOS 9.0? I'd support tweaking these conditions to make them more accurate. |
Yeah, and this seems to be only valid when Is that correct? If yes, why? My gut feeling would be that any backwards compatibility should be run on older releases of iOS, not newer. Since React Native targets iOS |
This is still an issue for me in May 2021. Is there a plan to fix? |
This is an issue for me as well after the 12.5 upgrade. Do we have any idea on a fix timeline? I would PR but I don't want the fix to cause issues with older versions of xcode. |
set |
Unfortunately setting __IPHONE_12_0 still throws this for me. |
Changing to |
I forced the
and it compiled successfully. |
I solved it by adding this to the Podfile:
By modifiing |
@supercranky's suggestion worked for me. |
#1688 Might fix this ? |
This solved it for me. Running Xcode 13.1 on a Mac Mini M1 macOS v11.6 with React Native 0.66.2 |
The way the detection is operated is error-prone and causes a wide variety of build errors due to clockid_t redefinitions when building for iOS simulators, see [1] & [2]. Using the __CLOCK_AVAILABILITY macro introduced when clock_gettime was introduced to the SDKs is the safer approach, see [3]. See: - [1] facebook#1470 - [2] facebook/flipper#834 - [3] https://developer.apple.com/forums/thread/67102
On Apple platforms, following the SDK development [1] guidelines, we can check for the availability (as in definition) of symbols using macros. This is more reliable notably when targeting iOS platforms or simulators where the previous approach used to create redefinition problems [2] & [3]. [1] https://developer.apple.com/forums/thread/67102 [2] facebook#1470 [3] facebook/flipper#834
Summary: On Apple platforms, following the SDK development [1] guidelines, we can check for the availability (as in definition) of symbols using macros. This is more reliable notably when targeting iOS platforms or simulators where the previous approach used to create redefinition problems [2] & [3]. [1] https://developer.apple.com/forums/thread/67102 [2] #1470 [3] facebook/flipper#834 Pull Request resolved: #1724 Reviewed By: Gownta Differential Revision: D38406371 Pulled By: Orvid fbshipit-source-id: c5e37d3cd7d8764049953ffba6c6a449217c8cb1
Summary: On Apple platforms, following the SDK development [1] guidelines, we can check for the availability (as in definition) of symbols using macros. This is more reliable notably when targeting iOS platforms or simulators where the previous approach used to create redefinition problems [2] & [3]. [1] https://developer.apple.com/forums/thread/67102 [2] facebook/folly#1470 [3] facebook/flipper#834 X-link: facebook/folly#1724 Reviewed By: Gownta Differential Revision: D38406371 Pulled By: Orvid fbshipit-source-id: c5e37d3cd7d8764049953ffba6c6a449217c8cb1
Summary: On Apple platforms, following the SDK development [1] guidelines, we can check for the availability (as in definition) of symbols using macros. This is more reliable notably when targeting iOS platforms or simulators where the previous approach used to create redefinition problems [2] & [3]. [1] https://developer.apple.com/forums/thread/67102 [2] facebook#1470 [3] facebook/flipper#834 Pull Request resolved: facebook#1724 Reviewed By: Gownta Differential Revision: D38406371 Pulled By: Orvid fbshipit-source-id: c5e37d3cd7d8764049953ffba6c6a449217c8cb1
We can close this? |
I updated React Native to a version of Folly with the fix in 4a2410f and we just started seeing the redefinition error again 😅. Going to try to workaround with manually setting |
Oh :(, you might want to undo my earlier change removing the patch then. |
Let me try manually setting the availability first. Would rather that then the sed style patching to headers happening before. Though, we should maybe try another spin at fixing feature detection. Afaict, in a stock CocoaPods XCode 15 setup, |
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Differential Revision: D49897681 Pulled By: NickGerleman
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Differential Revision: D49897681 Pulled By: NickGerleman
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Differential Revision: D49897681 Pulled By: NickGerleman
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Differential Revision: D49897681 Pulled By: NickGerleman
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 65efed462426d42b297bee883c1a99252b494193
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 0312a292fc2b308cc2789a8f0baf1cc47106df59
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 431b6227170db98e90bda26f7feefe2696c544b7
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 955c646a7dd3497d4c3f653e1aba0a0537f91ecc
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: da81801cf6af119bac197eeb04b98e6c936cafbb
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Reviewed By: fkgozali Differential Revision: D49897681 Pulled By: NickGerleman fbshipit-source-id: 410520c273ea9b76bc9ecdd73e7397af06e6701c
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 3228277e2b91d171d697ff142126254c3ab9797e
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Reviewed By: fkgozali Differential Revision: D49897681 Pulled By: NickGerleman fbshipit-source-id: 5b3284b19cb7e0f1c1e45aad18b83f7868275eb4
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 90ee0a0c6a3624630dc5ba36853fb8c3480293be
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 413bf62eed55a7c90fd453dfee3e55e1803b5d87
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Reviewed By: fkgozali Differential Revision: D49897681 Pulled By: NickGerleman fbshipit-source-id: 1b2468fb20ef5d2c5e57d96d332091fb7f6155b6
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 59d498a848fa6d7653140cdb91b96b4e3145b8eb
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 403d5d18ea53d5b9045cfab0217cda0e6fd4a466
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: de0bd7c724628fdb42f13f60a978eb35ddbf01d7
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Reviewed By: fkgozali Differential Revision: D49897681 Pulled By: NickGerleman fbshipit-source-id: d83c013d26a85597fb7c1f60e840d5eb48078bc5
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: ff36b855d8380fbc0f9401ee10302d7de8c28af7
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 78f31ac5273269adb7abac38795ca571bfb0504d
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 35bf7e7aec28592f3beacc906eb0b43ebb5aec47
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Reviewed By: fkgozali Differential Revision: D49897681 Pulled By: NickGerleman fbshipit-source-id: 98dfcf43a51d59ef401b4101849ac4acfa00dd78
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 507708adcd4e4776bf1acaacbd0a0cea912b1462
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Reviewed By: fkgozali Differential Revision: D49897681 Pulled By: NickGerleman fbshipit-source-id: aa25f20afde35eaf916667e7ee588caaea434514
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook#39798 Differential Revision: D49897681 fbshipit-source-id: 21ddba73d0434bf82c15f3a18e6a15d14c18c503
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: #39798 Reviewed By: fkgozali Differential Revision: D49897681 Pulled By: NickGerleman fbshipit-source-id: 52b97ed5b302abf9e27f38dc655207827852dcc3
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook/react-native#39798 Reviewed By: fkgozali Differential Revision: D49897681 Pulled By: NickGerleman fbshipit-source-id: 52b97ed5b302abf9e27f38dc655207827852dcc3 Original: facebook/react-native@aefefdb
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook/react-native#39798 Reviewed By: fkgozali Differential Revision: D49897681 Pulled By: NickGerleman fbshipit-source-id: 52b97ed5b302abf9e27f38dc655207827852dcc3 Original-Commit: facebook/react-native@aefefdb
Summary: This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later. Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment) There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time. Changelog: [Internal] Pull Request resolved: facebook/react-native#39798 Reviewed By: fkgozali Differential Revision: D49897681 Pulled By: NickGerleman fbshipit-source-id: 52b97ed5b302abf9e27f38dc655207827852dcc3 Original-Commit: facebook/react-native@aefefdb
Hey,
I am working on a Hermes support for React Native and while working on it, I have run into the following issue, when building the React Native project:
React Native has deployment target set to
10.0
for all its parts, including third party pod specs such asRCT-Folly
, that it defines to download and compile Folly with pieces that it needs. After changing the deployment target forRCT-Folly
specifically from10.0
to9.0
, the issue goes away.This is a temporary workaround that we have implemented to unblock the PR.
I believe it is caused by the following code:
The way I read it is - when building for iPhone and targeting iOS versions lower than 10.0 (e.g. 9.0), don't define macros. When building for newer iOS release, such as 10.0, define it. Shouldn't it be the opposite, if the purpose was to provide backwards compatibility?
The issue is being brought up from time to time in various projects - that's where I have learnt about the "deployment target" workaround:
Here are my questions:
if
condition? Where is the "__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_0" requirement coming from?The text was updated successfully, but these errors were encountered: