Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 5, storyboard update image position issues

When I open up my Xcode 4.x project in Xcode 5 and load a Storyboard some strange things are occurring. Mainly, some of my images are getting re-sized and positioned. The size always gets set to 0,0 and the position is somewhere WAY off screen. Values like -3007,12824. This is an app with a massive amount of storyboard layout and while it hasn't messed with all the images, there are easily 500+ that have this problem.

for example this

<rect key="frame" x="403" y="134" width="572" height="486"/>

changed to

<rect key="frame" x="-815" y="1490" width="0.0" height="0.0"/>

I've tried setting the storyboard to Xcode 4.6 version, but no effect. Anyone know why this is happening and how to prevent it (short of manually discarding all the changes I don't want)?

edit: I am using the GM Seed for Xcode 5.

like image 913
DBD Avatar asked Sep 17 '13 14:09

DBD


1 Answers

I found this post on the Apple Developer forums which seems to imply this is a bug. I've submitted the appropriate radars to Apple to help the find the root cause (as they've suggested).

In the meantime, I have a simple process for converting my storyboard.

  1. Open them in Xcode 5.
  2. Say I want to commit the changes (we all use source control, right?)
  3. Select each storyboard in the list of modified files, go down the XML diffs and discard any changes which move my images. They are fairly easy to spot.
  4. Add a comment and finish the commit.

After the initial conversion, from 4.x -> 5, Xcode screwed with the location of my images. While it's an annoying process, it's a lot quicker than either re-creating the storyboard or manually trying to move items back to their original position.

Oh yeah... and please file Radars with Apple so they can solve the issue. :)

like image 67
DBD Avatar answered Dec 06 '22 20:12

DBD