【问题标题】:Cocoapods not generating targetsCocoapods 不生成目标
【发布时间】:2016-06-20 17:53:34
【问题描述】:

我遇到了一个问题,每当我在我的 podfile 中更新或添加新库并运行 pod install 时,cocoapods 都不会为该库创建构建目标;这使得调整特定 pod 的构建设置变得不可能。

具体来说,最新的 GoogleMap pod、GoogleAnalytics pod 和 MapBox pod 可以做到这一点。我在 cocoapods 上仍然是 pre-1.0。

如果我深入我的 Pods/ 文件夹,我会看到这些 pod 的文件夹,但是在 Target Support Files 中没有创建任何文件夹。

有人知道如何解决这个问题吗?

我的播客文件:

platform :ios, '8.0'
pod 'ECSlidingViewController', '~> 2.0.3'
pod 'AFNetworking', '~> 2.5'
pod 'Stripe', '~> 5.0'
pod 'FormatterKit', '~> 1.7'
pod 'GPUImage', '~> 0.1'
pod 'PureLayout', '~> 2.0'
pod 'GoogleMaps', '~> 1.13.2'
pod 'FSCalendar'
pod 'DateTools'
pod 'FZAccordionTableView', '~> 0.1'
pod 'Overcoat', '~> 3.1'
pod 'Mapbox-iOS-SDK', '~> 3.2'
pod 'ISO8601'
pod 'Lookback', :configurations => ['Debug']
pod 'LookbackSafe', :configurations => ['Release']
pod 'QBValidator', '~> 1.0'
pod 'Flurry-iOS-SDK', '~> 7.3'
pod 'UAAppReviewManager'
pod 'TSNPeerBluetooth', '~> 1.0'
pod 'TSNAtomicFlag', '~> 1.0'
pod 'TSNExtensions', '~> 1.0'
pod 'CKStringUtils', '~> 2.0'
pod 'CLLocationManager-blocks', '~> 1.3'
pod 'Socket.IO-Client-Swift', '~> 6.1.0'
pod 'CardIO', '~> 5.3'
pod 'CocoaSecurity'
pod 'SecureNSUserDefaults', '~> 1.0'
pod 'PMTween', '~> 1.3'
pod 'GoogleAnalytics', '~> 3.14'

use_frameworks!

【问题讨论】:

    标签: ios cocoapods target xcode7.3


    【解决方案1】:

    你应该像这样修改你的 podfile:

    platform :ios, '8.0'
    use_frameworks!
    
    target 'YourTarget' do
            pod 'ECSlidingViewController', '~> 2.0.3'
            pod 'AFNetworking', '~> 2.5'
            pod 'Stripe', '~> 5.0'
            ...
            pod 'PMTween', '~> 1.3'
            pod 'GoogleAnalytics', '~> 3.14'
    end
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-06
      • 1970-01-01
      • 2013-07-19
      • 1970-01-01
      • 2015-08-04
      • 1970-01-01
      • 2014-11-27
      • 1970-01-01
      相关资源
      最近更新 更多