Cannot access classes inside generated pod framework #14
Comments
if you |
Only this:
|
does |
No, it does not |
Thaaaaaaaaaats weird |
is the code you're trying to reference the module from also inside a pod? |
@AlecStrong sounds pretty similar to the issue we talked about in Slack. I didn't find a solution for this myself, yet. |
oh right - @jrocharodrigues whats name of the also @jonasbark did that ever get resolved? |
Unfortunately no. I ended up using a standard Build Phase that executes the |
@AlecStrong No, it's directly on the main project
@AlecStrong I cannot confirm right now (just left work). Tomorrow i'll confirm that to you. |
@AlecStrong I'm now looking at the code at your repository and just remembered something weird i noticed with the On the generated framework instead of: there is something like:
And i'm almost sure that the file companysdk-umbrela.h only imports i'm writing this from the top of my head, so some names can be incorrect, but i think i wrote the gist of it right. |
Hi @AlecStrong , As for the umbrella files, i confirm waht i said yesterday. framework module companysdk {
umbrella header "companysdk-umbrella.h"
export *
module * { export * }
} companysdk-umbrella.h #ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double companysdkVersionNumber;
FOUNDATION_EXPORT const unsigned char companysdkVersionString[]; |
Hi again, I've been messing around in the project trying to solve the problem, and if a paste the code from I tried running directly to a device but got similar error: |
sweet, I think we're getting closer. so if I understand correctly, if you run
in it? can you tell me whats in |
Hi, on my Podfile and everything works perfectly now. I'm not really sure if commenting this will have any side effects, or if this should be commented from the beginning... Is this anything related to your lib? |
Correct.
|
I'll close the issue since it was an issue on my on my |
I also have this issue, as my project uses Swift, I can't comment |
Hi,
After renaming the dir of my project to remove the -, i was able to successufly generate the pod framework both by invoking
./gradlew createIosDebugArtifacts
on the terminal or by building the project directly on xcode, but i cannot access any of the classes it contains.I can import the module, but when i try to create an object of a type which is part of the multi-platform project it is no recognised.
None of the classes show in the autocomplete, and if i declare the type manual i cannot build the xcode project.
Browsing the pod frameworks on xcode i can see the correct header file is present.
Is this a problem with the pod generation step or am i missing some setting or flag on my xcode project ?
Thanks in advance
The text was updated successfully, but these errors were encountered: