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

pod install 报错 #154

Closed
hreochen opened this issue Sep 19, 2022 · 6 comments
Closed

pod install 报错 #154

hreochen opened this issue Sep 19, 2022 · 6 comments

Comments

@hreochen
Copy link

使用了这两个库 pod install 会报错

 "react-native-amap-geolocation": "^1.2.0",
  "react-native-amap3d": "^3.1.3",

[!] CocoaPods could not find compatible versions for pod "AMapFoundation":
In snapshot (Podfile.lock):
AMapFoundation (= 1.6.9, ~> 1.6.9)

In Podfile:
react-native-amap-geolocation (from ../node_modules/react-native-amap-geolocation) was resolved to 1.2.0, which depends on
AMapLocation (~> 2.9.0) was resolved to 2.9.0, which depends on
AMapFoundation (>= 1.7.0)

@qiuxiang
Copy link
Owner

得更新下 amap3d 这个库的依赖版本

@hreochen
Copy link
Author

得更新下 amap3d 这个库的依赖版本

大佬具体怎么改

@qiuxiang
Copy link
Owner

qiuxiang commented Sep 20, 2022

如果你要临时解决的话,改 node_modules/react-native-amap3d/react-native-amap3d.podspec

https://github.com/qiuxiang/react-native-amap3d/blob/8c4e7cca0cdf52836d62f69ff23e4318ecef63aa/react-native-amap3d.podspec#L19

@qiuxiang
Copy link
Owner

本来我要发个新版本的,但 android 那边冲突了,暂时没能解决,先不发了

@hreochen
Copy link
Author

可以了

@happystudy666
Copy link

怎么解决的。。。是改成9.4.0就好了吗。。为什么我改了不行。。。

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

3 participants