Post

Replies

Boosts

Views

Activity

Module not found error importing framework using SPM package
I'm trying to convert an existing project to use Swift Package Manager projects for its external dependencies. Previously I was using Carthage.My project includes a private framework named HypnoLib, a share extension, and the main application. Both the share extension and the app depend on the private framework. The private framework depends on several SPM packages, one of which is named LlamaLib.The private framework and the app build fine, but when I try to build the share extension I get these errors:<module-includes>:2:9: note: in file included from <module-includes>:2:#import "Headers/HypnoLib-Swift.h" ^/Users/samalone/Library/Developer/Xcode/DerivedData/Succubus-ajafbtomyfjhlgbqdzjavilgugud/Build/Products/Debug-iphonesimulator/HypnoLib.framework/Headers/HypnoLib-Swift.h:185:9: error: module 'LlamaLib' not found@import LlamaLib; ^<unknown>:0: error: could not build Objective-C module 'HypnoLib'Looking at the automatically generated file HypnoLib-Swift.h I see:@import Foundation; @import LlamaLib;but I don't see imports for the other two SPM libraries that are used by HypnoLib.So I guess my questions are:Why does HypnoLib-Swift.h try to import LlamaLib but not the other two SPM packages used in HypnoLib?Why can't LlamaLib be found when my share extension tries to import HypnoLib?
6
0
10k
Jul ’19