ios 7.1模拟器中的照片应用程序无法正常工作(Photos app in ios 7.1 simulator not working)

编程入门 行业动态 更新时间:2024-10-18 16:43:15
ios 7.1模拟器中的照片应用程序无法正常工作(Photos app in ios 7.1 simulator not working)

我昨天安装了os x Yosemite并安装了xcode 6.但不幸的是我的旧项目需要ios 7.1所以我删除了xcode 6并安装了xcode 5.1.1。 一切似乎工作正常,但当我点击模拟器中的照片应用程序时,它粘在白色屏幕上,因为屏幕显示第一次午餐应用程序。 我试图重置内容和设置,但没有运气。 然后我卸载xcode完全包括〜/库/ Caches / com.apple.dt.Xcode,〜/库/开发人员,〜/图书馆/应用程序支持/ iPhone模拟器目录和文件手动并重新安装xcode 5.1.1,但照片应用程序的问题没有解决。 所以请帮我解决这个问题。 我是否错过了某些东西?,我是否必须彻底清除并重新安装mac才能重新工作,或者使用xcode 5.1.1在优胜美地存在兼容性问题。 另外我知道我可以在xcode 6中安装7.1模拟器,但它会在我的代码中需要一些额外的更改,如xcode 6. xcode 6中的ios 8模拟器没有这样的问题。 (对不起,我在这里是新的,我不能附加截图,因为没有10分)

错误是:10月30日11:34:38 CS02-MAC.local SpringBoard [4941]:BBServer:数据提供程序“com.apple.mobileslideshow”已停止响应60秒。 Oct 30 11:34:46 CS02-MAC.local assetsd [4998]:PLMigrationLog无法获取uuid映射的路径21无法打开数据库文件Oct 30 11:34:46 CS02-MAC.local assetsd [4998]:PLMigrationLog否存储文件移动到“/用户/ css /图书馆/应用程序支持/ iPhone模拟器/ 7.1 /媒体/ PhotoData / Photos.sqlite”10月30 11:34:46 CS02-MAC.local assetsd [4998]:PLMigrationLog未能打开存储/用户/ css /图书馆/应用程序支持/ iPhone模拟器/ 7.1 /媒体/ PhotoData / Photos.sqlite与选项{NSPersistentStoreFileProtectionKey = NSFileProtectionNone; NSReadOnlyPersistentStoreOption = 1; NSSQLitePersistWALOption = 1; NSSQLitePragmasOption = {“journal_mode”= WAL; }; }。 需要新的重建数据库(错误域= NSCocoaErrorDomain代码= 260“操作无法完成。(可可错误260.)”)10月30 11:34:46 CS02-MAC.local assetsd [4998]:***终止由于未捕获异常'NSInternalInconsistencyException',原因:'此NSPersistentStoreCoordinator没有持久性存储。 它不能执行保存操作。'

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. 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)

error was : Oct 30 11:34:38 CS02-MAC.local SpringBoard[4941] : BBServer: data provider "com.apple.mobileslideshow" has been unresponsive for 60 seconds. Oct 30 11:34:46 CS02-MAC.local assetsd[4998] : PLMigrationLog Failed to fetch path to uuid mappings 21 unable to open database file Oct 30 11:34:46 CS02-MAC.local assetsd[4998] : PLMigrationLog 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] : PLMigrationLog 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] : *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'This NSPersistentStoreCoordinator has no persistent stores. It cannot perform a save operation.'

最满意答案

问题解决了。 我通过Debug-> Open系统日志打开日志并调查问题,并发现找不到文件'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.

更多推荐

本文发布于:2023-07-17 13:10:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1144936.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法正常   应用程序   器中   照片   工作

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!