XCode 4中如何检查类属于哪个框架?
例如,“Reachability”,
"_SCNetworkReachabilitySetCallback", referenced from:
-[Reachability startNotifer] in xxxxx.a(Reachability.o)
我收到这样的错误...我知道我只是缺少在其中导入框架,但是如何检查 Reachability
来自哪个框架?我怎么知道它是来自SystemConfiguration
? XCode 是否提供任何方法来找到它,而不是 Google?谢谢
For example, "Reachability",
"_SCNetworkReachabilitySetCallback", referenced from:
-[Reachability startNotifer] in xxxxx.a(Reachability.o)
I get the error like this....I know I just missing import a framework inside this, but how can I check the Reachability
is from which framework? How can I know it is from SystemConfiguration
?? instead of Google it, does XCode provide any way to find that out? Thx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个链接器错误,可以通过链接(而不是导入)导出该符号的框架来解决。您可以使用文档查看器轻松找到相关框架。
例如,如果您打开文档查看器 ⌥⌘?,搜索
SCNetworkReachabilitySetCallback
并打开相应的文档页面,您将在页面的最顶部看到:< img src="https://i.sstatic.net/078Zs.png" alt="在此处输入图像描述">
That’s a linker error, which is solved by linking (as opposed to importing) the framework that exports that symbol. You can easily find out the relevant framework by using the documentation viewer.
For example, if you open the documentation viewer ⌥⌘?, search for
SCNetworkReachabilitySetCallback
and open the corresponding documentation page, at the very top of the page you’ll see: