-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Able to build the spatiality-iOS successfully spatialite framework file.I could see all decencies gets,proj4,sqlite3 are imported .The below attempt to use it in a sample iOS program is failing ..Could you please check if the issues is recreated.
#import "AppDelegate.h"
#include <sqlite3.h>
#include <spatialite/gaiageo.h>
#include <spatialite.h>
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
spatialite_init (0);
printf("Spatialite version: %s\n", spatialite_version());
return YES;
}
ld: warning: ld: warning: ignoring file /usr/local/Cellar/libspatialite/4.3.0a_3/lib/libspatialite.7.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/libspatialite/4.3.0a_3/lib/libspatialite.7.dylibignoring file /Users/admin/Downloads/SpatialiteSample/SpatialiteSample/libspatialite/spatialite.framework/spatialite, file was built for x86_64 which is not the architecture being linked (i386): /Users/admin/Downloads/SpatialiteSample/SpatialiteSample/libspatialite/spatialite.framework/spatialite
Undefined symbols for architecture i386:
"_spatialite_init", referenced from:
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
"_spatialite_version", referenced from:
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)