Closed mehfuzh closed 10 years ago
Can you elaborate? I just built both sample projects with no issues.
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
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.
Here goes the screenshot . I also updated the scheme in the following way that solves the issue:
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.
My cocoapods version number is 0.32.1
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
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