react-native-siri-shortcut: RNSiriShortcuts/RNSiriShortcuts-Swift.h' file not found
Hi thanks for this Repo, I can’t build my project it gives me RNSiriShortcuts/RNSiriShortcuts-Swift.h' file not found
.
I tried also to link it manually but it gave me the same error.
i’m using react native 0.61.5
.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 27 (16 by maintainers)
I’m glad to say that v1.7.0 enables installing this package as a static library. That means, no
use_frameworks!
necessary if you’re willing to press a few more buttons on Xcode.I’ve updated the README with some new instructions for doing this, as well as a small change in the
AppDelegate.m
.If something is still not working, or the instructions aren’t very clear, please tag me here so I can reopen and take another look!
Closing.
Seems to work, I can keep Flipper now, nice work! 😃
Awesome! I’ll make a proper release and add more documentation on the README for this. Probably tomorrow
@high-performance-hery can you install version
1.7.0-alpha.0
?For this to work you need an empty swift file and a bridging header, if you don’t have them already. To do this just right-click on your project name on Xcode, select New File, choose Swift file and put it anywhere (you can name it whatever you want). When it asks you if you want to create a Bridging Header, say yes.
Then, in your AppDelegate.m, change
#import <RNSiriShortcuts/RNSiriShortcuts-Swift.h>
with@import RNSiriShortcuts;
Obviously, remove
use_frameworks!
from your Podfile, and that should be it. Hopefully it’ll build and the package will work just fine.Tag me when you’ve tried this out please!
That’s great! I’ll let you know when and what version you can install to test this
@Gustash I’ve tried
use_frameworks! :linkage => :static
and it didn’t build. Wrapping up other stuffs but I’ll look again just a bit later, thanks!modular_headers
for the React pod doesn’t work btw, or at least it used to not like it very muchThis was the main reason:
CocoaPods 1.9.1 introduces something new I haven’t tried:
use_frameworks! :linkage => :static
Can anyone here try this on their project to see if this fixes the issue for them?