Subfile: Is it possible for the local package path relative to the Projectpath?

I am trying to add local containers to my iOS Object Project. Is there a way to use the root path of my project as a relative path? The only way I can get it to work is using something like this:

pod 'ObjCPod', :path => '~/Documents/iOS-Projects/MyApp/libraries/LocalPod/'

      

It doesn't work if I moved the Project folder or tried to create the project on a different computer.

I would like to have something like this:

pod 'ObjCPod', :path => '$(SRCROOT)/libraries/LocalPod/'

      

Is there a way to do this?

+3


source to share


1 answer


Yes, there is a way to do this, I have a project that uses cocoapods and has custom modules in it, in the folder where you have PodFile, putting your files folder and then change your podFile to

pod 'ObjCPod', :path => 'libraries/LocalPod/'

      



Should work, Hope it helps

+3


source







All Articles