-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Build fails for Xcode 15 Beta 1 (and Beta 7) #37748
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
Thanks you for confirming reproducibility |
Thank you @Armanoide for pointing this out. In production, this will usually be have to be done via a post-install script in the The other workaround is to patch |
you're right @below to notice that Pods is re-generated.
|
@Armanoide thanks so much for the work around. We will bake this into our Cocoapods scripts... or if you have time and you want to open a PR, that's very welcome! :D |
i didn't have time today unfortunately but some one did 37758. |
Do we have a separate task for upgrading Boost to a version that doesn't use |
@tido64 As of my quick research, boost 1.8.x no longer uses |
Had a quick look myself. |
Hi, this problem still exists in version 0.71.10, are there plans to add this in 0.71.x? |
@GraxMonzo: Yes, as soon as we release 0.71.11 (either this week or the next) the problem will be fixed there as well. |
Summary: Fixes #37748 This PR adds a patch which fixes a build issue in Xcode 15. ## Changelog: [IOS] [ADDED] - Add support for building with Xcode 15 Pull Request resolved: #37758 Reviewed By: cortinico Differential Revision: D46524009 Pulled By: cipolleschi fbshipit-source-id: 9f6c12e12a15c154467282a7b4a00e80e5cc0af2
Summary: Fixes facebook#37748 This PR adds a patch which fixes a build issue in Xcode 15. ## Changelog: [IOS] [ADDED] - Add support for building with Xcode 15 Pull Request resolved: facebook#37758 Reviewed By: cortinico Differential Revision: D46524009 Pulled By: cipolleschi fbshipit-source-id: 9f6c12e12a15c154467282a7b4a00e80e5cc0af2 (cherry picked from commit 8ed2cfd)
You're correct that there is no template named unary_function in the std namespace. The error message suggests using __unary_function instead |
* fix(iOS): bump `LNViewHierarchyDumper` to version 1.3. Current version is broken with Xcode 15.0/iOS 17. * fix(iOS): add workaround for building with Xcode 15. See: facebook/react-native#37748. * fix(iOS): bump `LNViewHierarchyDumper` submodule. Fixes unrecognized selector sent to errors.
Replacing |
@marcshilling can you share the crashlog? |
We are aware of issues related to Xcode 15, beta, especially when it comes to older iOS. |
@cipolleschi this is Xcode 15 Beta 6 which is the latest, trying to run on iOS 17 Beta 6! |
uhm... the title of the issue says Beta 1, that's why I was asking. |
Same issue here. |
Yeah still happening for me in beta 7 as well (the startup SIGABRT). Here's crash report. I sent it to Apple as well in case this is some beta issue 🤷
Edit: Confirming issue is still present with Beta 8 :( |
reopening for now since it seems that Beta 7 is having issues |
@marcshilling thanks for doing that. Keep us updated on how it goes. I plan to do the same today, hopefully, the more error they receive the more pressured they may feel @sthales I'll try again, but on my test it was working on iOS 17.0 Meanwhile, I made some investigation. Combination Broken vs Working
What's the issueWhat got broken is in how C++ allocates memory. In the latest versions, I can trigger the crash on iOS 14.5 with a simple: shared_ptr<string> strPtr = make_shared<string>(""); The first stack trace reported the issue with Folly, specifically the AccessSpreaderStaticInit. Fun fact, we don't need the I made a test by removing that file from the Folly's Podspec: React Native still builds, but it also still crash. In this situation, we don't have any code coming from the framework. I tried to reproduce the issue in a native iOS project without React Native: it does not crash. There is something within React Native that tampers with how the memory is allocated in iOS 14.5, but I couldn't pin what it is specifically. |
Just to confirm that solution provided by Armanoide works smooth! |
Manually modifying your project works, but our infra is already doing it in the |
@humanzai you mean that Xcode cloud can't run cocoapods? If that the case, you'll have to check into your versioning system the pods and the xcworkspace for Xcode cloud to pick up the right file. |
@cipolleschi Thanks for the clarification! For third party Pods,
Thanks everyone |
btw folks, we are going to release new patches for all the versions in the support window with fixes for Xcode 15. @cipolleschi has already added comments in all the patches discussion with the links to the commits to pick. |
…o unblock iOS build Summary: Linear: https://linear.app/comm/issue/ENG-4984/xcode-version-15-update GitHub: facebook/react-native#37748 --- Depends on D9227 Test Plan: iOS builds succeeds after `yarn cleaninstall` without issue. Reviewers: ashoat, ginsu, tomek, bartek Reviewed By: ashoat Differential Revision: https://phab.comm.dev/D9228
After upgrading to Xcode 15 make run-ios would fail with ``` ❌ /Users/siddarthkumar/code/status-im/PR/status-mobile/ios/Pods/boost/boost/container_hash/hash.hpp:131:33: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? struct hash_base : std::unary_function<T, std::size_t> {}; ``` This commit fixes the issue and makes existing codebase compatible with newer Xcode. reference issue in react-native repo : facebook/react-native#37748
After upgrading to Xcode 15 make run-ios would fail with ``` ❌ /Users/siddarthkumar/code/status-im/PR/status-mobile/ios/Pods/boost/boost/container_hash/hash.hpp:131:33: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? struct hash_base : std::unary_function<T, std::size_t> {}; ``` This commit fixes the issue and makes existing codebase compatible with newer Xcode. reference issue in react-native repo : facebook/react-native#37748
thanks Armanoide, this worked for me!! |
@Shubham0850 hey, refer to this issue: mrousavy/react-native-vision-camera#1802 (comment) this one is unrelated |
All the fixes for Xcode 15 has landed on main and they have been cherry picked in the right branch. Thank you all for your patience. |
Description
When building with Xcode 15 Beta 1, building fails with a C++ issue in boost:
Apparently, boost 1.8x does not have this issue and builds correctly. However, react-jsi currently does not work with boost 1.8x due to breaking changes.
React Native Version
0.71.8
Output of
npx react-native info
Steps to reproduce
cd react-Xcode15Bug
npm install && (cd ios && pod install)
Then either:
yarn ios
Or
xed ios
and build with XcodeSnack, code example, screenshot, or link to a repository
https://github.com/below/react-Xcode15Bug
The text was updated successfully, but these errors were encountered: