• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Swift Command Line Programs that Need Swift Frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Swift Command Line Programs that Need Swift Frameworks


  • Subject: Swift Command Line Programs that Need Swift Frameworks
  • From: Thomas Wetmore <email@hidden>
  • Date: Sat, 03 Oct 2015 15:03:49 -0400

I’m converting my natural language processing engine from an Objective-C static library to a Swift framework, and I just reached the point today that I need to start testing the port.

I naively thought what quicker way would there be to run a test than to put together a two or three line command line program to instantiate some of the important objects to see if they get built correctly. So I created a Swift command line program, but it immediately fails with the following:

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.

Can anyone confirm or contradict this?

Thanks,

Tom Wetmore
 _______________________________________________
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


  • Follow-Ups:
    • Re: Swift Command Line Programs that Need Swift Frameworks
      • From: Roland King <email@hidden>
    • Re: Swift Command Line Programs that Need Swift Frameworks
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: OpenMP/clang version in Xcode?
  • Next by Date: Re: Swift Command Line Programs that Need Swift Frameworks
  • Previous by thread: Re: Docs still say "preliminary"
  • Next by thread: Re: Swift Command Line Programs that Need Swift Frameworks
  • Index(es):
    • Date
    • Thread