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

Already on GitHub? Sign in to your account

Other Linker Flag -ObjC breaks basic Master-Detail project #1153

Closed
digitalhoax opened this Issue Jan 14, 2013 · 4 comments

Comments

Projects
None yet
2 participants

A project with the master-detail template does not compile for an attached device if the "Other Linker Flags" value is set to -ObjC as suggested in the installation instructions for RestKit 0.20.x

It will build fine for the simulator but not for the device.

See attached screenshot for errors:
Errors

@ghost ghost assigned blakewatters Jan 14, 2013

Owner

blakewatters commented Jan 14, 2013

I think that you may have mis-disagnosed the here. The -ObjC linker flag is not going to have any impact on the availability of selectors.

I suspect that you are attempting to build a project using iOS 6.0 API's against an older version of the SDK. If you look at 'UITableView.h', you'll see that the method in question is declared as:

- (id)dequeueReusableCellWithIdentifier:(NSString *)identifier forIndexPath:(NSIndexPath *)indexPath NS_AVAILABLE_IOS(6_0);

Does this method appear in your UITableView.h header? Are you on the latest release version of Xcode (4.5.2)?

Thanks for your reply.

I am on Xcode 4.5.2

Base SDK is set to 6.0 on both my project and the RestKit project inside of it. The App builds fine with both the simulator as a target as well as iOS device as target if nothing is connected. If I attach my iPad with iOS 6.0.1 and build, I will get the errors described above.

I do have that method in my UITableView.h header.

What else might I be doing wrong?

Owner

blakewatters commented Jan 15, 2013

I am really not sure. Have you tried searching Stack Overflow for the error message returned by the ARC Semantic Issue error?

I have, couldn't digg anything up there. But somehow this problem solved itself without me changing anything. Thanks for your support, I appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment