• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Removing ARC code from executable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Removing ARC code from executable


  • Subject: Removing ARC code from executable
  • From: Peter C <email@hidden>
  • Date: Sat, 21 Sep 2013 10:06:55 +0800

Here is an odd question, I hope some one can answer this. I am using Xcode 4.6.3 and llvm is the default compiler. My Mac OS projects are not using ARC. There are plans to do ARC port in the future, now the "Objective-C Automatic Reference Counting " option is set to no.

Now some of the projects are required to be protected/encrypted by a third party security software, protection via dongle. However the app crashed when the executable is encrypted. If the compiler is switch to gcc, it is all running well after encryption.

It seems llvm is still generating ARC code at executable which is interfering with protection code and causing the app to crash. This is according to security software company. Running otool reveals ARC in the llvm compiled executable.

$ otool -lh  "My App.app/Contents/MacOS/My App"
  sectname __objc_nlclslist

Running otool against gcc compiled executable, reveals no such string.

Is there a parameter to remove ARC code from executable ?

I tried -fno-objc-arc but with no success.

Peter C
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Removing ARC code from executable
      • From: Scott Ribe <email@hidden>
    • Re: Removing ARC code from executable
      • From: Roland King <email@hidden>
  • Prev by Date: Re: Library Include Questions
  • Next by Date: Re: Removing ARC code from executable
  • Previous by thread: Re: Best Way to Handle Different FIles Sets for Debug and Release
  • Next by thread: Re: Removing ARC code from executable
  • Index(es):
    • Date
    • Thread