AlfredSwiftLibrary icon indicating copy to clipboard operation
AlfredSwiftLibrary copied to clipboard

Build using xcode?

Open dac09 opened this issue 9 years ago • 3 comments

Hi,

Thanks for taking the time to build this, and write up the tutorial.

I was wondering if there's a way of configuring xCode to build with the library as a dependency?

Thanks, Daniel

dac09 avatar Jul 27 '15 05:07 dac09

Hi,

I am glad you enjoyed the tutorial. I had fun making it. I have yet to try it with the latest version of Swift. So far, every new Swift update has broken the code. Not fun!

You should be able too use the code in a normal XCode environment. I have never used xCode directly, because every time I have tried, it refused to compile since I do not have the appropriate developer credentials. Using the command line tools doesn't require the developer credentials (IE: paying Apple $100/year for the credentials is a bit steep for what I use it for). I have heard that other people have been able to build with Xcode without paying Apple, but I just can't seem to get it to work.

Richard

Daniel Choudhury wrote:

Hi,

Thanks for taking the time to build this, and write up the tutorial.

I was wondering if there's a way of configuring xCode to build with the library as a dependency?

Thanks, Daniel

— Reply to this email directly or view it on GitHub https://github.com/raguay/AlfredSwiftLibrary/issues/1.

raguay avatar Jul 27 '15 06:07 raguay

Thanks for the reply Richard.

I nearly got it to work by simply adding Alfred.swift into the project, but XCode doesn't seem to like compiling it. I also tried through your command line method, but the compiled application complains about having a nil value (I suspect it doesn't receive the arguments when run using ./tcoconverter test.

I'll take a look when I get a chance, and see if I can wrap it into a framework or library.

dac09 avatar Jul 27 '15 06:07 dac09

Yea, I was afraid of that. The latest Swift breaks my code. Are you using Swift 2 in XCode Beta 7. I just tried it with the latest beta and there are four incompatibilities. I don't have time right now, but I will look into it. If you get it first, please let me know. Thanks.

Richard

Daniel Choudhury wrote:

Thanks for the reply Richard.

I nearly got it to work by simply adding Alfred.swift into the project, but XCode doesn't seem to like compiling it. I also tried through your command line method, but the compiled application complains about having a nil value (I suspect it doesn't receive the arguments when run using |./tcoconverter test|.

I'll take a look when I get a chance, and see if I can wrap it into a framework or library.

— Reply to this email directly or view it on GitHub https://github.com/raguay/AlfredSwiftLibrary/issues/1#issuecomment-125105345.

raguay avatar Jul 27 '15 08:07 raguay