A tool to convert Xcode .xib to .storyboard files

Overview

xib2Storyboard • GitHub license

xib2Storyboard is a handy tool to easily convert .xib files to .storyboard without the hassle of manually copying views, losing your outlets and possibly constraints in the process.

  • Maintain all outlets, outlet collections & constraints
  • Maintain all other objects such as additional views or gesture recognizers
  • Adds prototype cells to UITableViews

screenshot-app

Getting started

To run xib2Storyboard download this repo on macOS and run the xib2Storyboard.app file which is always the latest release. If you'd like to play around with the code yourself, build & run the Xcode project.

Prerequisites

  • xib2Storyboard requires macOS 10.11 El-Capitan or higher.

How to use

  1. Build & run the Xcode project (or run xib2Storyboard.app).
  2. Add view controller .xib file(s) by using the '+' button or dragging the files on the window.
  3. Select one of the export options from the dropdown menu.
  4. Import the newly generated .storyboard files in your Xcode project.

Before (.xib):

screenshot-xib

After (.storyboard):

screenshot-storyboard

Stability

This software is considered Beta. It has been thoroughly tested internally at November Five but not yet used in any live products.

Roadmap

Currently the following releases are planned:

xib2Storyboard 1.0.0 (TBD)

  • Support for macOS Interface Builder Files
  • Convert a .storyboard to multipe .storyboard's
  • Convert a .storyboard to one or multiple .xib's

Additional notes

xib2Storyboard was created by comparing the XML format of Interface Builder files. It may stop working for future versions of Xcode should Apple decide to change the XML format of .xib or .storyboard files. xib2Storyboard works and was tested using the Xcode 8 and Xcode 9 file formats. xib2Storyboard will be thoroughly tested when new beta versions of Xcode become available.

Contact

This project is maintained by Dries Van Schevensteen

Got any questions or ideas? We'd love to hear from you. Check out our contributing guidelines for ways to offer feedback and contribute.

License

Copyright (c) November Five BVBA. All rights reserved.

Licensed under the MIT License.

You might also like...
Command-line utility that checks comments for localizations in iOS interface files (.xib, .storyboard)

Localizations Comments Checker It's really easy to overlook and don't add comment for localization in interface file (.storyboard or .xib). This comma

Find common xib and storyboard-related problems without running your app or writing unit tests.
Find common xib and storyboard-related problems without running your app or writing unit tests.

IBAnalyzer Find common xib and storyboard-related problems without running your app or writing unit tests. Usage Pass a path to your project to ibanal

Easiest way to load view classes into another XIB or storyboard.
Easiest way to load view classes into another XIB or storyboard.

LoadableViews Easiest way to load view classes into another XIB or storyboard. Basic setup Subclass your view from LoadableView Create a xib file, set

ButtonClickStyle - This is a Customizable/Designable Button View, with 15 animated click styles, that allows you to design your own buttons from subviews, in storyboard and xib right away.
ButtonClickStyle - This is a Customizable/Designable Button View, with 15 animated click styles, that allows you to design your own buttons from subviews, in storyboard and xib right away.

ButtonClickStyle - This is a Customizable/Designable Button View, with 15 animated click styles, that allows you to design your own buttons from subviews, in storyboard and xib right away.

Generate beautiful .pdf Files from xib

Description The Library generates a PDF directly from interface builder with Auto-layouted views! Swift Version of UIView_2_PDF. Installation Download

Convert xcodebuild plist and xcresult files to JUnit reports
Convert xcodebuild plist and xcresult files to JUnit reports

trainer This is an alternative approach to generate JUnit files for your CI (e.g. Jenkins) without parsing the xcodebuild output, but using the Xcode

Convert .deb apps to .ipa files, on iOS, locally
Convert .deb apps to .ipa files, on iOS, locally

DebtoIPA Convert .deb apps to .ipa files, on iOS, locally Usage Download .deb that contains .app file. You will get an error if you try importing othe

Introducing with Xcode Storyboard and Interface Builder

I-am-rich Introducing with Xcode Storyboard and Interface Builder Introducing wi

Aplikasi iOS To Do List dengan Storyboard & Local CoreData (Database Xcode)
Aplikasi iOS To Do List dengan Storyboard & Local CoreData (Database Xcode)

ToDoList Aplikasi iOS ToDoList adalah sebuah aplikasi CRUD sederhana berbasis iOS yang digunakan untuk membuat sebuah list item. Aplikasi ini dibuat m

DevTool - A simple UI and powerful Mac OS application, Such as JSON-Formatting tool, JSON-to-model tool, AppIcon generator, Network-Request tool...
DevTool - A simple UI and powerful Mac OS application, Such as JSON-Formatting tool, JSON-to-model tool, AppIcon generator, Network-Request tool...

🔥 🔥 🔥 A simple UI and powerful Mac OS application. It is a collection of tools commonly used in my development work. Such as JSON-Formatting tool, JSON-to-model tool, AppIcon generator, Network-Request tool...

Setting up application specific localized string within xib file.
Setting up application specific localized string within xib file.

