NSURLSession/NSURLConnection HTTP load failed on OSX app - macos

i am testing OSX application that fetch remote server links like https://www.google-analytics.com/collect.
I have found many questions about that but can't find match answer for that .The error i am getting are
NSURLSession/NSURLConnection HTTP load failed
Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={_kCFStreamErrorCodeKey=1, _kCFStreamErrorDomainKey=1}
App use "APP SANDBOX" with "com.apple.security.network.server" set to true , all normal http links are working except secure https links.
NSAllowsArbitraryLoads set to true as well.
What i found so far is if APP PROJECT is turn on "ENABLE DEVELOPER SIGNING" , it doesn't work.
However if APP PROJECT is turn off "DEVELOPER SIGNING" , it work.
Any idea what it could be and how to solve?
Regards,
John

I already found out why,
I answered the question here
Technically you need to check the
Outgoing Connections
from Capabilities>App Sanbox

Related

Unable to lookup the settings for submission for the application at this time due to a general error

When I try upload my app to app store I get the following error: "Unable to lookup the settings for submission for the application at this time due to a general error". Have anyone ever get this message? Is it due to an Apple developer portal problem?
IDEDistribution.critical.log:
2017-01-06 15:32:14 +0000 The store submission configuration response failed with errors: (
"Error Domain=ITunesConnectionOperationErrorDomain Code=1614 \"Unable to lookup the settings for submission for the application at this time due to a general error\" UserInfo={NSLocalizedRecoverySuggestion=Unable to lookup the settings for submission for the application at this time due to a general error, NSLocalizedDescription=Unable to lookup the settings for submission for the application at this time due to a general error, NSLocalizedFailureReason=iTunes Store operation failed.}"
), warnings: (
), info messages: (
).
2017-01-06 15:32:16 +0000 [MT] Presenting: Error Domain=ITunesConnectionOperationErrorDomain Code=1614 "Unable to lookup the settings for submission for the application at this time due to a general error" UserInfo={NSLocalizedRecoverySuggestion=Unable to lookup the settings for submission for the application at this time due to a general error, NSLocalizedDescription=Unable to lookup the settings for submission for the application at this time due to a general error, NSLocalizedFailureReason=iTunes Store operation failed.}
I have found the solution, before uploading the app by xcode, you should create the app at http://itunesconnect.apple.com/
I had the same issue, and after playing around I realized that when updating a new version of an app, the "Bundle ID" must match the original version "Bundle ID".
Matching the Bundle ID to my version 1.0 upload solved the problem.
I got the same problem, and I realized I made spelling mistake of bundle Id...
I'm getting the same for the last couple of hours.
From the verbose.log:
Bundle ID based store submission configuration response received = (null)
Looks like a problem at their end.
I had this same problem and I went to analyze my account on Itunes, I realized that I was as a Developer. To create apps and send versions to iTunes you must also have access to the Application Manager function
In Itune connect,App info: group ID + suffix ID must be as same as your Bundle ID in Xcode Info.plist
In my case the problem was that I had specified the wrong bundle ID in my app settings in xCode. It didn't match the bundle ID I had specified in iTunes connect.
Basically this setting in xCode:
Needs to match this setting in iTunes Connect:

Why is my meteor app getting these errors on firefox but not other browsers?

