containerURLForSecurityApplicationGroupIdentifier returns nil on iOS Simulator

前端 未结 7 1384
我寻月下人不归
我寻月下人不归 2020-12-18 18:27

Context

With iOS8 and extensions Apple introduced the App group containers (more info here).

Problem

We use it through NSFileManager\'s

7条回答
  •  长情又很酷
    2020-12-18 19:23

    For me there was some mess with my iOS Team Provisioning Profile (which is not required to run in Simulator).

    In order to run my app on my iPhone I had to first reconfigure the iOS Team Provisioning Profile for the Debug environment. Calling containerURLForSecurityApplicationGroupIdentifier: worked perfectly fine on the device. Afterwards I went back to the Simulator and - there you go - it worked again as well.

提交回复
热议问题