Removing ARC code from executable
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