ios9

The resource could not be loaded because the App Transport Security policy requires the use of a secure connection

点点圈 提交于 2019-11-26 00:18:44
问题 I am facing the Problem when I have updated my Xcode to 7.0 or iOS 9.0. Somehow it started giving me the Titled error \"The resource could not be loaded because the App Transport Security policy requires the use of a secure connection\" Webservice Method: -(void)ServiceCall:(NSString*)ServiceName :(NSString *)DataString { NSURLSessionConfiguration *sessionConfiguration = [NSURLSessionConfiguration defaultSessionConfiguration]; [sessionConfiguration setAllowsCellularAccess:YES];

CFNetwork SSLHandshake failed iOS 9

旧巷老猫 提交于 2019-11-26 00:11:13
问题 has anyone with the iOS 9 beta 1 had this issue? I use standard NSURLConnection to connect to a webservice and as soon as a call is made to the webservice i get the below error. This is currently working in iOS 8.3 Possible beta bug? any ideas or thoughts would be great ! I know its very early in iOS 9 development Here is the full error: CFNetwork SSLHandshake failed (-9824) NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824) NSURLRequest * urlRequest =

iOS 9 Xcode 7 - Application appears with black bars on top and bottom

主宰稳场 提交于 2019-11-25 23:31:55
问题 Installed the app on iPhone 6 iOS9 and here is what happened. Notice black bars on top and bottom. It works just fine on iOS8. How I can fix it? I\'ve tried building with Xcode 6.4 & 7. Same result. (iPhone 5 used to run iPhone 4 apps like this) 回答1: Did you migrate your app from an earlier version of Xcode? If so then Xcode is now making an assumption about your screen size and you need a way of indicating the actual screen size at run time. There are two ways: a) If you use a launch screen.

iOS 9 not opening Instagram app with URL SCHEME

一笑奈何 提交于 2019-11-25 22:45:18
问题 The following URL opens on iOS 8.3 and lower, but it does not work and iOS 9 let instagramURL = NSURL(string: \"instagram://app\") Why won\'t the URL open? 回答1: iOS 9 has made a small change to the handling of URL scheme. You must whitelist the url's that your app will call out to using the LSApplicationQueriesSchemes key in your Info.plist . Please see post here: http://awkwardhare.com/post/121196006730/quick-take-on-ios-9-url-scheme-changes The main conclusion is that: If you call the

Transport security has blocked a cleartext HTTP

倾然丶 夕夏残阳落幕 提交于 2019-11-25 22:13:48
问题 What setting do I need to put in my info.plist to enable HTTP mode as per the following error message? Transport security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app\'s Info.plist file. Assume that my domain is example.com . 回答1: If you are using Xcode 8.0+ and Swift 2.2+ or even Objective C: <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict>

How do I load an HTTP URL with App Transport Security enabled in iOS 9? [duplicate]

安稳与你 提交于 2019-11-25 21:43:53
问题 This question already has an answer here: Transport security has blocked a cleartext HTTP 25 answers So, the new beta SDK of iOS released last night has \"App Transport Security\" which encourages developers to use https instead of http. In principle, this is a great idea, and I already use https in our staging/production environments. However, I don\'t have https set up in my local development environment, when the iOS app is connecting to a web service I\'m running on my laptop. From a bit