groue/GRMustache.swift

Boxed NSObjects fail for Cocoapods installation

Open

#28 opened on 2016年4月5日

GitHub で見る
 (7 comments) (1 reaction) (0 assignees)Swift (154 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (629 stars)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド