RobertGummesson / BuildTimeAnalyzer-for-Xcode

Build Time Analyzer for Swift
MIT License
4.3k stars 260 forks source link

Xcode 8 support #38

Closed RobertGummesson closed 8 years ago

RobertGummesson commented 8 years ago

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.

onmyway133 commented 8 years ago

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

RobertGummesson commented 8 years ago

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

orta commented 8 years ago

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.

RobertGummesson commented 8 years ago

@orta Good stuff

juliand665 commented 8 years ago

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

RobertGummesson commented 8 years ago

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

RobertGummesson commented 8 years ago

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:

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