What's ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES with CocoaPods, Swift 3 and Xcode 8

前端 未结 6 682
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 01:49

after installing cocoapods and adding pod \"SwiftCarousel\" to pod file and uncomment the platform :ios, \'9.0\' I got this ERROR

ALWAYS

6条回答
  •  难免孤独
    2020-12-08 02:22

    The accepted solution works, but now you have to make sure all of your teammates are performing it each pod install.

    And we all know they won't.

    You could make CococaPods do it automatically, by adding this to the bottom of your Podfile:

    post_install do |installer_representation|
        installer_representation.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
                if config.name == 'MyPOD' 
                    config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'Yes'
                end
            end
        end
    end
    

    More info here: https://www.devsbedevin.net/cocoapods-always-embed-swift-standard-libraries/

提交回复
热议问题