cocoapods:继承! :search_paths不导入框架

时间:2017-06-11 20:20:30

标签: cocoapods

我有一个像这样的pod结构:

use_frameworks! // required for adding swift

target 'MainApp' do
        project 'MainApp.xcodeproj'
        platform :ios, '10.0'
        pod 'TTTAttributedLabel'
        pod 'Harpy'
        pod 'UXCam'

        target 'Widget' do
            project 'MainApp.xcodeproj'
            platform :ios, '10.0'
            inherit! :search_paths
        end

        target 'Stickers' do
            project 'MainApp.xcodeproj'
            platform :ios, '10.0'
            inherit! :search_paths
        end
    end

我认为inherit! :search_paths应该允许Widget和Stickers访问MainApp窗格,但是尝试将TTTAttribuedLabelHarpy导入窗口小部件或贴纸结果file not found 。它们列在framework search paths中,但不列在header search paths中,我不确定这是否是原因。如何从扩展程序中的主应用程序访问pod框架?

0 个答案:

没有答案