The web app that I am building in meteor works in chrome and I.E.(Other than a UI bug in I.E.) but it starts acting strange in Firefox. When I run it on my localhost and on the deployment to meteor.com, I don't get any errors in the console in the browsers' developer tools.
When I run it in Firefox, things start acting weird. On Mac OSX, if I run the app on my localhost and open it in FF it is just fine. However, when I open up the app that deployed to meteor.com via meteor deploy [my-app-url].com, I get the following errors but I can still use everything in my app:
Error 1:
mutating the [[Prototype]] of an object will cause your code to run very slowly;
instead create the object with the correct initial [[Prototype]] value using Object.create
Error 2:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
at https://ddp--3071-[my-app-url].com/sockjs/info?cb=v9pygo9mzn.
(Reason: CORS request failed).
While right now I am not able to figure out what is causing the first error, I am mostly worried about the second error.
When I open up the app from it's deployment in FF on Windows 8, I get the first error once, and then I get the second error repeatedly and the app never loads(it just stays on my loading template from the iron router). My deployed app runs just fine on Chrome and I.E.
I don't send any kind of request to another server in my app, so I am not sure why I am getting a CORS request error. I have not set up SSL or began to make a certificate yet, so I am not sure if this could be causing this kind of error in FF as I got another exception on my login page in FF on my localhost saying that I shouldn't have password elements when I'm not using https.
Does anyone know what could be causing this?
Sorry that I provide any code, as I don't know what code I would post to solve this problem since I don't actually request anything from another server in code that I have written.
Thanks in advance for any responses!
If anyone is interested, it seems as if my combination of the aldeed:collectio2 package and one of my other packages was the cause of my problems. I removed this package and my issues went away.

"Cannot connect to server" while installing ipa through OTA

I have provisioning profile is installed and successfully created the ipa. The ipa will install in Dropbox without any problem, but the same ipa will give the error while installing through OTA.
I have attached the screenshot of the error.
How can i solve the issue. Any help would be appreciated.
Thanks.
The answer may depend on what OTA server you are using.
If you are running your own OTA server, like I am, then the problem may be your URL.
I saw the exact same "Cannot connect to..." error today with my personal OTA server. The problem was with the itms-services URL.
itms-services://?action=download-manifest&url=https://3ea1be94.ngrok.com/TestApp.plist
The .plist file name and the hostname for my &url= parameter were incorrect. Once I fixed them and refreshed the page, everything was fine.
If you are using your own OTA server, check that the &url= paramter is accurate and make sure it is using HTTPS. If you are not running your own OTA server, check with whoever is running it as they may be able to assist.
To proper distribute the IPA file from HTTP you should put a webpage with a Link pointing the itms-services special link for example:
Download App
This manifest file you is very simple, you need the bundleid and the URL to the IPA file
You can find an example of start from this one: https://gist.github.com/kEpEx/777df3cb1fd4bd851409
A couple of important things to consider
Valid certificate is required, and URL from Manifest and IPA should be HTTPS, (I'm not sure if self signed certificated works on this)
Take care of the manifest URL, sometimes you have parameters on the URL, you want to urlencode them or use simplier url
Sometimes you want to auth the users before allowing them to download the manifest or IPA files, take care of this, since cookies on the safari are lost when you click on this link, so if you check for session there based on the cookie you will get the "Cannot connect to" message. You will need to came out with a better aproach like generating temporaty tokens or something like that (this point took me 2 days of work to figure it out why it was failing)

"Server not found error " while making HTTPS call from wp7

I am getting "Server Not found error" while calling Https(SSL) php page. The page is not getting loaded from Wp7 browser giving error as Error loading page, do you want to continue. What are the ways I can by pass the error in WP7 code. The site can be viewed in Desktop
Thanks and Regards,
As you say it works on the desktop without any issue, the root CA for the certificate is likely not one supported by the phone.
Find out what it is and then compare with the details at http://msdn.microsoft.com/en-us/library/gg521150(v=vs.92).aspx

Can not Browse any Asp.Net File system website in any browser

I am making asp.net website in my system using web location File System. i try to browse my localhost website but it cannot be browse in any browser(Firefox,chrome etc). after searching error on google i also made changes in LAN setting of browser but still can't get any result.
In Chrome i am receiving following error
"This webpage is not available
The webpage at http://localhost:2625/Website/Default.aspx might be temporarily down or it may have moved permanently to a new web address.
Error 101 (net::ERR_CONNECTION_RESET): Unknown error."
In Firefox i am receiving following error
"The connection was reset
The connection to the server was reset while the page was loading."
How can i resolve this problem ?
i have resolved my problem.
i got help from following link
http://forums.asp.net/t/1437368.aspx

Resources