Re: Swift Command Line Programs that Need Swift Frameworks
Re: Swift Command Line Programs that Need Swift Frameworks
- Subject: Re: Swift Command Line Programs that Need Swift Frameworks
- From: Thomas Wetmore <email@hidden>
- Date: Sat, 03 Oct 2015 19:15:41 -0400
Jens,
Thanks. A great thing about this list is that the answers often leave me more confused than when I asked the question, which is, in fact, great, because it often leads to learning new things. I’ve looked into otool and install_name_tool now, and I’m beginning to understand the issue. I’ve never been able to concentrate hard enough to really understand the issues of dynamic linking, though.
So I can get going with my test fast, however, I went back to my usual test harness, which is just a simple app with buttons for each major test. I added a button to do the NLP testing, and it’s working fine. I’ll be sticking with that for awhile.
With any luck, I can put off learning more about dynamic linking for awhile. Toungue in cheek. I really appreciate how much willingness to help there is on this list. Thanks again.
Tom Wetmore.
> On Oct 3, 2015, at 3:32 PM, Jens Alfke <email@hidden> wrote:
>
>
>> On Oct 3, 2015, at 12:03 PM, Thomas Wetmore <email@hidden> wrote:
>>
>> dyld: Library not loaded: @rpath/libswiftAppKit.dylib
>> Referenced from: /Users/ttw4/Library/Developer/Xcode/DerivedData/LifeLines-aybxjpaancakhdbudfijgqpqpbhi/Build/Products/Debug/DeadEndsKit.framework/Versions/A/DeadEndsKit
>> Reason: image not found
>>
>> A little research indicates that it may not be possible (yet?) to run Swift command line programs if they require Swift frameworks in order to run.
>
> You could run install_name_tool on your binary to change the path of libswiftAppKit.dylib to the real location; or alternatively set the Runtime Search Paths [sp?] build setting to the directory it’s in. Although if its real location is inside the Xcode bundle, that won’t be very portable.
>
> —Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden