The share of coco-hoods with custom frames included in the project

For the following architecture:

_Code
___CustomFramework
___ProjectA
_____ProjectA
_____Workspace
_____Podfile
_____Pods

I am using the ProjectA workspace (generated by podfile) and I have enabled CustomFramework inside ProjectA successfully, I can use the methods from CustomFramework inside ProjectA.

Now I would like to share ProjectA modules with CustomFramework. Therefore, I can use the methods from ProjectA modules inside CustomFramework. That I'm stuck and need help.

What I have tried so far:
But I'm not sure if this is the right way or good syntax for linking CustomFramework

PODFILE
platform: ios, '8.0'

link_with 'ProjectA', 'CustomFramework'

pod 'nameofpod', '3.1.0'

I also installed "Allow non-modular inclusion in Framework Modules" and set it to YES for the Project file (blue) and Custom Framework

But CustomFramework still doesn't recognize my objects: - /

+6
source share
1 answer

Try writing a podcast file this way:

workspace 'AllInOne.xcworkspace' xcodeproj 'ProjectA/ProjectA.xcodeproj' xcodeproj 'CustomFramework/CustomFramework.xcodeproj' target 'ProjectA' do platform :ios, '8.0' xcodeproj 'ProjectA/ProjectA.xcodeproj' pod 'nameofpod', '~> 3.1' end target 'CustomFramework' do platform :ios, '8.0' xcodeproj 'CustomFramework/CustomFramework.xcodeproj' pod 'nameofpod', '~> 3.1' end 
+4
source

Source: https://habr.com/ru/post/976167/


All Articles