2012-06-13 54 views
2

我手动在我的iPhone/iPad开发的故事板文件中添加元素。
事实上,我在iPad的storyboard中复制视图,并计算iPhone的比例尺寸(1024x768到480x320)。
它工作正常,但有它添加含几个imageviews时出现错误:编辑xml文件时的界面生成器故事板编辑器错误

*CompileStoryboard iboniaIphoneLGT/LGT_iphone.storyboard 
    cd /Users/imac/Desktop/WORKSPACE 
    setenv IBSC_MINIMUM_COMPATIBILITY_VERSION 5.1 
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    setenv XCODE_DEVELOPER_USR_PATH /Applications/Xcode.app/Contents/Developer/usr/bin/.. 
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool 
    --errors 
    --warnings 
    --notices 
    --output-format human-readable-text 
    --compile 
      /Users/imac/Desktop/WORKSPACE/build/Debug-iphonesimulator/LGT.app/LGT_iphone.storyboardc 
      /Users/imac/Desktop/WORKSPACE/iboniaIphoneLGT/LGT_iphone.storyboard 
    --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk 

Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool 
failed with exit code 255* 

的消息不明确的,这是什么消息的可能原因???

Reex

+0

我正在努力解决同样的问题。你有没有找到解决方案? – Andrew

+0

我使用的图像视图所使用的图像源在故事板xml文件的部分中尚不存在! – Reex

+0

哦,好的。我的问题有点不同,但最终解决了! – Andrew

回答

2

我得到这个错误,并最终发现,当我选择在项目导航的厦门国际银行所使用的图像之一,它没有这个项目在文件检查器“目标成员”下检查。一旦我检查了,我再也没有得到这个错误。

所以我建议检查xib中使用的所有图像和其他资源,并确保它们的目标成员资格正确。

+0

对我也没有帮助。 –

0

在我的情况下,这是由于添加了一个等宽的约束。它没有任何意义。现在我对Xcode非常警惕。

0

对我来说,解决方案只是删除我的一些警告。我改变的警告只是改变var:s让:s在没有改变的属性上4个地方