Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 应用程序引用有效负载中的非公共选择器/<;Appname>;。app/<;应用程序名称>;:译码器_Objective C_Facebook Graph Api_Ios7_Socket.io_Xcode5 - Fatal编程技术网

Objective c 应用程序引用有效负载中的非公共选择器/<;Appname>;。app/<;应用程序名称>;:译码器

Objective c 应用程序引用有效负载中的非公共选择器/<;Appname>;。app/<;应用程序名称>;:译码器,objective-c,facebook-graph-api,ios7,socket.io,xcode5,Objective C,Facebook Graph Api,Ios7,Socket.io,Xcode5,我通过organizer向应用商店提交应用时收到此警告 应用程序引用有效负载/.app/:解码器中的非公共选择器 我知道,如果我们在应用程序中使用任何第三方API,就会收到此警告。我在应用程序中使用了聊天库功能。也使用facebook iOS sdk来实现fb。所以我不知道是什么原因导致了这个警告。!请参阅附件,以便更好地理解仅当在您自己的代码或第三方代码中使用与标记为非公共的选择器同名的选择器时,您可能会收到此警告。这种事总是发生在我身上。从未因此而被拒绝过 “同一个名称”指的是一个简单的东西

我通过organizer向应用商店提交应用时收到此警告

应用程序引用有效负载/.app/:解码器中的非公共选择器


我知道,如果我们在应用程序中使用任何第三方API,就会收到此警告。我在应用程序中使用了聊天库功能。也使用facebook iOS sdk来实现fb。所以我不知道是什么原因导致了这个警告。!请参阅附件,以便更好地理解

仅当在您自己的代码或第三方代码中使用与标记为非公共的选择器同名的选择器时,您可能会收到此警告。这种事总是发生在我身上。从未因此而被拒绝过

“同一个名称”指的是一个简单的东西,就像您有一个带有此选择器的对象一样:

-(id) XYZKMyClass doSomethingFancy:(id) toThis
…还有一个类似这样的选择器,用于苹果的内部功能

-(id) ApplesClass  doSomethingFancy:(id) toSomething
所以:看起来他们在寻找的是签名-(id)doSomethingFancy:(id)。你可以看到很容易意外地碰到这个

他们可能会在App Store警察总部执行更深入的检查,并确定标记的选择器在您的代码中,因此是正确的。

这可以帮助您:

之前:

#import "SocketIOJSONSerialization.h"

extern NSString * const SocketIOException;

// covers the methods in SBJson and JSONKit
@interface NSObject (SocketIOJSONSerialization)

// used by both JSONKit and SBJson
- (id) objectWithData:(NSData *)data;

// Use by JSONKit serialization
- (NSString *) JSONString;
**- (id) decoder;**

// Used by SBJsonWriter
- (NSString *) stringWithObject:(id)object;

@end
#import "SocketIOJSONSerialization.h"

extern NSString * const SocketIOException;

// covers the methods in SBJson and JSONKit
@interface NSObject (SocketIOJSONSerialization)

// used by both JSONKit and SBJson
- (id) objectWithData:(NSData *)data;

// Use by JSONKit serialization
- (NSString *) JSONString;
**- (id) jsonDecoder;**

// Used by SBJsonWriter
- (NSString *) stringWithObject:(id)object;

@end
之后:

#import "SocketIOJSONSerialization.h"

extern NSString * const SocketIOException;

// covers the methods in SBJson and JSONKit
@interface NSObject (SocketIOJSONSerialization)

// used by both JSONKit and SBJson
- (id) objectWithData:(NSData *)data;

// Use by JSONKit serialization
- (NSString *) JSONString;
**- (id) decoder;**

// Used by SBJsonWriter
- (NSString *) stringWithObject:(id)object;

@end
#import "SocketIOJSONSerialization.h"

extern NSString * const SocketIOException;

// covers the methods in SBJson and JSONKit
@interface NSObject (SocketIOJSONSerialization)

// used by both JSONKit and SBJson
- (id) objectWithData:(NSData *)data;

// Use by JSONKit serialization
- (NSString *) JSONString;
**- (id) jsonDecoder;**

// Used by SBJsonWriter
- (NSString *) stringWithObject:(id)object;

@end

我进入这个链接:

检查项目中使用的所有类的目标成员资格。在某些情况下,当您创建或复制目标时,可能会出现警告,但不会出现链接错误。

不客气。很抱歉,我不能给你一个官方解释的链接,但是我还没有找到任何关于这个主题的链接。我可以肯定的是,每次我向我的主应用提交更新时,这种情况都会发生,到目前为止还没有什么不好的事情发生。我希望有一种方法可以搜索非公共选择器,以便我可以重命名它。注意到此线程已经存在了几个月,但是。。。有没有办法在编译/构建时而不是在将应用程序提交到应用商店后通知名称空间冲突?嗨,拜伦,如果有,很抱歉,我没有找到它。苹果会不会因为同样的警告而拒绝:应用程序引用了Payload/.app/:id@andersjohansenth中的非公共选择器这正是我的问题。谢谢