Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build error "Property with 'retain (or strong)' attribute must be of object type" #40

Closed
wants to merge 1 commit into from

Conversation

Palleas
Copy link

@Palleas Palleas commented Jun 29, 2013

I ran into this issue trying to build a new project using SVHTTPRequest (obviously) :

Property with 'retain (or strong)' attribute must be of object type

I'm not sure about this fix but it worked for me.
I'm using XCode 4.6.3 on a brand new project targeting 6.1, if it helps...

Fix build failing because the attribute should be an object or whatever.
@rjyo
Copy link

rjyo commented Sep 4, 2013

Right now cocoapods applies the -DOS_OBJECT_USE_OBJC=0 flag to any pod's that are installed with a deployment target under iOS 6.0.

CocoaPods/CocoaPods#1001

This seems to be the real reason. I removed the flag and everything goes fine.

Need a better solution.

@rjyo
Copy link

rjyo commented Sep 4, 2013

Forked this repo and changed the podspec. this is my finally solution:

https://github.com/rjyo/SVHTTPRequest/commit/287f0456555870e090233ad11b157a4e3f756681

@Palleas Palleas closed this Oct 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants