我有一个使用AdHoc分发配置文件签名的*.ipa文件.此外,我有Xcode,应用程序商店配置文件,但没有此应用程序的源代码.有没有办法让我的app应用程序商店辞职(我知道,我可以辞职使用,我是这样做的,我做过它,但使用Enterprice构建)并将其提交给AppStore?
我尝试使用以下代码从我的公司电子邮件中通过IMAP协议获取邮件:
MCOIMAPSession *session = [[MCOIMAPSession alloc] init];
[session setHostname:@"imap.mymail.com"];
[session setPort:993];
[session setUsername:@"accidbright@mymail.com"];
[session setPassword:@"password"];
[session setConnectionType:MCOConnectionTypeTLS];
MCOIMAPFetchMessagesOperation * fetchOperation = [session fetchMessagesByUIDOperationWithFolder:inboxFolder requestKind:MCOIMAPMessagesRequestKindHeaders uids:searchResult];
[fetchOperation start:^(NSError *error, NSArray *messages, MCOIndexSet *vanished) {
if (error) {
NSLog(@"Fetching all the message subjects error: %@!", error);
} else {
NSLog(@"Fetched all the messages subjects!");
}
}];
Run Code Online (Sandbox Code Playgroud)
我得到错误:
Fetching all the message subjects error: Error Domain=MCOErrorDomain Code=4
"The certificate for this server is invalid." UserInfo=0x7889ab0
{NSLocalizedDescription=The certificate for this server is invalid.}!
Run Code Online (Sandbox Code Playgroud)
我知道,我们的邮件是使用域名证书签名的,因此在域外,它是未经验证的证书.但几乎所有使用邮件(fe …