Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 964 Vote(s) - 3.56 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Podspec subspec where the module name is not the same as the podspec name?

#1
So I have a project in swift (xcode 7) that has a bunch of framework targets, I want to have one podspec that includes, as subspecs, all of these frameworks.

When I create a podspec and add a bunch of subspecs to a sample project the sample project doesn't compile because the module names have changed.

For example I have a podspec named "Frameworks" with subspecs "Datamodel" and "Common".

I create a sample project with a podfile that has references to both 'Frameworks/Datamodel' and 'Frameworks/Common'. The datamodel framework has dependencies on the common and inside the datamodel code the common framework is imported with

import common

but in the sample project all of the subspecs are getting inserted into a new framework that cocoapods generates called Frameworks so this import common throws an error saying it can't find the common module. I have to change it to

import Framework

To get it to work, but that is definitely not an acceptable solution.

How can I resolve this?? Or is this just something I can't do?
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through