ile çağırırken hata oluştu Bazen CloudCode işlevleri çağrılırken iOS 8'de bir hata alıyorum. Bazen sadece olur ve neden hiçbir fikrim yok:SSL Parse.com bulut işlevlerini iOS 8
Error: Error Domain=Parse Code=100 "The operation couldn’t be completed. (Parse error 100.)" UserInfo=0x17ed2150
{ Code=100,
error=Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made."
UserInfo=0x19d0c750 {
NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made.,
NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?,
_kCFStreamErrorCodeKey=-9824,
NSErrorFailingURLStringKey=https://api.parse.com/1/functions/weshread,
_kCFStreamErrorDomainKey=3,
NSUnderlyingError=0x19de4f40 "An SSL error has occurred and a secure connection to the server cannot be made.",
NSErrorFailingURLKey=https://api.parse.com/1/functions/weshread
}
...
}
Ack! Bu tüm ATS'yi devre dışı bırakıyor. Tek yapmanız gereken, "api.parse.com" için NSExceptionRequiresForwardSecrecy öğesi false olarak ayarlanmış bir istisnadır. – aranasaurus
Anlaştık, bu etrafta hızlı ve kirli bir çalışma. En iyi alternatif, Parse'nin TLSv2'yi API'ları üzerinde çalışmasını sağlamaktır. –
Xcode 7.0/Swift 2.0 projemde hem NSAlowsArbitraryLoads hem de NSExceptionRequiresForwardSecrecy'yi denedim; ve ben Parse.com –