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
Adding libGrowingIORNPlugin.a can not use location. [iOS] #4
Comments
@FaiChou 你好,这个问题的原因是growingio 的hook机制有向delegate注册kvo的操作,触发了facebook的断言,而facebook的断言没有包含这种情况的判断 从而造成了您的不便; 解决方式:
这句断言,查看位置功能是否正常工作 |
这是个临时解决的方法. 试了下可以的. 每次执行yarn 都需要手动更改吧? react-native-growingio 啥时候能优化掉这个bug? |
@FaiChou
使用第二种hook模式 |
好的谢谢. 使用第二种不行. 尝试第一种method swizzle也未果, 还是用手动注释方法吧. 我的尝试方法:
|
@FaiChou 方便的话可否给我一个可以复现的demo |
rn demo splash页结束后跳到home页, home页在willmount进行请求地理位置, 立马报错. (添加了growingio.a 后)
|
@FaiChou 你可以在工程中引入这个patch fix这个问题,日后如果facebook 修掉了,可以把patch删除 |
OK. 可以使用 👍🏻 |
After I adding
react-native-growingio
to my project,location
just broke up.After tried remove
.a
,location
works well !!Location
is a big part of my project's feature, after launch app to home page, it will get current position. It is very well before addinglibGrowingIORNPlugin.a
. But .PS. I added
LocationAlwaysUse
,LocationAlwaysUseAndWhileUse
,LocationUsage
,LocationWhenInUse
these four descriptions to info.plist.My environment:
The text was updated successfully, but these errors were encountered: