Thursday, August 24, 2017

How to get iPone document directory from enterprise distributed application (iOS 10.0 +)

Due to Apple has tightened the security with their enterprise distribution with iOS 10.0 and above, we can't get the device container logs from our usual approach. 

Here what I am suggesting, change the singing of your real enterprise application from Enterprise Distributor to Enterprise Development. So we can pull the container using our old approach. After you are doing this exercise your original app will override and it may useless.

  1. Create a sample test project using same bundle id, increasing version
  2. Use same device which your Enterprise Distributor build already installed. (This is your real app which has the issues. The app we need to get the container)
  3. Use the sample app (step 1.) and run through with Developer singing(both distributor cert and developer cert should be from same apple enterprise developer program).

Happy Debugging.