iOS 7.1模拟器中的照片应用无法正常工作 [英] Photos app in ios 7.1 simulator not working

查看:134
本文介绍了iOS 7.1模拟器中的照片应用无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昨天清理了os x Yosemite并安装了xcode6.但是不幸的是,我的旧项目需要ios 7.1,所以我删除了xcode 6并安装了xcode 5.1.1.一切似乎都工作正常,但是当我在模拟器中单击照片"应用程序时,它卡在了白色屏幕上,因为午餐应用程序时屏幕首先显示.我试图重置内容和设置,但没有运气.然后我手动卸载了完全包括~/Library/Caches/com.apple.dt.Xcode, ~/Library/Developer, ~/Library/Application Support/iPhone Simulator目录和文件的xcode,然后重新安装了xcode 5.1.1,但是照片"应用程序的问题没有解决.

i clean installed os x Yosemite yesterday and installed xcode 6. but unfortunately my old project require ios 7.1 so i delete xcode 6 and installed xcode 5.1.1. everything seems to be working fine but when i click on Photos app in simulator, it stuck on white screen as screen shows first when lunching app. I tried to reset content & setting but no luck. then i uninstall xcode completely 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 Photos app not solved.

所以请帮助我解决这个问题.我是否错过了某些东西?我必须完全擦除并重新安装Mac才能重新工作,还是在优胜美地的xcode 5.1.1中存在兼容性问题. 我也知道我可以在xcode 6中安装7.1模拟器,但是它需要对我的代码进行一些额外更改,例如xcode6.xcode 6中的ios 8模拟器没有这样的问题. (对不起,我是新来的,因为没有10分,所以我无法附加屏幕截图)

So please help me to solve this problem. do i missed something?, do i have to completely erase and reinstall mac to get working again or there is a compatibility problem in Yosemite with xcode 5.1.1. Also i know that i can install 7.1 simulator in xcode 6 but it will require some extra changes in my code as xcode 6. ios 8 simulator in xcode 6 has no problem like this. (sorry i am new here and i can't attach screenshot because don't have 10 points)

错误是:

Oct 30 11:34:38 CS02-MAC.local SpringBoard[4941] <Warning>: BBServer: data provider "com.apple.mobileslideshow" has been unresponsive for 60 seconds.
Oct 30 11:34:46 CS02-MAC.local assetsd[4998] <Notice>: PLMigrationLog <t:0xb016de0> Failed to fetch path to uuid mappings 21 unable to open database file
Oct 30 11:34:46 CS02-MAC.local assetsd[4998] <Notice>: PLMigrationLog <t:0xb016de0> No store file to move aside at "/Users/css/Library/Application Support/iPhone Simulator/7.1/Media/PhotoData/Photos.sqlite"
Oct 30 11:34:46 CS02-MAC.local assetsd[4998] <Notice>: PLMigrationLog <t:0xb016de0> Failed to open store /Users/css/Library/Application Support/iPhone Simulator/7.1/Media/PhotoData/Photos.sqlite with options {
        NSPersistentStoreFileProtectionKey = NSFileProtectionNone;
        NSReadOnlyPersistentStoreOption = 1;
        NSSQLitePersistWALOption = 1;
        NSSQLitePragmasOption =     {
            "journal_mode" = WAL;
        };
    }.  Requires new rebuilt database (Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)")
Oct 30 11:34:46 CS02-MAC.local assetsd[4998] <Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'This NSPersistentStoreCoordinator has no persistent stores.  It cannot perform a save operation.'

推荐答案

问题已解决. 我通过调试"->打开系统日志"打开日志并调查问题,然后知道未找到文件"Photos.sqlite".我将该文件从另一台Mac手动复制到'▸用户▸[用户名]▸库▸应用程序支持▸iPhone模拟器▸7.1▸媒体▸PhotoData'. 之后,照片"应用正常运行. 希望这会对某人有所帮助.

Problem solved. I open the log by Debug->Open system log and investigate the problem and came to know that the file 'Photos.sqlite' was not found. I manually copied that file from another mac to '▸ Users ▸ [username] ▸ Library ▸ Application Support ▸ iPhone Simulator ▸ 7.1 ▸ Media ▸ PhotoData'. After that Photos app working properly. Hope this will help someone.

这篇关于iOS 7.1模拟器中的照片应用无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