 <p>Xcode has a built-in tool called <a href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/agvtool.1.html" rel="nofollow noreferrer">agvtool</a>. Agvtool only works if you have "Apple generic" version system in settings. </p> <p>Change the version system to "Apple generic" in target settings. <a href="https://i.stack.imgur.com/tMwts.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tMwts.png" alt="Target settings"></a></p>