Unable to retrieve CarrierName

后端 未结 4 1572
醉梦人生
醉梦人生 2021-02-04 12:08

Using iPhone6, Xcode 8.1, running iOS 10.1.1, executing the following Swift code I keep getting

Unable to retrieve CarrierName

Error mes

4条回答
  •  日久生厌
    2021-02-04 12:29

    As a solution to a different issue I did the following. Whether this fixes it or just suppresses the msg I don't know, as I was getting the msg but it was never crashing my app.

    In Xcode

    • Click on your active scheme name right next to the Stop button
    • Click on Edit Scheme....
    • in Run (Debug) select the Arguments tab
    • in Environment Variables click +
    • add variable: OS_ACTIVITY_MODE = disable

    credit here : https://stackoverflow.com/a/40160779

提交回复
热议问题