andreamazz / SlideOutNavigation

SlideOut Navigation Controller for iOS.
MIT License
210 stars 49 forks source link

clang error in Xcode 5.1 #73

Closed mehfuzh closed 10 years ago

mehfuzh commented 10 years ago

clang: error: unknown argument: '-fobjc' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

andreamazz commented 10 years ago

Can you elaborate? I just built both sample projects with no issues.

mehfuzh commented 10 years ago

I installed 'AMSlideOutController', '~> 1.8.5' from cocoa-pods. Built the project and got the above exception. I noticed that you set the following flag:

-fobjc-arc -DOS_OBJECT_USE_OBJC=0

This causes the error. Check out the following post on a similar issue:

http://blog.manbolo.com/2014/03/26/xcode-5.1-breaks-python-native-extensions-and-ruby-gems

I am using Xcode 5.1

andreamazz commented 10 years ago

I noticed that you set the following flag:

-fobjc-arc -DOS_OBJECT_USE_OBJC=0

I don't. It might be another pod. I just tried on a brand new project, installed version 1.8.5 with cocoapods, and it compiles fine.

mehfuzh commented 10 years ago

screen shot 2014-05-13 at 12 37 35 pm

Here goes the screenshot . I also updated the scheme in the following way that solves the issue: screen shot 2014-05-13 at 12 36 22 pm

andreamazz commented 10 years ago

What version of the cocoapod's gem are you using? That flag is not required by the pod per se, but is added for every pod that requires ARC.

mehfuzh commented 10 years ago

My cocoapods version number is 0.32.1

andreamazz commented 10 years ago

Did you try other pods? You really shouldn't be having this issue, that's a common flag added by cocoapods to manage ARC enabled projects