title: How can I set the `APS Environment` value in .entitlements to `development` when archiving for testers?
body: <p>In apps with Push Notification capability turned on, Xcode automatically generates an <code>&lt;ProjectName&gt;.entitlements</code> file. </p>
  
  <p>Look like this: 
  <a href="https://i.stack.imgur.com/Yf2vU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Yf2vU.png" alt="enter image description here"></a></p>
  
  <p>Here is the question. Sometimes we may want to use <code>development</code> mode in testing archives to avoid mistakenly pushing notifications to normal users. But Xcode automatically use <code>production</code> mode when archive, even though you manually set it to <code>development</code>.  Is it possible to archive in <code>development</code> mode? And if so, how to?</p>