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

entropy_db sample does not compile for device #3

Closed
GoogleCodeExporter opened this issue Mar 13, 2015 · 19 comments
Closed

entropy_db sample does not compile for device #3

GoogleCodeExporter opened this issue Mar 13, 2015 · 19 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Load sample project
2. Click Build


Please provide any additional information below.

I get the following errors on build:

  "_OBJC_CLASS_$_EXSharedObject", referenced from:
      _OBJC_CLASS_$_CustomObject in CustomObject.o
  "_OBJC_CLASS_$_EXContainer", referenced from:
      __objc_classrefs__DATA@0 in EntropySample1AppDelegate.o
  "_OBJC_METACLASS_$_EXSharedObject", referenced from:
      _OBJC_METACLASS_$_CustomObject in CustomObject.o
  "_OBJC_CLASS_$_EXPredicateEqualInt64", referenced from:
      __objc_classrefs__DATA@0 in RootViewController.o
  "_OBJC_CLASS_$_EXFile", referenced from:
      __objc_classrefs__DATA@0 in EntropySample1AppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Original issue reported on code.google.com by mdes...@gmail.com on 4 Aug 2008 at 4:09

@GoogleCodeExporter
Copy link
Author

Disregard.  I didnt read the manual.  I see that it only works with the 
simulator
now.  Is there any timeframe as to when it will compile on the device?

Original comment by mdes...@gmail.com on 4 Aug 2008 at 4:11

@GoogleCodeExporter
Copy link
Author

The problem is that the underlying ObjC runtime has changed in Objective-C 2.0. 
We are rewriting our code 
base, a version for the device will be available for download in 1-2 weeks.

Original comment by clevera...@mac.com on 4 Aug 2008 at 6:31

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Shoot, I didn't realize this only worked in the Simulator.  I ran into this same
problem and searched all around for an answer to the problem.  Well, at least 
now I
know it's not something I did wrong.

Please keep us updated on the status of this rewrite.

Thanks!

Original comment by bustermc...@gmail.com on 6 Aug 2008 at 6:39

@GoogleCodeExporter
Copy link
Author

Please try to use the attached file, it's a static library compiled for the ARM 
architecture.

Original comment by clevera...@mac.com on 7 Aug 2008 at 12:38

Attachments:

@GoogleCodeExporter
Copy link
Author

I used this new version and it seems to build.  Unfortunately, I'm still 
encountering
an error about "Verifying application" which seems to be unrelated to entropy 
db. 
But thank you for fixing this for us!

Original comment by bustermc...@gmail.com on 7 Aug 2008 at 8:40

@GoogleCodeExporter
Copy link
Author

Also, the new version doesn't compile for the Simulator.  Is that to be 
expected?  Do
I need to switch them out whenever I use the Simulator or the device?

Original comment by bustermc...@gmail.com on 7 Aug 2008 at 8:43

@GoogleCodeExporter
Copy link
Author

This is normal behavior as it's not possible to create a static library for 
both ARM and Intel (Simulator).

Original comment by clevera...@mac.com on 8 Aug 2008 at 8:01

@GoogleCodeExporter
Copy link
Author

I've tried the arm version of the library and get the following error when 
running my
app (note, it runs fine under the simulator).  It seems to occur in the 
[EXContainer
initWithFile:] method:

2008-08-08 15:31:40.764 ThingsINeed[161:20b] *** -[EXContainerUniqueIdentifier
className]: unrecognized selector sent to instance 0x148140
2008-08-08 15:31:40.785 ThingsINeed[161:20b] Nested exception: ***
-[EXContainerUniqueIdentifier className]: unrecognized selector sent to 
instance 0x148140
2008-08-08 15:31:40.793 ThingsINeed[161:20b] *** Terminating app due to uncaught
exception 'EXException', reason: 'Cannot store object'
2008-08-08 15:31:40.803 ThingsINeed[161:20b] Stack: (
    808163835,
    806099672,
    807978623,
    807978527,
    22053,
    21095,
    20595,
    8677,
    816176504,
    816210780,
    812232551,
    807780339,
    807777675,
    829004012,
    816177936,
    816214500,
    8381,
    8244
)
terminate called after throwing an instance of 'EXException'

Original comment by tkat...@gmail.com on 8 Aug 2008 at 7:37

@GoogleCodeExporter
Copy link
Author

Just to provide more detail, the following is the trace overview:

