-
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
iOS build fails to run in with Xcode 11.0 beta #25138
Comments
OMG, seems Xcode 11 beta breaks method signature parsing. Now I have no chance to install Xcode beta. @vivekhumnabad Would you mind paste the method selector string for us? just add the |
fixed by #25146 |
@ericlewis Any idea when this will be released??? |
@vivekhumnabad needs to be accepted and merged, which shouldn't take long, and after maybe @grabbou wouldn't mind pulling it in to the 0.60 RC, since it is a pretty minor change? :D |
@vivekhumnabad its been merged, this will land hopefully in 0.60 or 0.61! |
Would it be possible to get a fix in version precceding 0.60? Say 59? |
@OllyDixon This fix is already part of the 59.9 react-native. |
I am still facing this issue on
|
@MuhammadUsman786786 |
The OG patch is from here: facebook/react-native@46c7ada info from here: facebook/react-native#25146 then here: facebook/react-native#25138
Does it affect on users upgraded to ios13 with apps that is currently in store? |
@Desintegrator Users who are on iOS13 can download and run React Native 0.59.<9 apps from the play store, as long as they are built with Xcode 10. The issue is when building apps with Xcode 11 (which is required to run locally on iOS 13 devices). |
not work for me |
https://github.com/facebook/react-native/pull/25146/files that work in my case, react-native 0.59.8 |
react-native 0.52.3 fix xcode 11 betacode ./node_modules/react-native/React/Base/RCTModuleMethod.mm |
it works for me. do reinstall the app after replace |
What about app from the store that is currently run React Native 0.55.0? |
Thanks, @CaopanHuster for confirming about 0.59.8. Is this change available on RN 0.59.8? I can't upgrade my RN version further 0.59.8. |
… bug in RN0.5x.x. or we will run into "Unknown argument type '__attribute__' in method" when start our app. see this post for the bug:facebook#25138 this pr for the fix: https://github.com/facebook/react-native/pull/25146/files
@NguyenVanVietPoLy "RCTReadString(input, "attribute((unused))")" adding this worked for me on 0.57.4 |
react native 0.59.9 solved this problem. |
This issue still exists in xcode 11.1 and rn 0.59.9. Do I have to update to 0.6**?Thanks. |
Yes, upgrade to the latest version of react-native. |
…g with Xcode 11. A description of the issue can be found here: facebook/react-native#25138.
it works for me. |
if ([@(input) hasPrefix:@"getCurrentAppState"]){ |
Worked for me |
React Native version:
Steps To Reproduce
1.Create a new react-native project with react-native init ""
2.open iOS project and run
Describe what you expected to happen:
Build and run successfully and show launch screen with default UI
What is happening:
Build shows Error Screen saying -
"Unknown argument type 'attribute' in method -[RCTAppState getCurrentappState:error:].
Extend RCTConvert to support this type
Snack, code example, or link to a repository:
Happens with all my existing projects and newly created samples as well.Here is the sample code I have tried.
FinalTry.zip
Please refer to below screenshot for error data
NOTE:
Happens only in newly launched MacOS and Xcode 11 beta
The text was updated successfully, but these errors were encountered: