Why am I getting ibtool failed with exit code 255?

前端 未结 30 2006
梦谈多话
梦谈多话 2020-11-29 22:34

All of a sudden I can\'t build my project. I get the following compiler error:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.pl

相关标签:
30条回答
  • 2020-11-29 23:24

    I was getting this error when building for 10.9 an .XIB that was created in XCode 6.4 (10.10).

    See this answer. The XIB was calling for 'labelColor' which was introduced in 10.10, and was unknown to 10.9.

    Opening the XIB as source kept it from crashing XCode, and permitted me to change instances of 'labelColor' to 'textColor' and the error was resolved.

    0 讨论(0)
  • 2020-11-29 23:25

    I just experienced the same thing and none of the other answers here could resolve the issue for me. It turned out to be a duplicate UILabel in the storyboard due to a git merge. Apparently Xcode will crash if two UI elements have the same internal ID.

    My method for finding the responsible issue was:

    • Iteratively step backward through the git history, checking out each commit until you find the first storyboard that doesn't crash Xcode.
    • Once you have the commit that started crashing, check out HEAD and iteratively revert the storyboard changes in the problem commit. Continue to narrow it down until you have the one UI element or one line that will cause a crash.
    • Revert the responsible change permanently and restart Xcode. Open the storyboard again and you may be warned about an internal inconsistency. Agree to the proposed changes Xcode makes, but review them.
    • If necessary, you may now attempt to re-create the UI element or changes from scratch that were causing the problem before.
    0 讨论(0)
  • 2020-11-29 23:25

    I fixed the error with this command, close the simulator and Xcode:

    codesign -vv /A*/Xc* | open -ef
    

    Hope that helps.

    0 讨论(0)
  • 2020-11-29 23:27

    I was also facing the same issue in Xcode 8. Deleting the Derived data fixed my issue.

    1. Go to Folder ~/Library/Developer/Xcode/DerivedData/ and clear the folders within that
    2. Restart Xcode and Simulator and Run Your project....!
    0 讨论(0)
  • 2020-11-29 23:29

    In my case it happened after renaming some namespaces and I solved the same issue going to the projects properties > APPLICATION tab > Default namespace : giving the new correct namespace.

    Of Course I changed the namespace also inside the classes, but this will help because will fix all auto-generated files. Clean and build is recommended and eventually close and reopen the solution.

    0 讨论(0)
  • 2020-11-29 23:30

    As Logan Geefs mentions above, it appears to be caused by Interface Controller segues (i.e. loops). Deleting the "bad" segues doesn't really solve the navigation problem. What is needed is to place some button actions to [pop controllers] strategically.

    Here's the code that worked for me:

     - (IBAction)backToStart {
    
       [self popToRootController];
     }
    
     - (IBAction)backToPrevious {
    
       [self popController];
     }
    
    0 讨论(0)
提交回复
热议问题