ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

Add plugin on iOS platform #93

Closed jjvillavicencio closed 5 years ago

jjvillavicencio commented 5 years ago

I'm submitting a ... (check one with "x")

If you choose 'problem or bug report', please select OS: (check one with "x")

cordova information: (run $> cordova plugin list)

cordova-plugin-device 2.0.2 "Device"
cordova-plugin-googlemaps 2.4.6 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.2.0 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

"@ionic-native/core": "^4.15.0",
    "@ionic-native/google-maps": "^4.14.0",

Current behavior:

Installing "cordova-plugin-googlemaps" for ios
--[cordova-plugin-googlemaps]------------------------
From version 2.4.5, the cordova-plugin-googlemaps uses CocoaPod.
No longer necessary com.googlemaps.ios plugin.
Automatic uninstalling com.googlemaps.ios plugin...
-----------------------------------------------------
Failed to install 'cordova-plugin-googlemaps': undefined
CordovaError: Promise rejected with non-error: 'Version should contain only numbers and dots'
    at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)
[ERROR] An error occurred while running subprocess cordova.

        cordova platform add ios --save exited with exit code 1.

Screen capture or video record:

screen shot 2018-10-15 at 2 37 51 pm
wf9a5m75 commented 5 years ago

Can you see any characters in version definition that matches agains the rule?

<plugin id="cordova-plugin-googlemaps" version="2.4.6" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">

https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/v2.4.6/plugin.xml#L2

wf9a5m75 commented 5 years ago

I guess your cocoapod is old.

jjvillavicencio commented 5 years ago

I guess your cocoapod is old. Hi thanks for response, I have the latest version

MacBook-Pro-de-Quilson:prueba qbejarano$ pod --version
1.6.0.beta.1
jjvillavicencio commented 5 years ago

Can you see any characters in version definition that matches agains the rule?

<plugin id="cordova-plugin-googlemaps" version="2.4.6" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">

https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/v2.4.6/plugin.xml#L2

<?xml version='1.0' encoding='utf-8'?>
  <plugin id="cordova-plugin-googlemaps" version="2.4.6" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
  <name>cordova-plugin-googlemaps</name>
wf9a5m75 commented 5 years ago

If you can't solve by yourself, please share your project files on github.

wf9a5m75 commented 5 years ago

ping

AFoaad commented 5 years ago

@wf9a5m75 i have the same issue


Installing "cordova-plugin-googlemaps" for ios
--[cordova-plugin-googlemaps]------------------------
From version 2.4.5, the cordova-plugin-googlemaps uses CocoaPod.
No longer necessary com.googlemaps.ios plugin.
Automatic uninstalling com.googlemaps.ios plugin...
-----------------------------------------------------```
`cocoa pod version 1.5.3`
wf9a5m75 commented 5 years ago

That's not error message.

AFoaad commented 5 years ago

i updated the cocoa pods and getting this error

The following build commands failed:
        CompileC /Users/anspireagency/Library/Developer/Xcode/DerivedData/Doctory-cswdyztwiawywbgslbeprrywufql/Build/Intermediates.noindex/Doctory.build/Debug-iphonesimulator/Doctory.build/Objects-normal/x86_64/PluginCircle.o Doctory/Plugins/cordova-plugin-googlemaps/PluginCircle.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
(node:1928) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/ios/cordova/build-debug.xcconfig,-workspace,Doctory.xcworkspace,-scheme,Doctory,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/ios/build/sharedpch
(node:1928) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1928) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

and this fatal error: 'GoogleMaps/GoogleMaps.h' file not found

import <GoogleMaps/GoogleMaps.h>

    ^~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.

wf9a5m75 commented 5 years ago

https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2434

wf9a5m75 commented 5 years ago

ping

schagani commented 5 years ago

@wf9a5m75 Are you using Ionic 4 version? If yes then please try below command

npm install --save @ionic-native/core@beta @ionic-native/google-maps@beta

wf9a5m75 commented 5 years ago

Are you asking me, or do you giving me a hint?

schagani commented 5 years ago

Its a hint

wf9a5m75 commented 5 years ago

Thank you, but I'm the author of this plugin. It means I develop this plugin and ionic-native/google-maps :)

wf9a5m75 commented 5 years ago

Since there is no response for a while, I close this thread.

Thierry-Santos commented 5 years ago

exactly same error here when: ionic cordova platform add ios

--[cordova-plugin-googlemaps]------------------------
From version 2.4.5, the cordova-plugin-googlemaps uses CocoaPod.
No longer necessary com.googlemaps.ios plugin.
Automatic uninstalling com.googlemaps.ios plugin...
-----------------------------------------------------
Failed to install 'cordova-plugin-googlemaps': undefined
CordovaError: Promise rejected with non-error: 'Version should contain only numbers and dots'

`<?xml version='1.0' encoding='utf-8'?>

cordova-plugin-googlemaps` MBP-de-Thierry:app-ionic trbr$ pod --version 1.6.0.beta.2
lordsteggu commented 5 years ago

I was getting the exact same issue, whether it is helpful or not.

I removed the IOS platform, now previously I had to SUDO ionic cordova platform add ios however, there was an error part way down about cocoapods not liking installing from admin.

So I tried it without SUDO, I didn't have permission, so I gave myself permission - $ sudo chown -R LOGIN /usr/local/lib/node_modules/cordova

Where LOGIN is replaced by the user you are logged in as.

Then run ionic cordova platform add ios

It doesn't seem to error anymore. This was for plugin name="cordova-plugin-googlemaps" spec="^2.4.6" just in case you was wondering.

Then, I changed terminal to platforms/ios ran pod install then opened the xcodeproj and I had no issues in the slightest with file paths, and files missing.

I hope this helps

2diegoduque commented 5 years ago
Captura de pantalla 2019-06-11 22 38 12

to date the error continues

LautaroLorenz commented 5 years ago

"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag. Failed to install 'cordova-plugin-googlemaps':undefined

uvconnects commented 4 years ago

this error keeps coming back with no fix over a year this is some real nonsense.

zulkarnainshah commented 4 years ago

I hit this error too on an ionic 4 project.