Photos app in iOS 7.1 not working

i clean installed os x Yosemite yesterday and install xcode 6. but unfortunately my old project requires ios 7.1, so i uninstall xcode 6 and install xcode 5.1.1. everything seems to be working fine, but when I click on the Photos app in the simulator, it stuck on a white screen when the screen shows first when lunch is in progress. I have tried resetting content and setting but no luck. then I completely uninstall xcode including ~ / Library / Caches / com.apple.dt.Xcode, ~ / Library / Developer, ~ / Library / Application Support / iPhone Simulator directory and files manually and reinstalled xcode 5.1.1 but problem with the Photos app has not been resolved. So please help me to solve this problem. Did I miss something? ", I need to completely wipe and reinstall the Mac to work again, or there is a compatibility issue in Yosemite with xcode 5.1.1.Also I know I can install 7.1 simulator in xcode 6, but it will require some additional changes in xcode 6 code. IOS 8 simulator in xcode 6 doesn't have such problems. (sorry i'm new here and i can't attach a screenshot because it doesn't have 10 points)

Mistake

: Oct 30 11:34:38 ​​CS02-MAC.local SpringBoard [4941]: BBServer: data provider "com.apple.mobileslideshow" not responding for 60 seconds. Oct 30 11:34:46 CS02-MAC.local assetsd [4998]: PLMigrationLog Could not find path to mappings uuid 21 Unable to open database file Oct 30 11:34:46 CS02-MAC.local assetsd [4998]: PLMigrationLog None store file to move aside "/ Users / css / Library / Application Support / iPhone Simulator / 7.1 / Media / PhotoData / Photos.sqlite" Oct 30 11:34:46 CS02-MAC.local assetsd [4998]: PLMigrationLog Failed open storage / Users / css / Library / Application Support / iPhone Simulator / 7.1 / Media / PhotoData / Photos.sqlite with parameters {NSPsistentStoreFileProtectionKey = NSFileProtectionNone; NSReadOnlyPersistentStoreOption = 1; NSSQLitePersistWALOption = 1;NSSQLitePragmasOption = {"journal_mode" = WAL; }; }. A new restored database is required (Error Domain = NSCocoaErrorDomain Code = 260 "The operation could not be performed. (Cocoa error 260.)") Oct 30 11:34:46 CS02-MAC.local assetsd [4998]: *** Application terminated due to uncaught exception "NSInternalInconsistencyException", reason: "This NSPersistentStoreCoordinator does not have persistent stores. It cannot perform a save operation.*** Application terminated due to uncaught "NSInternalInconsistencyException", reason: "This NSPersistentStoreCoordinator does not have persistent stores. It cannot perform a save operation.*** Application terminated due to uncaught "NSInternalInconsistencyException", reason: "This NSPersistentStoreCoordinator does not have persistent stores. It cannot perform a save operation.

+3


source to share


2 answers


The problem has been resolved. I open the Debug-> Open system log and investigate the problem and find out that the "Photos.sqlite" file was not found. I manually copied this file from another mac to "▸ Users" [username] ▸ Library ▸ Application Support ▸ iPhone Simulator ▸ 7.1 ▸ Media ▸ PhotoData "After that, Photos app works correctly. Hope this helps someone.



+3


source


Another, easier method (especially if you don't have the file elsewhere) is that you can also just create an empty file named Photos.sqlite and put it in Users [username] ▸ Library ▸ Application Support ▸ iPhone Simulator ▸ 7.1 ▸ Media ▸ PhotoData p>

(ex: run this from terminal :) touch "/ Users / [username] / Library / Application Support / iPhone Simulator / 7.1 / Media / PhotoData / Photos.sqlite"



This worked for me.

+3


source







All Articles