How can I figure out which URL is being blocked by App Transport Security?

前端 未结 2 1190
猫巷女王i
猫巷女王i 2020-12-02 11:32

I\'m upgrading an iOS app to iOS 9, and I have some URLs that are not secure, and I need a few exceptions to App Transport Security. I\'ve added the two that I know about, b

2条回答
  •  甜味超标
    2020-12-02 11:40

    Accepted answer is correct but If you're doing this on Xamarin iOS, you will need to use;

    Environment.SetEnvironmentVariable("CFNETWORK_DIAGNOSTICS", "3", EnvironmentVariableTarget.Process);
    

    Also, if you're looking for the log file use something like Simulator manager to find the correct location easier (https://github.com/tue-savvy/SimulatorManager).

提交回复
热议问题