RobertGummesson / BuildTimeAnalyzer-for-Xcode

Build Time Analyzer for Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xcode 8 support

RobertGummesson opened this issue · comments

Starting with Xcode 8, plugins will no longer be supported. I will make an attempt to work around this by making the Build Time Analyzer a standalone app. I believe this can be done by simply scanning the log files during the app launch (and perhaps with a refresh button or similar).

The most recent log file / files will be the ones to work with.

commented

@RobertGummesson or we can add a new run script build phase, and trigger the standalone app from there

@onmyway133 - Yep, that's an option too. ...or perhaps both.

I have a build log parser here: https://github.com/orta/Snapshots-app/blob/master/Snapshots/DeveloperDirWatcher.swift

Been wanting to convert all of this stuff into an XcodeSDK mixed with the new AppleScript API, but haven't made the time yet.

@orta Good stuff

Is there any progress on Xcode 8 support? I'd love to use this!

Yes, but it's been slow (other priorities). I'm still on it though so bear with me. :)

Update: #45 contains the implementation for the standalone app. I will be testing it throughout the day and merge it to master if nothing catches on fire.

A standalone app is obviously a bit more limited than a plug-in. Basically, the app now monitors the derived data folder rather than subscribing to Xcode notifications. Here are a couple of limitations:

  • The app doesn't indicate when a build process has started (but it knows when it ends)
  • Jumping to line upon selection no longer works, instead it just opens up the appropriate Swift file.

I have also made some smaller improvements. One is the ability to choose existing projects to analyze, i.e existing builds.