Importing Cocoa SDKs

Elements already ships with .fx files for the latest macOS, iOS, tvOS and watchOS SDKs, but FXGen makes it possible to use beta SDKs we haven't added support for yet, or to manually re-import an existing SDK.

FXGen for Cocoa SDKs is integrated into the Fire IDE and available via the "Tools|Cocoa|FXGen|Import SDKs from Xcode" menu. Selecting the command will show the following sheet:

Fire will already pre-select the currently active Xcode version (if configured), but you can select a different (e.g. beta or older) version of Xcode.app via the "Browse" button at the top.

In the table view below, FXGen shows all the SDKs found in Xcode, and it will check the ones that Fire does not already have .fx files for. You can also optionally check SDKs marked as "(already imported)" to re-import them.

Finally, you can specify the destination folder where FXGen should put the finished .fx files, at the bottom.

Click "Import" to start the import process, and FXGen will launch the import script in Terminal, where you can see its progress.

Depending on the size and scope of the SDKs, this can take several mintes or longer.

The SDKs generate a lot of .fx files, for some platforms in up to five different versions. iOS for example generates armv7, armv7s and arm64 versions for the device, which will then be merged to a Universal .fx, and i386 and x64 version for the Simulator, which also will be merged. macOS generates well over 1000 different framework files, from ''Accelerate.fx'' to ''WebKit.fx'', and each new version adds more.