Pod install, The dependency `*****` is not used in any concrete target

无人久伴 提交于 2019-11-30 11:08:56

Your Podfile should contains information in which target you want to install the cocoapods. The post installer in your Podfile sets only ACTIVE_ARCH flag to NO in each target.

If you have more than 20 targets in your app(and some mess in current Podfile), maybe try to remove Podfile and Podfile.lock and then do pod init. It will make CococaPods gem create a valid Podfile for your app. Then paste the CocoaPods that your app using and paste the post installer instruction to the new Podfile and try to reinstall cocoapods using pod install.

Remember to place pod instructions between correct target.

Look at the CocoaPods site about Podfile.

So your Podfile should look like:

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

Simply add your pod file in below block

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

It's a little weird, but the Gimbal SDK contains iCarousel so it might have problems with your podfile.

Source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!