Category Archives: Xcode

Add SQLite Free Text Search functionality to Java app on Mac

Question: I’d like to pre-build a platform independent SQLite database with Java desktop app. This database file with FTS (Free Text Search) indexes will be embedded into Android and iPhone applications. How can I install an SQLite3 free text search (FTS3) module for my Java desktop application? Somehow this binary, library (or app file) cannot be found on the net. Environment: OS X 10.6, NetBeans IDE, Java Swing desktop app with sqlite-jdbc-3.7.2.jar wrapper. Continue reading Add SQLite Free Text Search functionality to Java app on Mac

‘ld: warning: directory not found for option’ while building iPhone app with Xcode 4

Question: ‘ld: warning: directory not found for option’ warning message pops up when I am building an iPhone application Archive with Xcode 4. The app links two static libraries – namely libOAuth.a and TwitterApi.a – and builds without errors and warnings with Xcode 3.2.5 and strangely with Xcode 4 when the configuration is set to Debug. I was suggested to copy these files to the ‘derived’ folder before I build the app. I copied them to that folder without any improvement. I googled the net but found no solution. I have never met this problem. Continue reading ‘ld: warning: directory not found for option’ while building iPhone app with Xcode 4

SQLite Persistent Object error in iOS 4.2 iPad project

Question: Thanks to Jeff LaMarche’s SQLite Persistent Objects library I could build SQLite database projects around his code. Since I switched to Xcode 4 I am struggling. My codes in an iPad – iOS 3.2, 4.2, 4.3 – project hang up or return errors. The same code runs smoothly on iOS 3.2 devices but not on 4.2 and 4.3! For example:
    BOOL retc = NO;
    @try {
        [self clear];
        // There is only one record that matches the search criteria
        self.listinfo = (dbmenulist *)[[dbmenulist class] findByCriteria: MENULIST_SQLQUERY(idmenulist)];
        if( self.listinfo ){
            [self fillItemsFor: idmenulist];
            retc = YES;
        }
    }
    @catch (NSException * e) {
        NSLOG(@"loadFor: exception: %@", e.reason);
    }
    return retc;
I do not want to mess up with Core Data. SQLite Persistent Objects is simple approach for data persistence, but what’s wrong with Xcode 4? Continue reading SQLite Persistent Object error in iOS 4.2 iPad project