Question: In *iOS 10* Apple has made a change that NSLog() output is not emitted in distributed apps (enterprise, app-store). 

Note that when running from Xcode, NSLog() works fine.

Is there a way to force debug for all apps (very useful under beta testing phase)?

Some clues appear here: [NSLog on devices in iOS 10 / Xcode 8 seems to truncate? Why？](https://stackoverflow.com/questions/39584707/nslog-on-devices-in-ios-10-xcode-8-seems-to-truncate-why)

However, can we have a clear implementation for this?

Answer: 
I think you need to use the `StorageCredentials` class. Here is a sample:

```
StorageCredentials accountSAS = new StorageCredentials(sasToken);
CloudStorageAccount accountWithSAS = new CloudStorageAccount(accountSAS, "account-name", endpointSuffix: null, useHttps: true);
CloudTableClient tableClientWithSAS = accountWithSAS.CreateCloudTableClient();

```
Stumbled upon this one when having the same issues. The solutions using the StorageCredentials seem to be ok, but I noticed later there is something wrong with the mentioned connection string as well.

In order for the connection string to be valid, it needs to contain 'SharedAccessSignature=', so your connection string should be:

```
TableEndpoint=https://myaccount.table.core.windows.net;SharedAccessSignature=sv=2015-04-05&amp;tn=Table&amp;sig=Signature&amp;se=2099-99-99T12%3A00%3A00Z&amp;sp=r

```

I used this for my situation and it works for me.

See also the section on SAS tokens in <https://learn.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string>