2014-09-18 4 views
10

में 2 चेतावनी देता है 2 चेतावनी एक है कि पढ़ताFacebookSDK मैं सिर्फ FacebookSDK.framework> हेडर> FBOpenGraph.h में Xcode 6 पर अपडेट करें और अब xcode6

'atomic' attribute on property 'description' does not match the property inherited from NSObject 

है और दूसरा पढ़ता

'copy' attribute on property 'description' does not match the property inherited from NSObject 

दोनों कोड में लाइन लाइन 69 पर इन चेतावनियों मैं सिर्फ इतना है कि लाइन यह है ज फ़ाइल के बारे में मैं

/* 
* 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 
ले रहा हूँ ऊपर एक टिप्पणी को शामिल किया है

जब मैं अपने एप्लिकेशन को चलाने मैं भी इस त्रुटि हो रही है नहीं यकीन है कि इसका क्या मतलब है या तो

registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later. 

enter image description here

मदद के लिए धन्यवाद अग्रिम में !!!

उत्तर

7

मुझे एक ही समस्या थी।

तो मैं copy

को description बदल और फिर descriptionatomic

और कोई और अधिक चेतावनी के लिए, आप के रूप में भी वे इसे

कोई समस्या नहीं है परिवर्तित हो सकता है एक नया Facebook.SDK अपलोड करने की कोशिश कर सकते

1

~/लाइब्रेरी/डेवलपर/एक्सकोड पर जाएं और एक्सकोड निर्देशिका की पूरी सामग्री को हटा दें (कृपया ध्यान रखें कि वहां कुछ एक्सकोड अभिलेखागार हैं आदि। इसलिए सुनिश्चित करें कि आप जो कुछ भी चाहते हैं उसे खोले नहीं जाएंगे)।

+0

क्या आप खोजक के बारे में बात कर रहे हैं? – iqueqiorio

+0

हां, लेकिन ~/लाइब्रेरी फ़ोल्डर डिफ़ॉल्ट रूप से छिपा हुआ है। – czaku

+0

जब मैं अपने खोजक में हूं और मैकिंटोश एचडी पर जाता हूं तो मुझे लाइब्रेरी और डेवलपर अखरोट दिखाई देता है तो कोई एक्सकोड – iqueqiorio

5

नवीनतम संस्करण में फेसबुक एसडीके अपडेट कर रहा है अपने मुद्दों को हल करना चाहिए, तो आप शायद पुराने संस्करण है जो तैयार नहीं है का उपयोग कर रहे iOS 8 एसडीके के लिए

यहाँ डाउनलोड - https://developers.facebook.com/docs/ios

आप नए अमेरिकन प्लान एसडीके स्थापित करने के बाद आपको चाहिए बस स्वच्छ परियोजना और त्रुटियों के बिना फिर से निर्माण

2

मैंने संपत्ति पर टिप्पणी करके चेतावनी तय की।

ये चेतावनियां FBOpenGraphObject.h से आ रही हैं। यदि आप उन्हें उत्पादित लाइन की जांच करते हैं तो आप देखेंगे कि वर्णन विशेषता वैसे भी कमजोर है और उस ऑब्जेक्ट डिस्क्रिप्शन का उपयोग किया जाएगा।

@property (retain, nonatomic) id  Description __attribute__ ((deprecated("use objectDescription instead"))); 

मैं सुझाव दूंगा कि आप केवल एफबी सिफारिश का पालन करें। सबसे अधिक संभावना है कि आप इस संपत्ति का उपयोग नहीं कर रहे हैं। मेरे मामले में, चूंकि मैं इसका उपयोग नहीं कर रहा था, इसलिए संपत्ति पर टिप्पणी करने से चेतावनियां हटा दी गईं।

उम्मीद है कि यह मदद करता है।

+0

हां, यह सबसे अच्छा समाधान है –

1

बस इस चेतावनी को अक्षम किया गया

#pragma clang diagnostic push 
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" 
@property (retain, atomic) id description __attribute__ ((deprecated("use objectDescription instead"))); 
#pragma clang diagnostic pop 
संबंधित मुद्दे