gpt4 book ai didi

objective-c - 我如何配置 CocoaPods 以使用 https ://github. com/RestKit/cocoa-oauth 而不是过时的?

转载 作者:可可西里 更新时间:2023-11-01 06:16:41 25 4
gpt4 key购买 nike

在启用了 ARC 的新创建的 Xcode 项目中,RKRequest.m 中有警告消息:

Semantic Issue:
Instance method '-hostAndPort' not found (return type defaults to 'id')
Semantic Issue:
Class method '+URLRequestForPath:PUTParameters:scheme:host:consumerKey:consumerSecret:accessToken:tokenSecret:' not found (return type defaults to 'id')
Semantic Issue:
Instance method '-hostAndPort' not found (return type defaults to 'id')
Semantic Issue:
Class method '+URLRequestForPath:POSTParameters:scheme:host:consumerKey:consumerSecret:accessToken:tokenSecret:' not found (return type defaults to 'id')
Semantic Issue:
Instance method '-hostAndPort' not found (return type defaults to 'id')

这是Podfile:

platform :ios

dependency 'Facebook-iOS-SDK', '1.2'
dependency 'RestKit', '0.10.1'

与:

cocoapods (0.6.0.rc2)

如何修复警告?

更新:

经过进一步调查,CocoaPods 似乎依赖于一个过时的 cocoa-oauth 库,描述为 in this issue .那么问题就变成了:

最佳答案

我对椰子足类一无所知,但我知道你的警告。这些警告意味着在 header 中找不到您尝试发送对象的消息。

这可能意味着几件事:

- the header file is not in the search path of your build settings. 
- the header file does not exist.
- the header file is not included in your project.
- the methods do not exist at all or do not exist in your header.

确保您正在导入 RKRequest.h 文件并且该文件位于搜索路径中。请记住,如果 RKRequest.m 是框架或库的一部分,您的项目仍然需要 header 。

关于objective-c - 我如何配置 CocoaPods 以使用 https ://github. com/RestKit/cocoa-oauth 而不是过时的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10978600/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com