Closed richardtop closed 5 years ago
Hi Richard,
Promises are used in Google's app extensions. We don't use any app-specific APIs and have APPLICATION_EXTENSION_API_ONLY
flags set in xcodeproj.
Your error looks like the lib is being missing during the linkage stage. Hope you were able to setup the project in such a way that Promises lib gets linked against your target.
Thanks.
Hi Anthony, you were right - the library has ben linked against the common core, but hasn't been linked with the extension target.
After I've added the framework to the intent as a CocoaPod, I was able to successfully run the app. Hence, the issue was closed.
Btw, congratulations with the new role at Facebook.
Hi, is it possible to use Promises in Application Extensions (i.e. Siri Intents or Today Extension)? I'm using Promises for my network layer which is shared using a framework. The Promises library is used with the help of CocoaPods.
The app is organized in the following manner:
AppNameKit
- Core framework with networking and logicAppName
- The application itelfAppIntent
- The Siri intentAppIntentUI
- The UI component of the Siri Intent.While the framework is linked correctly and the app works fine, I got the error when I try to use the
AppNameKit
inAppIntent
.I can
import Promises
in theAppIntent
, but whenever I use the code that actually usesPromise
as its return value, I get the error:What could be the reason for such result? What is the best way to use Promises in such a configuration (shared networking & logic core, multiple targets - app, extension, intents...)?
Are Promises safe to be used in App Extensions?