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

Build Failed UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; #13901

Closed
PManager1 opened this issue May 10, 2017 · 5 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@PManager1
Copy link

PManager1 commented May 10, 2017

/ios/managerTests/managerTests.m:40:29: error: implicit declaration of function 'RCTSharedApplication' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];

image

heres my package.json
{
"name": "manager",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"firebase": "^3.9.0",
"react": "16.0.0-alpha.6",
"react-native": "0.43.3",
"react-native-router-flux": "3.38.0",
"react-redux": "4.4.5",
"redux": "^3.6.0",
"redux-thunk": "^2.2.0"
},
"devDependencies": {
"babel-jest": "19.0.0",
"babel-preset-react-native": "1.9.1",
"jest": "19.0.2",
"react-test-renderer": "16.0.0-alpha.6"
},
"jest": {
"preset": "react-native"
}
}

2__jay_jai____code_nativereact_udemycompletereactn_del__manager-rn__zsh__and_glass_and_iphone_6_ ios_8_1__12b411

Initially it wasn't ablel to find a module, so I reverted back my code , and now I see that The simulator works, , but still it says that Build Failed, what is that ? Please guide.

@st0ffern
Copy link

st0ffern commented May 12, 2017

remove the node_modules and install them again.
You are using old libs..

rm -rf node_modules
npm i

Solved the problem for me..

@andfk
Copy link

andfk commented May 16, 2017

@Stoffern solution didnt worked for me but like he says, i´ve been using old libs, so after upgrading RN it worked. I did react-native-git-upgrade (react-native upgrade) and now it uses v0.44

@jkomyno
Copy link

jkomyno commented May 26, 2017

Reinstalling the node modules worked for me. Thanks @Stoffern!

@wv1124
Copy link

wv1124 commented Jun 2, 2017

v0.43.4 didn't work, i need fixed in v0.43.4

@hramos hramos added the Icebox label Aug 16, 2017
@hramos
Copy link
Contributor

hramos commented Aug 16, 2017

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!

If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

  • Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
  • If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
  • Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

@hramos hramos closed this as completed Aug 16, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Aug 16, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Aug 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants