Can't convert to the latest version of Swift because can't find framework module

I have a small macOS application with an embedded framework, both written in Swift. Each has its own Xcode project in separate locations on my Mac, and I use an Xcode workspace to develop and build both at once. I do not use CocoaPods or Carthage. My application and framework build and run successfully.

When I try to convert to the latest version of Swift using the Xcode conversion command, it fails with a "no such module" error for the framework.

My online research shows that "no such module" errors have been plaguing Xcode developers who use embedded frameworks for several years. A dozen or more solutions have been suggested online, and they apparently work in some contexts but not in others. None of them work for me.

Has anybody successfully run the Xcode Swift conversion command with an embedded framework and everything written in Swift? If so, can you spell out the key Xcode setup features that made it work for you?

···

_____

Bill Cheeseman -- wjcheeseman@gmail.com

You said you used Xcode command. Did you mean the menu item in Xcode? If
so, you should file a bug on Xcode on bugreport.apple.com.

As far as I know, swift migration guide is planed to be open sourced, but
it is not opened yet. So you should file a bug to Apple.

Zhao Xin​

···

On Sat, Aug 26, 2017 at 12:27 AM, Bill Cheeseman via swift-users < swift-users@swift.org> wrote:

I have a small macOS application with an embedded framework, both written
in Swift. Each has its own Xcode project in separate locations on my Mac,
and I use an Xcode workspace to develop and build both at once. I do not
use CocoaPods or Carthage. My application and framework build and run
successfully.

When I try to convert to the latest version of Swift using the Xcode
conversion command, it fails with a "no such module" error for the
framework.

My online research shows that "no such module" errors have been plaguing
Xcode developers who use embedded frameworks for several years. A dozen or
more solutions have been suggested online, and they apparently work in some
contexts but not in others. None of them work for me.

Has anybody successfully run the Xcode Swift conversion command with an
embedded framework and everything written in Swift? If so, can you spell
out the key Xcode setup features that made it work for you?

_____

Bill Cheeseman -- wjcheeseman@gmail.com

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users