Re: Removing ARC code from executable
Re: Removing ARC code from executable
- Subject: Re: Removing ARC code from executable
- From: Roland King <email@hidden>
- Date: Sat, 21 Sep 2013 17:39:37 +0800
On 21 Sep, 2013, at 10:06 am, Peter C <email@hidden> wrote:
> 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.
>
What make you say that the presence of the section __objc_nlclslist has anything to do with ARC? All I can find about it is it's got something to do with non-lazy-loading of classes.
What's the actual crash?
_______________________________________________
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