How to link a cocoapods cordova plugin src to a .framework header file when there's multiple xcode projects in the workspace?

前端 未结 1 1694
终归单人心
终归单人心 2021-01-18 12:52

The unique situation is that this is an Ionic app that pulls in the uncompiled plugin source via pods. The problem is that when compiling, the plugin headers and implementat

1条回答
  •  [愿得一人]
    2021-01-18 13:03

    I'm not sure if it's applicable for your scenario, but way back I did post processing of the PCH file for one of my pods in the podfile.

        platform :ios, '7.0'
        pod 'A','7.4.1'
        pod 'B', '0.3.1-beta2'
        pod 'C', '0.6.5'
    
        post_install do | installer |
           print "Updating #{installer.sandbox.target_support_files_root}/Pods-A/A.pch\n"
           open("#{installer.sandbox.target_support_files_root}/Pods-A/A.pch","a") do |file|
           file.puts <

    That allowed me to inject extra header imports on pod level during pod install after all the sources of the pods have already been checked out.

    0 讨论(0)
提交回复
热议问题