Use ibtool to get auto layout warnings from CLI

Hi.


I'm trying to use command line tool (ibtool) to get the same set of Storyboard compiler warnings I get in Xcode.

For example, this is what I get in Xcode (can't paste an image):



[-] Ambiguous layout

[-] Position is ambigous for "ImageView"

[-] ...


There's 5 warnings in total I see in Xcode.

But when I try to run ibtool from command line, I get no warnings of any kind:



xcrun ibtool
  --warnings --errors --notices
   MisplacedView/Base.lproj/Main.storyboard



I tried using more otptions to simulate full compilation command:


xcrun ibtool --sdk iphoneos
  --warnings --errors --notices
  --target-device iphone --minimum-deployment-target 9.0
  --module MisplacedView
  --compilation-directory build/MisplacedView.app/Base.lproj
  --compile build/MisplacedView.app/Base.lproj/Main.storyboardcc
  MisplacedView/Base.lproj/Main.storyboard

No success, I always get an xml like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>com.apple.ibtool.document.errors</key>
  <dict/>
  <key>com.apple.ibtool.document.notices</key>
  <dict/>
  <key>com.apple.ibtool.document.warnings</key>
  <dict/>
</dict>
</plist>
Use ibtool to get auto layout warnings from CLI
 
 
Q