#0  0x3143911c in __kill
#1  0x31439110 in kill
#2  0x31439104 in raise
#3  0x314538ea in abort
#4  0x30075b74 in __gnu_cxx::__verbose_terminate_handler
#5  0x300c1c88 in _objc_terminate
#6  0x30073108 in std::terminate
#7  0x30073210 in __cxa_throw
#8  0x300c1b14 in objc_exception_throw
#9  0x3028c67e in +[NSException raise:format:arguments:]
#10 0x3028c61e in +[NSException raise:format:]
#11 0x00005624 in -[EXContainer
store:atomically:storedObjects:locally:processedObjects:] at EXContainer.m:146
#12 0x00005266 in -[EXContainer storeObject:] at EXContainer.m:92
#13 0x00005072 in -[EXContainer initWithFile:] at EXContainer.m:72
#14 0x000021e4 in -[AppDelegate applicationDidFinishLaunching:] at 
AppDelegate.m:34
#15 0x30a5dd78 in -[UIApplication performInitializationWithURL:asPanel:]
#16 0x30a6635c in -[UIApplication _runWithURL:]
#17 0x3069af66 in __NSFireDelayedPerform
#18 0x3025bff2 in CFRunLoopRunSpecific
#19 0x3025b58a in CFRunLoopRunInMode
#20 0x316998ec in GSEventRunModal
#21 0x30a5e310 in -[UIApplication _run]
#22 0x30a671e4 in UIApplicationMain
#23 0x000020bc in main at main.m:14

Original comment by tkat...@gmail.com on 8 Aug 2008 at 7:40

@GoogleCodeExporter
Copy link
Author

For some reason, the method -className is absent from the device. Please add 
the following NSObject category to your project:

#import <Foundation/Foundation.h>

@interface NSObject (iPhone)

- (NSString*)className;

@end

@implementation NSObject (iPhone)

- (NSString*)className {
    return NSStringFromClass([self class]);
}

@end


Original comment by clevera...@mac.com on 8 Aug 2008 at 7:48

@GoogleCodeExporter
Copy link
Author

Perfect, the category did it.  The app now works on the phone :)

Thanks!

Original comment by tkat...@gmail.com on 8 Aug 2008 at 8:04

@GoogleCodeExporter
Copy link
Author

I got the same error.  Where do I add the above code?  Is it a new file?  And 
if so,
what should the name of the file be?

Thanks!

Original comment by bustermc...@gmail.com on 9 Aug 2008 at 12:00

@GoogleCodeExporter
Copy link
Author

Okay, I figured it out.  Created NSObject.h and NSObject.m with the above code 
split
into each as appropriate.  My app now works on my phone, but when I try to 
store an
object, I get this error:

2008-08-08 17:36:38.609 CC Roulette[640:20b] *** -[EXContainer store:]: 
unrecognized
selector sent to instance 0x1482d0
2008-08-08 17:36:38.616 CC Roulette[640:20b] *** Terminating app due to uncaught
exception 'NSInvalidArgumentException', reason: '*** -[EXContainer store:]:
unrecognized selector sent to instance 0x1482d0'
2008-08-08 17:36:38.635 CC Roulette[640:20b] Stack: ( etc );

Is this something that I'm doing wrong or something that is going wrong with 
this code?

Original comment by bustermc...@gmail.com on 9 Aug 2008 at 12:39

@GoogleCodeExporter
Copy link
Author

You should use storeObject:

Original comment by clevera...@mac.com on 9 Aug 2008 at 8:04

@GoogleCodeExporter
Copy link
Author

Original comment by clevera...@mac.com on 14 Aug 2008 at 3:05

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Original comment by clevera...@mac.com on 14 Aug 2008 at 3:05

@GoogleCodeExporter
Copy link
Author

  NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    pathDetails();
    processDetails();
    NSMutableArray *arrayOfPerson=[[NSMutableArray alloc]init]; 
    Person *person1 =[[Person alloc] init]; 
    [person1 setName:@"himanshu" last:@"jain"];
    [person1 favoriteNumber:90];
    [person1 setLike:YES];
    NSString *details =[person1 description];
    NSLog(@"%@",details);
  //  printBookMarkInfo();
  /*printCategoryInfo();
    printIntrospectionInfo();*/ 
    [person1 release];
    [arrayOfPerson release];
    [pool release];
    return 0;
I am getting same error plz tell wat to do

Original comment by himanshu...@gmail.com on 11 Jun 2009 at 4:22

@GoogleCodeExporter
Copy link
Author

Entropy appears to be a fairly dead project.  Use CoreData instead.  It is 
faster,
more flexible and a LOT more robust.

Original comment by des...@gmail.com on 11 Jun 2009 at 3:10

@GoogleCodeExporter
Copy link
Author

Issue 14 has been merged into this issue.

Original comment by clevera...@mac.com on 23 Oct 2009 at 7:58

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

No branches or pull requests

1 participant