-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Fix Xcode 11 build #25146
Fix Xcode 11 build #25146
Conversation
Failing tests seem unrelated. |
props to @zhongwuzw for the debug assist! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one! 🍏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🆒
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
This pull request was successfully merged by @ericlewis in 46c7ada. When will my fix make it into a release? | Upcoming Releases |
@ericlewis 💯 |
Thank you! |
@zhongwuzw yeah! The crash was happening because I left some bad debug code behind 😜 |
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. ## Changelog [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: #25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7 # Conflicts: # React/Base/RCTModuleMethod.mm
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. ## Changelog [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: #25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7
Hello - how can I install the pre-release package that has this fix? I'm trying
but it just keeps installing v0.57.1 Thank you, |
This fix is in 0.59.9.
Sent via Superhuman iOS ( https://sprh.mn/?vip=ericlewis777@gmail.com )
…On Sun, Jun 16 2019 at 2:53 PM, < ***@***.*** > wrote:
Hello - how can I install the pre-release package that has this fix?
I'm trying
react-native init RN060 --version ***@***.***
but it just keeps installing v0.57.1
Thank you,
~Todd
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (
#25146?email_source=notifications&email_token=AAFEVR3DBWGBBLZB5GUJCALP22DZNA5CNFSM4HS6BRGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXZS6VY#issuecomment-502476631
) , or mute the thread (
https://github.com/notifications/unsubscribe-auth/AAFEVR23MLJX47MC35RZUWTP22DZNANCNFSM4HS6BRGA
).
|
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. ## Changelog [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: facebook#25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: facebook#25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. ## Changelog [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: facebook/react-native#25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7 # Conflicts: # React/Base/RCTModuleMethod.mm
working perfectly. you saved my day. |
You can use patch-package to perform the update every time you install packages / update them. |
I can't, do you have a solution? |
Well, I just tried, looks like the diff is too heavy for github. |
I had to revise it many times when adding new packages to my project |
This working. Thank you |
- react native 0.59.9 introduces a fix for a bug stopping builds with xcode 11: facebook/react-native#25146 - also the recent name update needed a change to a file in the ios/ dir - finding and fixing these issues was a *major pain*
Tks @tuanduc2904 , saved my time! RN version 0.59.10, worked like a charm! |
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. ## Changelog [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: facebook#25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7 Commit: 46c7ada [46c7ada] Author: Eric Lewis <ericlewis777@gmail.com> Date: 4 June 2019 at 20:54:59 BST Commit Date: 4 June 2019 at 20:59:34 BST
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: facebook#25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: facebook#25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7 (cherry picked from commit 46c7ada)
why is this closed? I still get the error.
"react": "16.8.3", |
Just upgrade react-native package @29er |
ok thanks @Rambatino ! . I will try 35.0 |
- Required to backport #24155 (previous commit) - facebook/react-native#25146 - Occurred during upgrade: xcode 10 -> 11 - Safe to XXX after react-native 0.59.10 (currently 0.57.2)
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: facebook#25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: facebook#25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. ## Changelog [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: facebook/react-native#25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7
react native 0.59 has a red screen issue for xcode11, regenate the container for react native 0.60: facebook/react-native#25146
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: facebook#25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7
- Required to backport #24155 (previous commit) - facebook/react-native#25146 - Occurred during upgrade: xcode 10 -> 11 - Safe to XXX after react-native 0.59.10 (currently 0.57.2)
I also have same issue but these solution does not work for me. I am using |
Summary: Fixes build in Xcode 11 beta, the signature for `__unused` was changed. This adds a new check for the new style. ## Changelog [iOS] [Fixed] - Xcode 11 beta build Pull Request resolved: facebook#25146 Differential Revision: D15628404 Pulled By: cpojer fbshipit-source-id: 781a188a0e1562a3316fbe62920b12b03a44e4a7
|
@@ -91,6 +91,7 @@ static BOOL RCTParseSelectorPart(const char **input, NSMutableString *selector) | |||
static BOOL RCTParseUnused(const char **input) | |||
{ | |||
return RCTReadString(input, "__attribute__((unused))") || | |||
RCTReadString(input, "__attribute__((__unused__))") || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, may I know which file this is please? Thanks very much!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not working
Summary
Fixes build in Xcode 11 beta, the signature for
__unused
was changed. This adds a new check for the new style.Changelog
[iOS] [Fixed] - Xcode 11 beta build
Test Plan
Build & run RNTester