-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of iOS dynamic frameworks in a custom extension (use_frameworks! or use_modular_headers!) #73
Comments
Hey @Souro7. Looking into the issue, I tried to clone the app you had mentioned in an email thread, but it apparently no longer exists. If you could provide me with a new app ID to clone and reproduce this behavior, I'd be happy to have a crack at resolving this. Looking into the last error you mention:
As I'm unable to verify this without an test / example app ID, I can't check it out, but if you give me an app ID I'd be happy to try it myself. This may fail as the path for the podspec may be different now compared to when this was written, so if it fails, double check that the path is correct. |
Hi @Definitely-Not-Vlad, I was able to resolve the errors by adding the flags you suggested. But it looks like we should build only the required framework using modular headers using Is there a better way to do this in Shoutem? Since it looks like the dependency of that framework is not getting linked when this is done. Updated Podfile:
|
I was going to try to apply what you did with the
Unfortunately I can't think of a way to resolve this. Sorry for not being of much help with this. I'm not familiar enough with using (or not using) modular headers as this isn't a use case we've run into so far. |
What we are trying to do
We are trying to use a dynamic framework (native iOS swift) for our extension. Specifically,
use_frameworks!
is being used.What we have tried so far
For this, we have created a react-native bridge, which uses the same Framework.
This works perfectly in our react-native app when we add the following to our Podfile:
We have published a version of our extension using the same, however the
shoutem clone
command fails atpod install
with the following error when we clone this app from shoutem:Again to fix this, we made the following changes to the Podfile:
This resolves the pod install issue. However, this leads to Build fail with the following errors:
Another approach we have tried is
use_modular_headers!
instead ofuse_frameworks!
. This eliminates the previous errors, however, the Build still fails with the following error:Our entire Podfile is attached below:
Question
We can see that it is mentioned in your documentation that we are supposed to
Uncomment this line if you're using Swift or would like to use dynamic frameworks: https://shoutem.github.io/docs/extensions/tutorials/using-native-api#referencing-a-3rd-party-sdk
Is there a way to use iOS dynamic frameworks in our extension?
The text was updated successfully, but these errors were encountered: