Adorkable / seguecode

the missing support tool for building safe UIStoryboard code
MIT License
22 stars 3 forks source link

cant create binary #19

Closed pikaboo closed 8 years ago

pikaboo commented 8 years ago

How do you create the seguecode binary ?

I tried installing the plugin from alcatraz, and from source code, building the project seguecodePlugin scheme does not create the binary, and building seguecode scheme gives too many errors on my computer. Can you simply upload a binary i can use ?

yoiang commented 8 years ago

Hey @pikaboo ! I'm going to update the plugin today to support Xcode 7, that may resolve your issue! Do you have any insight into what may have been the problem? I know the Alcatraz installation process doesn't give much feedback on failures.

I will upload a binary as well, the only gotcha is that being a swift project with custom frameworks to properly run the binary you do need those frameworks available. You can already download a bundle that includes the latest binary and the frameworks (2.1.1) here: seguecode.bundle.zip. It's silly but to run it from command line you'll still running the binary directly from within the bundle, ie [PATH]/seguecode.bundle/Contents/MacOS/seguecode

I'll elaborate on the documentation, the seguecodePlugin scheme actually downloads the seguecode.bundle.zip associated with the plugin version, to build the executable you should build the seguecode scheme, the seguecodeBundle scheme, or the seguecodePlugin Local scheme.

yoiang commented 8 years ago

@pikaboo version 2.2.0 is out, give it a go with Xcode 7 and Alcatraz, let me know if it doesn't work.

Again you can also download the latest bundle (2.2.0) with the binary here: seguecode.bundle.zip

pikaboo commented 8 years ago

Hi, I downloaded the binary,

and put it somewhere near my project, then got this when building the project

image

What am I missinging/ doing incorrectly ?

image

pikaboo commented 8 years ago

here is what i get when i run it from the command line

 Lenas-MBP:devtools Lena$ ./seguecode -v

 dyld: Library not loaded: @rpath/seguecodeKit.framework/Versions/A/seguecodeKit
 Referenced from: /Users/Lena/Dev/workspace/mp4-ios/devtools/./seguecode
 Reason: image not found
 Trace/BPT trap: 5
yoiang commented 8 years ago

Hey @pikaboo ! So the error is saying that it's looking for the framework seguecodeKit, one of the required frameworks.

As mentioned above because Swift does not allow us to compile all libraries into one executable we cannot run the seguecode executable alone, it must be run from a location where it can find the required frameworks.

The easiest way to accomplish this is by running it from within seguecode.bundle: ./seguecode.bundle/Contents/MacOS/seguecode

yoiang commented 8 years ago

@pikaboo have you had a chance to try this?