codebots-ltd / TBXML

Super-fast, lightweight, easy to use XML parser for the Mac & iOS
http://www.71squared.com
579 stars 194 forks source link

iOS target does not build #7

Open dodikk opened 12 years ago

dodikk commented 12 years ago

I'm trying to build you master branch on my build server. Build fails since "ARC_ENABLED" flag is not set by default. Please fix default settings of your projects

Either set CLANG_ENABLE_OBJC_ARC = NO

Or set GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 $(inherited) ARC_ENABLED

/Users/darthvader/.jenkins/jobs/TBXML/workspace/TBXML-Code/TBXML+HTTP.m:21:13: error: 'autorelease' is unavailable: not available in automatic reference counting mode return [request autorelease]; ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:37:1: note: declaration has been explicitly marked unavailable here

MartinMReed commented 11 years ago

See pull request #23. The fix is to use __has_feature(objc_arc) instead of ARC_ENABLED