question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RCTImageStoreManager.m: Error "This block declaration is not a prototype"

See original GitHub issue

“react-native”: “0.47.2” This started after updating to XCode 9 Gold Master

screenshot 2017-09-16 15 43 05

I was able to add: #pragma clang diagnostic ignored "-Wstrict-prototypes" to work around it

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
edicommented, Nov 16, 2017

Solution is to add void as parameter as the compiler is a bit stricter now, and expects void for methods with no parameters.

Just add void in both places, ignore the new errors which appear and hit build again. It will work just fine

7reactions
michaelmerrillcommented, Sep 24, 2017

I’m using RN 0.48.4 and still seeing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

This block declaration is not a prototype - Stack Overflow
You can get the "not a prototype" warning when you try to define a function or block prototype using an empty set of...
Read more >
Xcode Compile Warnings: This Block Declaration Is Not A ...
It is an error if the number of arguments in a function definition declaration or call does not match the prototype. If the...
Read more >
This function declaration is not a prototype - Apple Developer
I'm getting this warning in the latest Xcode 9 editor when I load up an Objective-C project that did not give this warning...
Read more >
fear48/react-native - Gitter
I keep on getting this error after installing my app to my phone ... Image/RCTImageStoreManager.m:35:67: error: this function declaration is not a prototype...
Read more >
This function declaration is not a prototype - Unity Forum
I get literally thousands of these: "This function declaration is not a prototype" when I run. I know what it is [ ()...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found