iqu*_*rio 10 xcode ios facebook-sdk-4.0 xcode6 ios8
我只是更新到Xcode 6,现在在FacebookSDK.framework> Headers> FBOpenGraph.h我有2个警告,一个读取
'atomic' attribute on property 'description' does not match the property inherited from NSObject
Run Code Online (Sandbox Code Playgroud)
第二读
'copy' attribute on property 'description' does not match the property inherited from NSObject
Run Code Online (Sandbox Code Playgroud)
代码I中第69行的这两个警告都在该行上方添加了注释这是我正在处理的.h文件
/*
* Copyright 2010-present Facebook.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#import <Foundation/Foundation.h>
#import "FBGraphObject.h"
/*!
@protocol
@abstract
The `FBOpenGraphObject` protocol is the base protocol for use in posting and retrieving Open Graph objects.
It inherits from the `FBGraphObject` protocol; you may derive custome protocols from `FBOpenGraphObject` in order
implement typed access to your application's custom objects.
@discussion
Represents an Open Graph custom object, to be used directly, or from which to
derive custom action protocols with custom properties.
*/
@protocol FBOpenGraphObject<FBGraphObject>
/*!
@property
@abstract Typed access to the object's id
*/
@property (retain, nonatomic) NSString *id;
/*!
@property
@abstract Typed access to the object's type, which is a string in the form mynamespace:mytype
*/
@property (retain, nonatomic) NSString *type;
/*!
@property
@abstract Typed access to object's title
*/
@property (retain, nonatomic) NSString *title;
/*!
@property
@abstract Typed access to the object's image property
*/
@property (retain, nonatomic) id image;
/*!
@property
@abstract Typed access to the object's url property
*/
@property (retain, nonatomic) id url;
/*!
@property
@abstract Typed access to the object's description property
*/
//*******************************************
//the line below this is where the warnings are
//&*********************************************
@property (retain, nonatomic) id description;
/*!
@property
@abstract Typed access to action's data, which is a dictionary of custom properties
*/
@property (retain, nonatomic) id<FBGraphObject> data;
@end
Run Code Online (Sandbox Code Playgroud)
当我运行我的应用程序时,我也会收到此错误,但不确定它的含义
registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.
Run Code Online (Sandbox Code Playgroud)

我在这里先向您的帮助表示感谢!!!
小智 7
我有同样的问题.
所以我改变了description对copy
然后description到atomic
没有更多的警告,您也可以尝试上传新的Facebook.SDK,因为他们可能已经改变了它
没问题
将Facebook SDK更新到最新版本可以解决您的问题,您可能正在使用尚未准备好用于iOS 8 SDK的旧版本
在此处下载 - https://developers.facebook.com/docs/ios
安装新的FB SDK后,您应该再次清理项目和构建而不会出现错误
| 归档时间: |
|
| 查看次数: |
3085 次 |
| 最近记录: |