Skip to content

Instantly share code, notes, and snippets.

@L1ghtmann
Created July 8, 2023 03:45
Show Gist options
  • Select an option

  • Save L1ghtmann/5865805d724a935935cd0035b386ef85 to your computer and use it in GitHub Desktop.

Select an option

Save L1ghtmann/5865805d724a935935cd0035b386ef85 to your computer and use it in GitHub Desktop.
Theos App -> Xcode App

Theos app to Xcode-compatible app:

Choose:

  • Xcode Proj Template: iOS > App
  • Interface - storyboard
  • Language - language you wrote the app in (swift or objc)

In target settings that appear after choosing creation dir:

  • Info > Delete 'Application Scene Manifest' and 'Main storyboard file base name'
  • Build Phases > add required libraries, frameworks, etc as listed in Theos proj makefile

Then ...

  • Delete -- "Move to Trash" and not "Remove Reference -- all code files (AppDelegate*, SceneDelegate*, and ViewController*, main*), delete Main.storyboard, and copy in your project files from the Theos proj
  • Click "+" at bottom of Xcode and "Add Files to 'Proj-Name'"
  • Select all the copied files/folders you'd like Xcode to recognize and click "Add" (leave as 'create folder references', no 'create groups', no 'copy items if needed', and 'add to targets "Proj-name"')
  • Attempt to build (the "Start" button at the top of Xcode) and fix any include/import discrepancies (Xcode doesn't require relative paths)

Voila!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment