Interface Builder could not open the document “.xib” because it does not exist

后端 未结 4 1979
眼角桃花
眼角桃花 2020-12-05 23:43

I am localizing an app, following the steps listed here. I have successfully achieved that with around 45 .xib\'s, while just 4 of them gives me this error:

\"Interf

4条回答
  •  盖世英雄少女心
    2020-12-06 00:22

    I am having a problem using Xcode 5 that might be the same issue. ibtools is randomly working when generating or writing localized strings to/from xib files. I had to use sudo on some xib files to get it to work. Here's an example:

    $ibtool --generate-strings-file en.lproj/MyVC.strings en.lproj/MyVC.xib
    
    
    
    
    com.apple.ibtool.errors
    
        
            description
            Interface Builder could not open the document "MyVC.xib" because it does not exist.
        
    
    
    
    

    Using sudo works although it complains about 'user domains will be volatile'

    $sudo ibtool --generate-strings-file en.lproj/MyVC.strings en.lproj/MyVC.xib
    2013-10-01 10:04:35.943 Interface Builder Cocoa Touch Tool[1717:303] CFPreferences: user       
    home directory at file:///var/root/Library/Application%20Support/iPhone%20Simulator/User/ is unavailable. User domains will be volatile.
    $
    

提交回复
热议问题