yepher / CoreDataUtility

An OSX application that simplifies development and debugging of CoreData enabled applications.
519 stars 49 forks source link

Better handling of iOS Simulator projects #24

Closed yepher closed 10 years ago

yepher commented 10 years ago

CoreDataUtility should still be able to open an iOS Simulator project even if the app is uninstalled and reinstalled.

Problem

The problem is when an app is uninstalled from iOS it deletes the UUID that the .app and .mom files were in. Next time app is installed a new "UUID" is created.

Solution 1

If instead we tracked "iOS Simulator version", app name, and .mom file name we should be able to search through the list of apps for a given version of the simulator and still open the project.

Solution 2

Instead of pointing directly to .app and .mom file instead point at the XCode project and parse it. Use that to determine where the .app and .mom files are located.

This will be very problematic as the project file changes.

yepher commented 10 years ago

There is a project that maybe easier for tracking iOS project files in the simulator directories. These "installation" files track what directory the app is installed in.

[iPhone Simulator]$ find . | grep "com.apple.mobile.installation" |grep plist 
./6.0/Library/Caches/com.apple.mobile.installation.plist
./6.1/Library/Caches/com.apple.mobile.installation.plist
./7.0/Library/Caches/com.apple.mobile.installation~iPhone.plist
./7.0.3/Library/Caches/com.apple.mobile.installation~iPhone.plist
yepher commented 10 years ago

This is fixed in https://github.com/yepher/CoreDataUtility/releases/tag/v1.3_5