on 07-13-2012 9:05 AM
Hi experts,
In Xcode today, we can create ARC enabled projects, which means we do not need to use the retain, autorelease etc. keywords to manage the memory ourself.
But, in SUP ESD #3 which is the latest release, it generates the iOS codes from the MBO's without ARC. So these sets of codes will have the retain, autorelease etc. keywords used.
When we combine the both and compile, the compiler will throw errors as it will not allow usages of retain, autorelease etc. keywords in an ARC enabled project.
How can we use the code generated from SUP 2.1 ESD #3 with an ARC enabled Xcode project?
You can use the method described by Sybase as Mark Teichmann posted (advised). If you would encounter issues with this, it is possible to disable ARC for a portion of your project.
Set the -fno-objc-arc
compiler flag for the classes where you don't want to use ARC.
You add compiler flags in Targets -> Build Phases -> Compile Sources. You have to double click on the right column of the row under Compiler Flags.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harediva,
did you find a solution for ARC enabled code?
In principal you should follow the steps you can find in Sybooks . Doing it this way you can handle the generated code seperately anduse only ARC code in your coding.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.