groue/GRMustache.swift

Boxed NSObjects fail for Cocoapods installation

Open

#28 创建于 2016年4月5日

在 GitHub 查看
 (7 评论) (1 反应) (0 负责人)Swift (154 fork)github user discovery
bughelp wanted

仓库指标

Star
 (629 star)
PR 合并指标
 (PR 指标待抓取)

描述

When installing the framework via Cocoapods, NSObject subclasses aren't properly boxed, due to the compiler conditional in Box.swift.

Here's a temporary workaround hook for a project's Podfile:

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == "GRMustache.swift"
            target.build_configurations.each do |config|
                config.build_settings['OTHER_SWIFT_FLAGS'] ||= ['$(inherited)', '-DOBJC']
            end
        end
    end
end

贡献者指南