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

[RN 0.48.3 Xcode 9] RCTImageStoreManager: Semantic Issue #16070

Closed
delef opened this issue Sep 23, 2017 · 17 comments
Closed

[RN 0.48.3 Xcode 9] RCTImageStoreManager: Semantic Issue #16070

delef opened this issue Sep 23, 2017 · 17 comments
Labels
Bug Help Wanted :octocat: Issues ideal for external contributors. Platform: iOS iOS applications.

Comments

@delef
Copy link

delef commented Sep 23, 2017

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 8.4.0
Yarn: Not Found
npm: 5.4.2
Watchman: 4.7.0
Xcode: Xcode 9.0 Build version 9A235
Android Studio: 2.1 AI-143.3101438

Packages: (wanted => installed)
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: ^0.48.3 => 0.48.3

Steps to Reproduce

  1. react-native init test
  2. Install latest xcode version
  3. Open ~/test/ios/test.xcodeproj (xcode)
  4. Update to recommended settings (for all xcodeproj)
  5. Build

Expected Behavior

The project started with the old version of xcode.

Actual Behavior

"This block declaration is not a prototype"

screen shot 2017-09-21 at 02 18 13

screen shot 2017-09-21 at 02 39 03

Reproducible Demo

https://github.com/delef/rn-xcode9

@SupriyaAdep
Copy link

Facing similar issue

@delef delef changed the title xcode 9. RCTImageStoreManager: "This block declaration is not a prototype" [RN 0.48.3 Xcode 9. RCTImageStoreManager: "This block declaration is not a prototype" Sep 23, 2017
@delef delef changed the title [RN 0.48.3 Xcode 9. RCTImageStoreManager: "This block declaration is not a prototype" [RN 0.48.3 Xcode 9]. RCTImageStoreManager: "This block declaration is not a prototype" Sep 23, 2017
@delef delef changed the title [RN 0.48.3 Xcode 9]. RCTImageStoreManager: "This block declaration is not a prototype" [RN 0.48.3 Xcode 9]. RCTImageStoreManager: Semantic issue Sep 23, 2017
@delef delef changed the title [RN 0.48.3 Xcode 9]. RCTImageStoreManager: Semantic issue [RN 0.48.3 Xcode 9]. RCTImageStoreManager: Semantic Issue Sep 23, 2017
@delef delef changed the title [RN 0.48.3 Xcode 9]. RCTImageStoreManager: Semantic Issue [RN 0.48.3 Xcode 9] RCTImageStoreManager: Semantic Issue Sep 23, 2017
@ragamufin
Copy link

You can try:

https://stackoverflow.com/a/44473380/577280

@michaelmerrill
Copy link

Having this issue as well. RN 0.48.4, RCT 16.0.0-rc.3.

@glebovitz
Copy link

Having this issue as well.

@Evaske
Copy link

Evaske commented Sep 27, 2017

Also having this issue. Can't get it to run on a device. Build fails with the above error.

@glebovitz
Copy link

glebovitz commented Sep 27, 2017

I got my code to compile. The offending code is the prototype for the blocks argument to the removeImageForTag method in RCTImaeStoreManager.h and RCTImaeStoreManager.m node_modules/react-native/Libraries/Image.

The compiler appears to no longer treat empty arguments to a method as a warning. The fix is to make the empty argument void.

Original code:

- (void)removeImageForTag:(NSString *)imageTag withBlock:(void (^)())block

working code

- (void)removeImageForTag:(NSString *)imageTag withBlock:(void (^)(void))block

I don't know if this is a general fix, but it worked for me.

@tolgaduzenli
Copy link

doesnt work for me. RN 0.43.3
When I try @glebovitz 's solution I am getting this error;
Conflicting parameter types in implementation of 'removeImageForTag:withBlock:': 'void (^__strong)()' vs 'void (^__strong)(void)'

@glebovitz
Copy link

@tolgaduzenli - did you make the change to both the RCTImaeStoreManager.h and RCTImaeStoreManager.m files. Looks like you changed only the header file.

@tolgaduzenli
Copy link

@glebovitz thank you so much man, now my build is successful.

@shivankpal
Copy link

@glebovitz thankyou man

@goldblade
Copy link

@glebovitz thank you! i solved the problem

@stale
Copy link

stale bot commented Jan 17, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 17, 2018
@delef
Copy link
Author

delef commented Jan 17, 2018

We need a global solution to the problem

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 17, 2018
@react-native-bot react-native-bot added Platform: iOS iOS applications. Help Wanted :octocat: Issues ideal for external contributors. labels Mar 9, 2018
@hramos hramos removed the Bug Report label Feb 6, 2019
@andpor
Copy link

andpor commented Mar 1, 2019

Same problem after upgrade to XCode 10.1

@cpojer
Copy link
Contributor

cpojer commented May 9, 2019

Is there somebody who could send a Pull Request with a fix for this problem?

@github-actions
Copy link

github-actions bot commented Mar 1, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added Stale There has been a lack of activity on this issue and it may be closed soon. and removed Stale There has been a lack of activity on this issue and it may be closed soon. labels Mar 1, 2023
@shubhamguptadream11
Copy link
Collaborator

There hasn't been any activity on this issue from long. Also the reproducer provided doesn't seems to exist now.

If someone still getting this on latest RN version. Feel free to re-open this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Help Wanted :octocat: Issues ideal for external contributors. Platform: iOS iOS applications.
Projects
None yet
Development

No branches or pull requests