SQLite file's location Windows 10 Universal App - sqlite

I'm working with SQLite and Windows 10.
I followed this video SQLite Local Database (28th minute) to find the package and .sqlite file. But when I entered AppData/Local/Packages, I didn't find any package has the same name as my project's package's name.
Can anyone help me find the package folder of windows 10 app project? Thank a lot!

Try following steps:
WIN menu -> all apps -> right click on your app (App1 in your case) -> click uninstall. This will clear the previous app data.
In Visual Studio, right click on the project node -> Deploy.
Try to find and run your app from the app list to make sure it deployed correctly. then check if you can find the folder. This time you can easily find the folder by sorting on modified date.
If it still doesn't work, see if you can repro the issue with a new blank project.
[Update]
If the app locates on phone or phone emulator, Use Windows Phone Power Tools (works for windows 10) to browse folders. Here is a screenshot for your reference:

Related

React Native iOS unable to locate sqlite database

I am running WatermelonDB (which uses SQLite) on React Native. I am using the iOS simulator, and I am trying to locate the database file so I can query on it directly. It seems that I am able to successfully save to the database, since I can query data from within the app and it gets persisted.
Using htop, I have been able to find the running process of my application running on the simulator. However, when I cd into that directory, I see no .db file. I can even go to the root of all simulators ~/Library/Developer/CoreSimulator/Devices/ and ack for all db files, and still nothing shows up.
Next, I have tried launching the app in Xcode, as I have come across other posts that suggest checking the logs of Xcode, which is supposed to reveal the db location. Alas, this has shown me no information.
I am first interested to know how it is possible that anything at all is getting persisted, given that I cannot find a db file.
Second, should I be building my app from Xcode, or is it fine to use command line react-native run-ios? I can see that running this command uses Xcode under the hood, but I'm not sure if there are benefits to using Xcode. Nonetheless, using Xcode does not provide me with the answer I am looking for.
note: this is not a duplicate of this nor this, as I have followed all suggestions but have been unable to reach the conclusion
You can locate the watermelon.db files on your machine created by the iOS simulator by:
cd /Users/<your username>/Library/Developer/CoreSimulator/Devices
find . -name "watermelon.db"
This will show you the instances of watermelon.db files created by simulators. You can then take the output to an SQLite inspector and open /Users/<your username>/Library/Developer/CoreSimulator/Devices + {file path from find}.
If you have multiple results, then you may need to deduce which simulator is which by matching the ID to the simulator using xcrun instruments -s devices

Xamarin deploys old code when building from PC

I have a really weird Xamarin.Forms bug I haven't seen before: When I build and deploy to simulator or device from Visual Studio 2017 on my PC the result is not aligned with the source code. What I see is some older build.
If I build from the same branch directly with VS2017 on the Mac instead I get the expected result.
Could this be some caching issue with the Mac Build Agent? If so; is there a way to clear it to ensure it doesn't deploy older builds?
[EDIT 1]
I have taken all the usual dark-magic tricks such as removing/restoring all packages, cleaning the output folders and reboot the Mac before rebuilding the solution. I also made 100% sure I wasn't using old source code.
Kindly,
Clean the solution,
Uninstall the app on the emulator.
Close VS
Rename the OBJ folder in the project folder (same place you have the
bin folder) to OBJ.old (in case you need to restore it)
Repeat step 4 for BIN folder
Restart the VS and open open the project
REBUILD the SOLUTION - you should have BIN and OBJ created for all projects.
Done

SQLite support for windows phone 8 applications

I'have created windows phone 8 application 6 months back. In that application I have used the SQLite database. For this I've followed the below link.
http://social.technet.microsoft.com/wiki/contents/articles/18204.how-to-use-sqlite-with-a-windows-phone-8-application.aspx
Everything was fine. I have successfully stored and retrieved the data in the SQLite databse.
Now suddenly the SQLite reference which I used is not working. To solve this I have removed the reference of SQLite from the project. I followed the same procedure which is mentioned in the above link. Now my solution contains 2 projects, one is Sqlite (which is c++ wrapper) and another one is SqliteDemo (Windows Phone Application).Everything is fine up to this. But when I try to build the application, then it is saying that All the projects with in the application must target the same platform.Use configuration manager to change the values.
I change the project platform to ARM and try to build the file. But the same error it is throwing.I change the project platform to X86 and try to build the file. But the same error it is showing. For reference please see the below image.
Please help me how to solve the issue.
Thanks

Xcode Application Loader

I am a novice when it comes to apps but i have managed to write one, test it, debug it, install it onto my Iphone. I'm now on the final step upload it through application loader...
my problem is i can't get application loader to install. i have downloaded it, run the .dmg, this creates a new device on my system with the file applicationloader.pkg. I run this and it runs me through the installation, i have entered my admin authority, it says installation complete.
But it doesn't have the program anywhere. i have looked in Applications, searched in the finder and i can not locate where the application loader is.
1 - is there a reason why it wouldn't be installing properly?
2 - is there a way to download a previous version (current is 2.7) to try that
3 - is there a way of uploading without the application loader?
If you have the latest Xcode installed on your machine, go to the Xcode menu item/Developer Tools and open the Application Loader. If you are working with Xcode there is no need to use the application loader though. Every step you need to bring your app into iTunes connect can be done via Xcode. The steps are Archive (for Release), select the archive - validate it (you mast have prepared your app in iTunes Connect (must be in the status ready for upload) and the submit it to the store.

Xcode 4 Ad-Hoc Distribution - Unable to Download

I had recently upgrade our development machine to Xcode4 and after the initial interface change has gone quite smoothly.
I'm now in the process of using Ad-Hoc distribution on it for the first time so I followed this guide to set up profiles/schemes etc. http://diaryofacodemonkey.ruprect.com/2011/03/18/ad-hoc-app-distribution-with-xcode-4/
This is the process I took:
1/ Setup a new provisioning profile under distribution. I selected Ad-Hoc, the correct App and my UUIDs.
2/ Installed the profile within Xcode 4.
3/ In xcode duplicated the Release Configuration and named it Ad-Hoc.
4/ Under Code-Signing made sure Ad-Hoc had the new profile selected.
5/ Edit Archive scheme and selected 'Ad-Hoc' Build Configuration.
6/ Select Product > Archive and made sure the profile listed was correct.
7/ On save screen selected 'enterprise distribution' and entered the App URL and Title.
8/ Copied the resulting ipa archive, plist and mobileprovision (downloaded in point 1) to our http server.
9/ Added the required html to and pointed mobile Safari to it.
10/ Selected the mobileprovision which installed without a problem.
11/ Selected the App which begins to install resulting in "Unable to Download" at about 90%.
I've tried several potential solutions from other posts but they all result in the same thing. This is used to work fine in Xcode 3 (using normal developer account, NOT enterprise) and as far I can tell I'm not really doing anything different so what am I doing wrong?
Thanks.
Try this: Open the Scheme you are using to edit it. Then check if in ALL the build phases (Build, Run, Test, Profile, ...) the Build Configuration is set correctly. If not set it to the correct configuration and build it again.
If this does not work ad a new Entitlements.plist to your project and add a new value with the key get-task-allow to NO.
Edit: Have you tried to make Product > Build For > Build For Archiving and then Product > Archive.
This worked for me.
we just had the same problem (and we still have it for one device only working on iOS5 Beta, not sure if it is related. All other devices work.), some tips that could help :
Apple dev site:
your provisioning profile could need to be renewed on the apple web site.
on the apple web site check that the device is linked to the provisional profile in the "Device" section. In the "provisional profile" section, the "Edit" feature could lie to you. To add a missing device to a provisional profile, go the "provisional profile" section then uncheck and check back the missing device (the lying part from apple web site ;))
in xcode:
I switched deployment target OS from 4.0 to 4.2
I plugged my iPhone and selected it as target before to create the archive.
this issue doesn't depend on the "team provisioning file", we could build a working archive with another provisioning file too.
If it can help too, I created a doc for distributing the Moodle app but it's generic to any app I guess: http://docs.moodle.org/dev/how_to_distribute_iPhone_test_app

Resources