簡體   English   中英

Xcode 7 beta 2:LaunchScreen.storyboard無法打開文檔

[英]Xcode 7 beta 2: LaunchScreen.storyboard could not open document

我在兩台不同的Mac(iMac和Mac Book pro)上收到此錯誤。 不知道為什么人們無法重現它,但我需要一些幫助。

在此輸入圖像描述

我正在運行OS X Yosemite 10.10.4的Mac上運行Xcode 7 beta 22015年6月23日)。

甚至無法編譯和運行我的項目..

我從創建菜單創建了一個單一的視圖應用程序項目,就是這樣。

編輯:

我試圖刪除並重新添加storyboard文件(也打開Main.storyboard cannote),我仍然得到相同的消息。 這是崩潰報告:

Process:               com.apple.CoreSimulator.CoreSimulatorService [2316]
Path:                  /Applications/Xcode-beta.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService
Identifier:            com.apple.CoreSimulator.CoreSimulatorService
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           com.apple.CoreSimulator.CoreSimulatorService [2316]
User ID:               489132888

Date/Time:             2015-07-08 11:47:46.022 +0100
OS Version:            Mac OS X 10.10.4 (14E11f)
Report Version:        11
Anonymous UUID:        --value--


Time Awake Since Boot: 7500 seconds

Crashed Thread:        0

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /usr/lib/libwep
  Referenced from: /Applications/Xcode-beta.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService
  Reason: no suitable image found.  Did find:
    /usr/lib/libwep: mmap() error 1 at address=0x105FB8000, size=0x00003000 segment=__TEXT in Segment::map() mapping /usr/lib/libwep
    /usr/lib/libwep: mmap() error 1 at address=0x105FBF000, size=0x00003000 segment=__TEXT in Segment::map() mapping /usr/lib/libwep

Binary Images:
    0x7fff6a06c000 -     0x7fff6a0a2837  dyld (353.2.1) <72A99D0F-0B56-3938-ABC5-67A0F33757C4> /usr/lib/dyld
    0x7fff843dd000 -     0x7fff8470efff  com.apple.Foundation (6.9 - 1153.20) <F0FF3A5D-C5B7-34A1-9319-DE1EF928E58E> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff89079000 -     0x7fff89411ff7  com.apple.CoreFoundation (6.9 - 1153.18) <5C0892B8-9691-341F-9279-CA3A74D59AA0> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8944a000 -     0x7fff8944bff3  libSystem.B.dylib (1213) <17F6DDBE-8FDC-3DD5-8562-76618A81CFE6> /usr/lib/libSystem.B.dylib
    0x7fff8d2f1000 -     0x7fff8d4eb46f  libobjc.A.dylib (647) <759E155D-BC42-3D4E-869B-6F57D477177C> /usr/lib/libobjc.A.dylib

這對El Capitan來說很有用。

/庫/開發商/ CoreSimulator /概況/運行時

並刪除那里的配置文件。 重新啟動Xcode,它應該工作!


對於Yosemite用戶,請嘗試以下操作:

  • 打開終端

cd庫

cd開發者

cd設備

rm -rf *

此外,您始終可以鍵入ls以列出文件和目錄。 您的計算機上可能還有其他文件夾,例如“個人檔案”。 不確定,因為我只在我的Yosemite機器上做了這個沒有問題。

重啟Xcode,清理,構建等。

如果存在任何權限問題,請使用sudo。

轉到目標/常規並修復部署目標。 我希望這個對你有用

在文本模式下打開LaunchScreen.storyboard並查找任何異常。

你也可以刪除它並創建一個新的,因為你只有里面的默認UIViewController

  1. 清潔項目
  2. 清理派生數據

等待重新索引文件

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM