-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Modulemap path works for local pod development but not when the pod is installed from remote #7619
Comments
Not sure for the core problem but one thing to note:
Are you intentionally changing this? |
@dnkoutso thanks for the quick reply I added SWIFT_INCLUDE_PATHS change based on the solution suggested in #5271 I just tried removing the d.xcconfig line from the podspec. When I re-pod installed, I got the error I'm not familiar with module maps, but it seems like this is an issue with the header path in my module map, which works to incorporate my_framework is a development pod, but not when it's installed as a pod from a remote source. |
@bryanboyko I think it would be best to provide a sample app for us to repro and diagnose. |
@dnkoutso ok coming up |
@dnkoutso project is up at https://github.com/bryanboyko/PodFrameworkWithVungleDependency The sample app is currently set up with a pod install from the remote source. Run the sample app to see the build error. Switching the sample app podfile to point to the local version of the SDK will cause the sample app to run successfully |
@bryanboyko thanks! miiight be related to #7616? You can apply the fix manually or use |
@dnkoutso thanks will take a look |
@dnkoutso I'm having a bit of trouble figuring out how to apply the fix manually. I followed the PR code to the
That means I just need to add VungleSDK to the FRAMEWORK_SEARCH_PATHS and OTHER_LDFLAGS in the sample app's build settings? |
@bryanboyko for 1.6.0 all of the build settings are being re-written. Sorry haven't had time to look over this issue. |
@bryanboyko from a very quick look this might be fixed by the build settings revamp #7631 |
@dnkoutso no worries. Looking forward to the next Cocoapods release. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍 |
@bryanboyko I'm experiencing the same issue that you mentioned here, did you end up solving your issue? |
@bryanboyko I would like to know also! |
@bryanboyko Im facing the same issue, how did you fix ? |
@brentnycum I am having same issue, did you solved it? |
Hello @dnkoutso It issue is closed and it seems that @brentnycum did found solution but can you put some more light over solution ? |
Incase anyone is still looking the answer just like me before, modulemap file directory is different when we using remote pod instead of local pod. Therefore, you might have to modify header path in modulemap file a bit to math with new directory in remote version, in my case: module InsiderMobile [system] {
} I change the header directory before deploy pod and it work fine for my application |
Report
What did you do?
Create my_framework with a VungleSDK dependency as a pod (VungleSDK is included by CocoaPods as a .framework as opposed to being a collection of source files which CocoaPods then packaged as a framework).
Expose Objective-C VungleSDK module to my_framework Swift files with the following code from module.modulemap
The potentially relevant portion of my podspec:
The above setup works for local development, but not when my_framework is installed by CocoaPods from a remote source.
I used the answers from the below CocoaPods issue to get local development working #5271
My header path in the module map looks gross. I'm guessing it's causing this issue. I couldn't find how to make the path work after digging around the web.
Likely there is an answer in the clang docs? I'm finding them difficult to decipher.. http://clang.llvm.org/docs/Modules.html#module-declaration
What did you expect to happen?
The module map path that works for local pod development of my_framework should also work when my_framework is installed from a remote source
What happened instead?
XCode build error
CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
Project that demonstrates the issue
Let me know if a sample project will be helpful and I will make one.
The text was updated successfully, but these errors were encountered: