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
Native component for "AIRMap" does not exist' on IOS #2064
Comments
I am getting the same issue |
@aniiskywalker @JulianCurrie please try to use the git version and let us know if it works. |
I am getting it too ~ |
@chnbohwr are you using the git master version? |
Hello fellas, i fix my error, it's a little tricky. First of all be sure you don't have linked any AirMap library, then check your podfile.
.. and this is the tricky part, you have to add at Framework Search Paths =>' GoogleMaps framework' and its headers, (Users/youruser/yourprojectname/ios/Pods/GoogleMaps/Base/Frameworks & Users/youruser/yourprojectname/ios/Pods/GoogleMaps/Maps/Frameworks) Build and compile, and IT WORKS! Alright if you have any questions about it feel free to ask, i'll leave this issue open.. And please forgive me about my not perfect english. PS. thanks @rborn the example pods, it help me to find the issue |
Going to close the issue as the solution was found. |
@rborn what was the solution, I'm still having the error :( |
@DavidNorena have you tried my solution? :0 |
@aniiskywalker Hi, and thanks for your answer, sadly I'm working with android, my workaround was to start a new project from scratch and now its working ... Weird and tedious ! |
@DavidNorena we face an issue in android, we change some version from 10 to 11 (I don’t remember what was that but I hope you know what I’m talking about haha) |
I have the same issue in android, the command "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android\app\src\main\assets\index.android.bundle --assets-dest android\app\src\main\res" seems to work just fine. I don't use AirMap at all in my code, I use MapView. When I try to show the screen using MapView, I get the same error message as shown above. |
@aniiskywalker yeah I know what you are talking about. The thing is that starting a project from scratch wasn't the real solution, as soon as I started using wix/react-native-navigation I found that again I had the issue, so after a good time searching I found that I had to change the following steps:
Just replaced it for this one:
Now it's working, remember I'm using android !!! |
@aniiskywalker Thanks for the tips! I tried the steps you suggested, I still get some errors. About getPackages() and createAdditionalReactPackages(), I get errors for the @OverRide annotation. Where are these methods coming from? |
Now after some struggle compiling works! I made several changes to the .gradle files, there were mismatches in the version numbers. |
@DavidNorena that's right, that's how I have my mainApplication
@jarmlaht Cool! Fortunately Android never gimme trouble 😄 . Good to know you both solved this issue |
Environment Followed the installation steps
Still the same error, tried many solutions, like pod update and some other suggested solutions submitted on other issues, but no luck, already spend 4 days on this issue, i dont know what i am doing wrong, |
@noumanDev Hello! I’m checking if I miss something with my installation but no, when you add .../ios/Pods/Headers/Public/react-native-maps you are adding AirMaps (because that path contains AirMap.h). I don’t want to sound basic but have you tried erase cache? Believe me, I tried everything |
Will try it tomorrow inshAllah |
Oh my God! What a bad way I had to to found the solution. I were to Xcode -> clean -> Build.
So, I added ';' and deleted the line GMSPlacesClient provideAPIKey:@"MY_KEY"]; After that I executed again 'npm run ios' and all worked like a charm! |
Hello, guys~ You should make sure that pod is perfectly installed. I think AIRMap problem came from Podfile. To perfectly install, You follow next.
Happy coding, thanks. um... I think before you do $ pod install, you maybe delete node_modules and re-install. I recommend after deleting and re-installing node_module, then you do $ pod install |
I fixed this issue in my project by using |
I have done the following
It still says Invariant Violation: Native component for "AIRMap" does not exist. Can someone please help? |
@aniiskywalker and @rborn -- Can you pls clarified your solution? I am testing the above solution RN@0.56.0 ; React@16.4.1 and React-native-maps@0.21.0 ; and iOS 9 |
@JosephochNils Hello, can you please give more info? What steps have you tried? |
If you install the pods and followed the instructions properly and still see the problem then check to make sure your using the workspace of the project when opening Xcode instead of the of the xcodeproj.
Keith Einstein
Founder & CEO
Servd Inc.
Servd.com
…________________________________
From: Ana Victoria <notifications@github.com>
Sent: Sunday, July 22, 2018 11:04:03 AM
To: react-community/react-native-maps
Cc: Keith Einstein; Comment
Subject: Re: [react-community/react-native-maps] Native component for "AIRMap" does not exist' on IOS (#2064)
@JosephochNils<https://github.com/JosephochNils> Hello, can you please give more info? What steps have you tried?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#2064 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA-HLqWezL_jyQf4OG5d2qB_-OS3tJw8ks5uJJRjgaJpZM4SeJ_7>.
|
@aniiskywalker and @KeithEinstein - I have managed to fix it by following @7772 advices and the installation instruction. |
@sananddev did you fixed ? i have same error |
i have same error |
@aniiskywalker I have the same error on android |
@aniiskywalker is there a way to solve this same issue without using Cocoapods? |
@Khsed4 hello, sorry for answer till now, fortunately (or unfortunately hehe) I didn’t have problems with android, but someone fix the issue above on this post, hope it helps, please let us know. @ProteanDev Hi, I didn’t try it without using cocoa pods, what I know is if you don’t use cocoa pods you have to link library, be sure headers and frameworks (build settings)are set with react-native-maps folders. |
@Khsed4 here's my main application and my package json
|
@aniiskywalker firstly really appreciate your responses secondly I have solved my problem , not sure how I did it though . hahahaha |
Is this a bug report?
Not exactly, i think it needs more information for the instalation
Have you read the Installation Instructions?
Yes
Environment
react-native-maps: 0.20.1
Steps to Reproduce
I'm trying to use google maps for my project, I follow the instructions (I used pods with cocoapods)
I DON'T LINK REACT-NATIVE-MAPS and i get a red screen with an error 'Invariant Violation: Native component for "AIRMap" does not exist'
Expected Behavior
i'm trying to use maps and i spend all day long trying to find a solution but nothing works for me
Actual Behavior
I can't even show a map
Reproducible Demo
UPDATE: Hello Friends, I’ve seen that many of you still have this problem, I offered a solution (scroll down), my problem was related to Headers and frameworks not linked to my Xcode project, I understand that we can have different configurations, but, can you please take a look to my solution 👇? Thank you, have a nice development
The text was updated successfully, but these errors were encountered: