Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Crashes on iPad, but not in simulator

$
0
0

I keep getting an error that no such column exists on my organizer inside xcode. I have tested inside titanium and it works perfectly on the simulator on there. I go to xcode to build on to my iPad and it crashes because of this error. I have deleted the sql file it builds in the library folder multiple times, deleted all my build files and let it build over, and went into my sqlite manager and made some changes and saved. I also renamed the sql file it was using inside my app.js file. Nothing seems to work. I can't seem to wrap my head around this one. Below is the error I am getting. Any and all thoughts are appreciated.

<Warning>: [ERROR] A SQLite database error occurred on database '/var/mobile/Applications/D17AE981-34ED-4045-A6A2-48D2BB1E6176/Library/Private Documents/et.sql': Error Domain=com.plausiblelabs.pldatabase Code=3 "An error occured parsing the provided SQL statement." UserInfo=0x76ade0 {com.plausiblelabs.pldatabase.error.vendor.code=1, NSLocalizedDescription=An error occured parsing the provided SQL statement., com.plausiblelabs.pldatabase.error.query.string=SELECT * FROM dealers WHERE State = 'Australia' OR Territories = 'Australia' OR TerritoriesTwo = 'Australia' OR TerritoriesThree = 'Australia' OR TerritoriesFour = 'Australia' ORDER BY Name ASC, com.plausiblelabs.pldatabase.error.vendor.string=no such column: TerritoriesTwo} (SQLite #1: no such column: TerritoriesTwo) (query: 'SELECT * FROM dealers WHERE State = 'Australia' OR Territories = 'Australia' OR TerritoriesTwo = 'Australia' OR TerritoriesThree = 'Australia' OR TerritoriesFour = 'Australia' ORDER BY Name ASC')
My database is straight forward on my app.js file..
var db = Ti.Database.install('et.sqlite','et');
var db = Ti.Database.open('et');

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>