<span id="Label3"></p><span style="color: #008000;"><span style="color: #008000;">garbage Collection</span> is not supported</span><p><p></p></p><p><p>When Xcode compiles the Mac OSX app times wrong: " <code class="cpp plain">Garbage Collection is not supported</code> " solution:</p></p><span style="color: #008000;"><span style="color: #008000;">1. Do not need to migrate to arc can still compile through</span></span><p><p>If your project is imported from Xcode 3.x and you want to use ARC, you'll have the following error at compile Time:</p></p> <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="gutter">12</td> <td class="code"><code class="cpp plain">Garbage Collection is </code><code class="cpp keyword bold">deprecated</code><code class="cpp plain">;</code><code class="cpp plain">use the </code><code class="cpp string">"Convert to Objective-C ARC"</code><code class="cpp plain">menu command to </code><code class="cpp keyword bold">switch</code><code class="cpp plain">to Automatic Reference Counting</code></td> </tr> </tbody> </table><p><p>To get rid of this, edit the project and remove anything under <strong>gcc_enable_objc_gc</strong>.</p></p><p><p>This would remove THE-FOBJC-GC parameter from the GCC commands and you'll be a able to use the smart ARC. " ref[2]</p></p><span style="color: #008000;"><span style="color: #008000;">2. Mac apps can no longer use garbage collection</span></span><p><p>Beginning 1, new Mac apps and app updates submitted to the Mac app Store</p></p><p><p>Longer use garbage collection, which is deprecated in OS X Mountain Lion. Instead, Migrate</p></p><p><p>Your apps to Automatic Reference counting, using the Migration Assistant in Xcode to help with this Transition.</p></p><p><p>Apps may continue to use Retain/release for manual memory Management. For more information,</p></p><p><p>Read thetransitioning to ARC Release Notes. " ref[1]</p></p><p><p></p></p>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service