-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
I made a completely new project to make sure.
Steps
- Create new iOS Xcode Project
- Create Podfile
platform :ios, '6.0'
target 'example' do
pod 'SpatialDBKit', '~> 0.1'
end
target 'exampleTests' do
endpod install- rename
main.mtomain.mm - Replace line
87ofspatial.cwith#include <spatialite/spatialite/spatialite.h> - Add
#import <spatialite.h>toSpatialDatabase.mbecause of build errors - In
AppDelegate.m
#import "AppDelegate.h"
#import <SpatialDBKit/SpatialDatabase.h>
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSString *filePath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"db.sqlite"];
SpatialDatabase *database = [[SpatialDatabase alloc] initWithPath:filePath];
return YES;
}- Run
Result
Crash on line 114 of spatialite_init.c EXC_BAD_ACCESS
sqlite3_auto_extension ((void (*)(void)) init_spatialite_extension);Metadata
Metadata
Assignees
Labels
No labels