2016-09-14 60 views
1

我試圖下載和編譯https://developer.apple.com/library/content/samplecode/SourceView/Introduction/Intro.html錯誤編譯時的示例代碼 「SourceView」

我: 的Xcode 8.0版(8A218a) MacOS的塞拉利昂10.12 Beta版(16A313a)

我得到以下錯誤:

/Users/test/Downloads/SourceViewUsingNSOutlineViewwithNSTreeController/SourceView/Base.lproj/Main.storyboard: Exception while running ibtool: [<__NSCFConstantString 0x10db4cca0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key nodeTitle.

有沒有人有關於如何解決這個問題的線索?

回答

2

根據QuinceyMorris @https://forums.developer.apple.com/thread/62880

It's some kind of bug compiling storyboards in older formats. The only workaround I found (in a different project) was to set the file format to 10.12 (in the File panel of the Utility inspector) instead of the deployment target version. (FWIW the 10.12 format worked OK on 10.11, too, perhaps only by luck.)

我創建了以下雷達:

  • 28316038更新示例代碼
  • 28316077到DUP#19669391