Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.

errors building on XCode 5.1 #55

Open
gsoro opened this issue Oct 31, 2013 · 9 comments
Open

errors building on XCode 5.1 #55

gsoro opened this issue Oct 31, 2013 · 9 comments

Comments

@gsoro
Copy link

gsoro commented Oct 31, 2013

Hi, i'm having a series of issues (see image attached) trying to build the framework on XCode 5.1.
Have you managed to build for ios7/code 5 or is it still on the run?

Thanx
G.
schermata 2013-10-31 alle 13 46 06

@AlexDenisov
Copy link
Owner

I will check this asap, thank you.

@jklimke
Copy link

jklimke commented Nov 7, 2013

Hi,

i ran into the same problem with XCode 5 and MacOS Maverick 10.9.

I solved it by adding the Foundation framework as target link dependency of the ActiveRecord lib project and add the follwoing includes to IColumnInternat.h

#include <cstring>
#include <memory>
#import <Foundation/NSString.h>

Since i don't know wether it makes sense to add the framework to a static lib, i did not create a pull request.

@jklimke
Copy link

jklimke commented Nov 7, 2013

Hmm, i hope to have this one fixed, but unfortunately a linking problem appeared saying:

Undefined symbols for architecture i386:
"vtable for AR::NSNumberColumn", referenced from:
AR::NSNumberColumn::NSNumberColumn() in ActiveRecord
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

i double checked the virtual methods of AR::NSNumberColumn are implemented within the iActiveRecord source. Any ideas what could possibly the reason for this ?

@AlexDenisov
Copy link
Owner

Hello, guys. I've added small fix, and now it works on my machine as well.
Could you check is this issue still exists?

@jklimke
Copy link

jklimke commented Nov 10, 2013

Hi, i tested it with building my own application and integrating the generated framework (not via podfile). It turns out that nothing changed for me. I still get the error above when i try to link my project.

In contrast, you active twitter example compiles and works well.

@AlexDenisov
Copy link
Owner

It's quite strange.
btw, ActiveTwitter uses CocoaPods...

@jklimke
Copy link

jklimke commented Nov 10, 2013

Yeah, i noticed that an tried to use the podfile that is included within the project. At least this compiling now.

Now i got another issue. This could originate from my code.

that is the runtime exception i get:

exception 'NSInvalidArgumentException', reason: '-[Topic setDescription:]: unrecognized selector sent to instance 0xa124b10'

Topic is defined as

#import <ActiveRecord/ActiveRecord.h>

@class Contact;
@class ContactGroup;

@interface Topic : ActiveRecord

@property NSString* title;
@property NSString* description;


has_many_through_dec(Contact, ContactGroup, contactGroups, ARDependencyNullify)

@end

and implemented like this:

@implementation Topic


@dynamic description;
@dynamic title;

has_many_through_imp(Contact, ContactGroup, contactGroups, ARDependencyDestroy)

@end

is there maybe any kind of initialization i have to run on application startup ? or is this done automagically ?

@AlexDenisov
Copy link
Owner

Yep, you should add initialization somewhere (applicationDidFinishLaunching the best point), just review the ActiveTwitter target.

@jklimke
Copy link

jklimke commented Nov 10, 2013

This, in connection with the usage of the podspec file seems to work. Thanks a lot for your help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants