xcode 7.0beta could not connect to development server.
Today I downloaded IOS9 and xcode7.0beta which is needed for ios9
When I try to build my existing project to both simulator and iphone. It refused to load the index.ios.bundle with msg...
'Application 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.'
How to make this 'Temporary exceptions' in info.plist file?
thank you very much
Adding the following to your Info.plist will disable ATS
< key>NSAppTransportSecurity< / key>
< dict>
< key>NSAllowsArbitraryLoads< / key>< true/>
< / dict>
I think this issue shouldn't be closed, we should probably try to make this work out of the box. Or perhaps apple should allow localhost or local ips to be loaded regardless?
File a bug with Apple if you have a case for local IPs. They might already have a way to whitelist certain IPs in which case we could add localhost. I don't think weakening security for the entire app is a good default if we can avoid it.
I'd imagine they implemented this to prevent naive implementations of OTA updates. But I do think it doesn't make sense for local IPs. I'm not an expert on IP addresses and other network-y things, but there's a few select ip ranges that are reserved for local networks right? Perhaps that could be automatically added to the whitelist(or atleast referenced somewhere in the docs)
It has nothing to do with OTA updates. This is blocking HTTP and requiring HTTPS. An alternative solution would be for the packager to serve a self-signed certificate though I'm not sure what it would take to get the client to accept it.
I've added the plist entry but it's not clearing up the error. I'm using the latest Xcode Beta released this week - Version 7.0 beta 3 (7A152u)
Works for me for Version 7.0 beta 3 (7A152u)
This is fixed in master (create a new project to get the changes).
So is there any way to update an existing project? (other than create a new one and copy files)
You could look at the SampleApp's xcodeproj and manually port over the plist entry that's mentioned earlier in this thread.
The above .plist entry worked immediately for me (on an old project ported to Swift 2).
I've added the plist entry but it's not clearing up the error. I'm using the latest Xcode Beta released this week - Version 7.1 beta (7B75) Any suggestion?
I am in the same situation, which is quite annoying since I have been working on this project for the last three months. However I am not sure if the simulator doesn't pick up the new updated info.plst or that is not working.
I am sorted, I was trying to change the info from xcode, but opening the file clearly showed my xml was wrong.
:)
using xcode 7.1 beta 3. None of the solutions are working for me. Did any one solved for xcode 7.1 beta 3?
tried, the above solutions not working for me either. Any suggestion?
Yes I can
Am using Xcode Version 7.1 beta (7B75)
What's the solution here? I read the app faces rejection possibility if this is in your plist.