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

File RCTConvert+MapKit.m not found #1213

Closed
ignacioola opened this issue Apr 7, 2017 · 14 comments
Closed

File RCTConvert+MapKit.m not found #1213

ignacioola opened this issue Apr 7, 2017 · 14 comments

Comments

@ignacioola
Copy link

ignacioola commented Apr 7, 2017

Issue Description

File not found error after building project on XCode.

Steps to Reproduce / Code Snippets

  1. Install react-native-maps
    yarn add react-native-maps
    
  2. Link react-native-maps
    react-native link react-native-maps
    
  3. Open XCode project
    open ios/MyProject.xcproject
    
  4. Build the project with ⌘ + B, crashing with the following output:
    clang: error: no such file or directory: 
    '/Users/username/Projects/MapsTest/node_modules/react-native-maps/lib/ios/AirMaps/RCTConvert+MapKit.m'
    clang: error: no input files   
    

Expected Results

Successful build

Additional Information

  • React Native Maps version: 0.14.0
  • React Native version: 0.43.0
  • Platform(s): iOS
  • No other libraries installed
@simonmitchell
Copy link
Contributor

This needs changing in the project file and various other places, it was renamed here but the contributors project file was not committed with the change. Will submit a PR now: 4926f5b

@simonmitchell
Copy link
Contributor

PR can be seen here: #1214

@ignacioola
Copy link
Author

Great @simonmitchell! Hope your PR gets merged soon.

@tuneZola
Copy link

tuneZola commented Apr 9, 2017

Yeah, this is kind of a blocker for people upgrading. Need to also bump up the dependency versions, still wants React 15.4, and RN 0.43.2 wants 16 alpha.

@bberthelemy
Copy link

Hi, thx @simonmitchell for your PR, you just forgot to update xcodeproj references. I created a new PR about it => #1224

@robhogan
Copy link
Contributor

This is a dup of #1193 and there's another PR #1195 (I think that makes three!)

@simonmitchell
Copy link
Contributor

@bberthelemy I shouldn't have missed anything, you just happen to have more changes to your project file which I can only assume are from changes you've made on your fork :)

@antonsivogrivov
Copy link

I have no such file or directory: react-native/React/Views/RCTConvert+MapKit.m error. What should I do?

"react-native": "0.44.2",
"react-native-maps": "0.15.2"

@robhogan
Copy link
Contributor

That was part of the maps component bundled with RN, which has now been removed from RN. You can remove your references to it - it's not needed for react-native-maps.

@antonsivogrivov
Copy link

@rh389, and we are these references?

@robhogan
Copy link
Contributor

Since the error is showing a full path like that, my guess is that it's referenced in your project file, or maybe the project file of another dependency, or maybe you're using CocoaPods and haven't updated your installation since updating RN. You'll have to have a look around - a text search on your project root should show it up.

All I can say for sure is that file was part of react-native in 0.43 and was removed in 0.44, and clearly you have something still looking for it despite using 0.44. The file at the path you mention is nothing to do with react-native-maps (since #1138) - it just happens to have the same name as the file in the OP's issue (which ironically is the reason the one in react-native-maps was renamed, which caused the OP's issue!).

@thelitlej
Copy link

I get this error, but i cant find the reference anywhere in the project, i'm searching for RCTConvert+Mapkit and it does not find anything. Sometimes the error disappears and everything works like it should. When i restart Xcode it appears again. Can this be some kind of a cache problem?

@itinance
Copy link

itinance commented Jul 7, 2017

Anything we can do? We faced this issue also on a green field application based on RN 0.45

@alvelig
Copy link
Contributor

alvelig commented Dec 9, 2017

I recently made a fresh example build with pods and GoogleMaps with no issues.
https://github.com/alvelig/react-native-maps-pods-example.
Try to check it out or build through the README.MD. If it does not help, let me know.

@alvelig alvelig closed this as completed Dec 9, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants