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

关于IOS配置问题,出现Native module cannot be null #416

Open
helloshuang opened this issue Sep 19, 2018 · 8 comments
Open

关于IOS配置问题,出现Native module cannot be null #416

helloshuang opened this issue Sep 19, 2018 · 8 comments

Comments

@helloshuang
Copy link

版本"react-native": "^0.52.0",
编译可以通过
项目中import { MapView } from 'react-native-amap3d'之后,就会报错
以下是安装信息等
image
image

image

image
image

@qiuxiang
Copy link
Owner

没有重新编译?

@helloshuang
Copy link
Author

编译很多次

@zhuhengtan
Copy link

解决没有啊?我手动导也出现这个问题

@qiuxiang
Copy link
Owner

就是配置问题,参考编译测试

@shmmly
Copy link

shmmly commented Nov 12, 2018

我也遇到了不过 我重启了下 电脑在编译就可以了。。。

@StoneYuan
Copy link

我也是遇到这个问题,重新导入也还是不行,应该是哪里引入出错了,但是我还没有找到解决方法

@StoneYuan
Copy link

我也是遇到这个问题,重新导入也还是不行,应该是哪里引入出错了,但是我还没有找到解决方法
我已解决!这个问题是大意了,在使用定位的时候忘记在pod里引入 react-native-amap-geolocation 导致

解决方法:
在Podfile 里加入
pod 'react-native-amap-geolocation', path: '../node_modules/react-native-amap-geolocation/lib/ios'

@hangu1116
Copy link

facebook/react-native#18683
打开.xcworkspace 文件
在 s.subspec "Core" do |ss| 下找到 ss.exclude_files
添加 "React/Fabric/*"

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

6 participants