Closed tkafka closed 3 years ago
For everyone with a same problem: You need to add the Promises
and FBLPromises
libraries manually to a WatchKit Extension
target:
Select your
WatchKit Extension
target, underFrameworks, Libraries and Embedded Content
add the library
https://onmyway133.github.io/blog/How-to-use-Swift-package-manager-in-watchOS/
Hello, I added Promises to my Xcode project's Swift Package section, and when I am building my WatchKit app, I get a
Missing required module 'FBLPromises'
message on a line where Iimport Promises
in swift file.I tired to solve this by adding
#import "FBLPromises.h"
to my bridging headers file (MyAppName-Bridging-Header.h
), but then the build just says'FBLPromises.h' file not found
.Any idea what I am doing wrong? There are no useful Google results for
module FBLPromises not found
with Swift Package Manager, all I found were about CocoaPods.