Подтвердить что ты не робот

Pod install, зависимость `*****` не используется в какой-либо конкретной цели

У меня есть проект от другого, когда я устанавливаю консоль, скажите мне:

Analyzing dependencies
[!] The dependency `MMDrawerController (~> 0.5.7)` is not used in any concrete target.
The dependency `ViewUtils` is not used in any concrete target.
The dependency `CPAnimationSequence` is not used in any concrete target.
The dependency `iCarousel` is not used in any concrete target.
The dependency `BlocksKit (~> 2.2.5)` is not used in any concrete target.
The dependency `AFNetworking` is not used in any concrete target.
The dependency `MBProgressHUD (~> 0.8)` is not used in any concrete target.
The dependency `NSString-UrlEncode` is not used in any concrete target.
The dependency `INTULocationManager` is not used in any concrete target.
The dependency `SDWebImage (= 3.7.2)` is not used in any concrete target.
The dependency `Adjust (from `https://github.com/adjust/ios_sdk.git`, tag `v3.4.0`)` is not used in any concrete target.
The dependency `TARTT (from `https://github.com/takondi/tartt-sdk-ios.git`)` is not used in any concrete target.
The dependency `SIAlertView (~> 1.3)` is not used in any concrete target.
The dependency `GoogleAppIndexing` is not used in any concrete target.
The dependency `Gimbal` is not used in any concrete target.

В чем проблема? потому что проект имеет более 20 трагеток, они используют шаблон post_install и отлично работают, но это не работает для меня.

моя версия cocoapod - 1.1.1, справка pls.

вот подфайл:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'

pod 'MMDrawerController', '~> 0.5.7'
pod 'ViewUtils'
pod 'CPAnimationSequence'
pod 'iCarousel'
pod 'BlocksKit', '~> 2.2.5'
pod 'AFNetworking'
pod 'MBProgressHUD', '~> 0.8'
pod 'NSString-UrlEncode'
pod 'INTULocationManager'
pod 'SDWebImage', '3.7.2'
pod 'Adjust', :git => 'https://github.com/adjust/ios_sdk.git', :tag => 'v3.4.0'
pod 'TARTT', :git => 'https://github.com/takondi/tartt-sdk-ios.git'
pod 'SIAlertView', '~> 1.3'
pod 'GoogleAppIndexing'
pod 'Gimbal'

post_install do |installer_representation|
    installer_representation.project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
        end
    end
end
4b9b3361

Ответ 1

Ваш Podfile должен содержать информацию о том, какой целью вы хотите установить cocoapods. Установщик сообщений в настройках подфайла только ACTIVE_ARCH указывает на NO в каждой цели.

Если у вас более 20 целей в вашем приложении (и некоторые беспорядки в текущем подпикселе), возможно, попробуйте удалить Podfile и Podfile.lock, а затем выполните pod init. Это сделает камень CococaPods для действительного Podfile для вашего приложения. Затем вставьте CocoaPods, чтобы ваше приложение использовало и вставляло инструкцию post installer в новый подфайл и пыталось переустановить cocoapods с помощью pod install.

Не забудьте поместить команды pod между правильной целью.

Посмотрите на сайт CocoaPods о подфайле.

Итак, ваш подфайл должен выглядеть так:

target 'YourTargetName' do

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'

pod 'MMDrawerController', '~> 0.5.7'
pod 'ViewUtils'
pod 'CPAnimationSequence'
pod 'iCarousel'
pod 'BlocksKit', '~> 2.2.5'
pod 'AFNetworking'
pod 'MBProgressHUD', '~> 0.8'
pod 'NSString-UrlEncode'
pod 'INTULocationManager'
pod 'SDWebImage', '3.7.2'
pod 'Adjust', :git => 'https://github.com/adjust/ios_sdk.git', :tag => 'v3.4.0'
pod 'TARTT', :git => 'https://github.com/takondi/tartt-sdk-ios.git'
pod 'SIAlertView', '~> 1.3'
pod 'GoogleAppIndexing'
pod 'Gimbal'

post_install do |installer_representation|
  installer_representation.project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
    end
  end
end
end

Ответ 2

Просто добавьте файл pod в нижний блок

target 'YourApp' do
  pod '*******', '~> 1.0'
end

Ответ 3

Это немного странно, но SDK Gimbal содержит iCarousel, поэтому у него могут быть проблемы с вашим podfile.

Источник