Use Cocoapods with an App Extension

前端 未结 4 1248
情深已故
情深已故 2020-12-02 05:00

I\'m trying to build a photo App Extension in Xcode 6 Beta-6 that uses cocoapods libraries. The bridging header that Xcode creates for the photo extension can\'t see anythin

4条回答
  •  情歌与酒
    2020-12-02 05:30

    link_with, you will not use it anymore.

    Invalid Podfile file: [!] The specification of link_with in the Podfile is now unsupported, please use target blocks instead..

    Below is the perfect answe, tested also.

    source 'https://github.com/CocoaPods/Specs.git'
    platform :ios, ‘9.0’
    use_frameworks!
    inhibit_all_warnings!
    
    target 'DemoTodayWidget' do
        pod 'Reachability',                         '~> 3.2'
    end
    
    target 'My Widget' do
        pod 'Reachability',                         '~> 3.2'
    end
    

提交回复
热议问题