Forums BaseTen

Garbage Collection

Subscribe to Garbage Collection 4 post(s), 2 voice(s)

 
Avatar thinkcl 6 post(s)

Does BaseTen currently work in projects utilizing Garbage Collection? I am new to Cocoa and thus am starting with Obj-C 2.0 and XCode 3. I built the framework after turning on GC in the project settings but get..

was not compiled with -fobjc-gc or -fobjc-gc-only, but the application requires GC

Thanks for any help

 
Avatar Tuukka Norri Administrator 12 post(s)

Hi!
The Xcode project has a target called BaseTen Framework + GC, which builds a GC-enabled framework. The default aggregate target still creates non-GC frameworks, but we should probably change that. BaseTenAppKit project already has a similarly named target for building with GC. HTH.

 
Avatar thinkcl 6 post(s)

Tuukka,

Thanks for the reply. Please excuse my ignorance but I am still having issues. I open the BaseTen.xcodeproj, I make BaseTen Framework the active target. I then build the project and move the new framework to my /Library/Frameworks folder. Then I open my project and add the BaseTen.framework from the /Library/Frameworks folder. Next I hit build and go and still get

objc25694: ’/Library/Frameworks/BaseTen.framework/Versions/A/BaseTen’ was not compiled with -fobjc-gc or -fobjc-gc-only, but the application requires GC

Thanks again – I am really want to make this work as BaseTen seems to be the magic bullet.

 
Avatar thinkcl 6 post(s)

Never mind. I am an idiot. I was putting the compiled framework into /Library and no /Library/Frameworks and thus I kept adding the old non-GC framework to my project.

Sorry for the confusion and thanks for the help on the GC target, I never would have found that!

Forums BaseTen