忽略标志指针 0x10ef76ec0 的 RegisterValidateFunction():在 Xcode 中的该地址找不到标志

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51454279/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:42:36  来源:igfitidea点击:

Ignoring RegisterValidateFunction() for flag pointer 0x10ef76ec0: no flag found at that address in Xcode

swiftxcode

提问by onkar dhanlobhe

How can I fix the issue?

我该如何解决这个问题?

W0721 13:54:19.105928 1 commandlineflags.cc:1503] Ignoring RegisterValidateFunction() for flag pointer 0x10ef76ec0: no flag found at that address

W0721 13:54:19.105928 1 commandlineflags.cc:1503] 忽略标志指针 0x10ef76ec0 的 RegisterValidateFunction():在该地址找不到标志

回答by abed

This problem occurs because your code try to using non-existing pointer in cocoa pods. You may using framework that using cocoa pods and install needed pods on the main project.

出现此问题是因为您的代码尝试使用可可豆荚中不存在的指针。您可以使用使用可可豆荚的框架并在主项目上安装所需的豆荚。

The solution is to make cocoa pods version similar in both framework and project , run pod updatefrom the terminal in both framework and project orspecify every pod version to be same in both

解决方案是使框架和项目中的cocoa pods版本相似,在框架和项目中pod update从终端运行指定每个pod版本在两者中都相同。

Example

例子

framework pod file :

框架 pod 文件:

pod 'GooglePlaces' '~> 3.1.0'

project pod file :

项目 pod 文件:

pod 'GooglePlaces' '~> 3.1.0'

I hope this solve your problem.

我希望这能解决你的问题。

回答by Joe149

I've seen this error when I had a UITableViewin a view controller and:

当我UITableView在视图控制器中有一个时,我看到了这个错误:

  1. I connected the DataSourceand Delegatefor table view in the Storyboard.
  2. I did NOT declare the UIViewControlleras UITableViewDelegateand UITableViewDataSource.
  1. 我在 Storyboard 中连接了DataSourceDelegatefor 表视图。
  2. 我没有声明UIViewControllerasUITableViewDelegateUITableViewDataSource

I usually assign delegate/datasource in code (which would have given me a warning).

我通常在代码中分配委托/数据源(这会给我一个警告)。