LocalizedView ##What is this? LocalizedView is a helper class for setting up application specific localized string within Xib file. Here is a video de

PDF generator using UIViews or UIViews with an associated XIB

Description Create UIView objects using any method you like, including interface builder with Auto-layout and size classes enabled. Then generate a PD

This app can translate the MainMenu.xib automatically
This app can translate the MainMenu.xib automatically

Main Menu Translator This app can translate the MainMenu.xib automatically. Desc

Synx - A command-line tool that reorganizes your Xcode project folder to match your Xcode groups
Synx - A command-line tool that reorganizes your Xcode project folder to match your Xcode groups

A command-line tool that reorganizes your Xcode project folder to match your Xcode groups. Xcode Finder Installation $ gem install synx Usage Basic ⚠

Tool to convert SVG to SwiftUI's Shape structure.
Tool to convert SVG to SwiftUI's Shape structure.

SVG to SwiftUI Converter Tool to convert SVG to SwiftUI's Shape structure. This approach is much more memory efficient than introducing a SVG library

Mephisto - A command line tool to convert Comic Book Zip archives to PDF and share them over AirDrop
Mephisto - A command line tool to convert Comic Book Zip archives to PDF and share them over AirDrop

mephisto A command line tool written in Swift to convert Comic Book Zip archives

A tool support convert image gif to gif3d
A tool support convert image gif to gif3d

Trick convert gif to gif3d using Swift Features Simple way to convert gif to gif3d Change background Change size eraser tool How to work Add a layer w

A tool to convert Apple PencilKit data to Scribble Proto3.

ScribbleConverter Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements Installation

An Xcode Plugin to convert Objective-C to Swift
An Xcode Plugin to convert Objective-C to Swift

XCSwiftr Convert Objective-C code into Swift from within Xcode. This plugin uses the Java applet of objc2swift to do the conversion. Noticed that the

Comments
  • Status for Xcode 10 beta

    Status for Xcode 10 beta

    As per the docs: "xib2Storyboard works and was tested using the Xcode 8 and Xcode 9 file formats. xib2Storyboard will be thoroughly tested when new beta versions of Xcode become available."

    How is xib2storyboard looking for Xcode 10?

    question 
    opened by nicholashughes 4
  • Clear button in main screen

    Clear button in main screen

    Hello Dries,

    A great tool you made !! Am using it in my current project and works nice. Any plans to add a Clear button in the main screen to start a new export after you're done with one.

    Thanks Frank

    enhancement good first issue 
    opened by fvvliet 1
Owner
November Five
We are November Five, a fully integrated digital transformation partner.
November Five
Xcode-compatible build tool.

xcbuild xcbuild is an Xcode-compatible build tool with the goal of providing faster builds, better documentation of the build process and running on m

Meta Archive 2k Dec 11, 2022
SwiftGen is a tool to automatically generate Swift code for resources of your projects

SwiftGen SwiftGen is a tool to automatically generate Swift code for resources of your projects (like images, localised strings, etc), to make them ty

null 8.3k Jan 5, 2023
An adorable little framework and command line tool for interacting with SourceKit.

SourceKitten An adorable little framework and command line tool for interacting with SourceKit. SourceKitten links and communicates with sourcekitd.fr

JP Simard 2.1k Jan 5, 2023
Automatically build and rebuild Xcode image catalogs for app icons, universal images, and more

Better asset workflow for iOS developers. Generate Xcode image catalogs for iOS / OSX app icons, universal images, and more.

Dotan J. Nahum 822 Dec 21, 2022
Xcode .appiconset generator for Adobe Illustrator.

Creating AppIcon sets from Adobe Illustrator This repo is rewrited from original repo https://github.com/CaryChamplin/CreatingIconsFromAI. Just genera

gitmerge 73 Nov 9, 2020
Script to support easily using Xcode Asset Catalog in Swift.

Misen Misen is a script to support using Xcode Asset Catalog in Swift. Features Misen scans sub-directories in the specified Asset Catalog and creates

Kazunobu Tasaka 123 Jun 29, 2022
A git plugin for real-world xcode versioning workflow.

git-xcp The most simplest, safe, and fully automatic git plugin for versioning workflow of real-world xcode projects. Current working or draft content

gitmerge 11 Dec 29, 2019
An Xcode plug-in to format your code using SwiftLint.

SwiftLintXcode An Xcode plug-in to format your code using SwiftLint. Runs swiftlint autocorrect --path CURRENT_FILE before *.swift file is saved. IMPO

Yuya Tanaka 348 Sep 18, 2022
An executable that can be called from a Run Script Build Phase that makes comments such as // TODO: or // SERIOUS: appear in Xcode's Issue Navigator giving them project-wide visibility.

XcodeIssueGenerator An executable that can be called from a Run Script Build Phase that makes comments such as // TODO: or // SERIOUS: appear in Xcode

Wunderman Thompson Apps 143 Oct 11, 2022
This repository contains rules for Bazel that can be used to generate Xcode projects

rules_xcodeproj This repository contains rules for Bazel that can be used to generate Xcode projects. If you run into any problems with these rules, p

BuildBuddy 233 Dec 28, 2022