cocoa pod 需要指定target

在升级Podfile到最新版本后,为避免出现'依赖没有被任何具体目标使用'的错误,需要在Podfile中明确指定第三方库的目标。解决方案是详细配置Podfile的内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

podfile升级之后到最新版本,pod里的内容必须明确指出所用第三方库的target,否则会出现The dependency `` is not used in any concrete target这样的错误。

没有指定arget的报错:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /Applications/Cocos/tools/ant/bin in PATH, mode 040777
Re-creating CocoaPods due to major version update.
Updating local specs repositories
Analyzing dependencies

[!] The dependency `ReactiveCocoa (= 2.1.8)` is not used in any concrete target.

The dependency `UMengSocialCOM (~> 5.1)` is not used in any concrete target.

The dependency `UMengAnalytics` is not used in any concrete target.

The dependency `RTLabel (~> 1.0.1)` is not used in any concrete target.

The dependency `AlipaySDK-2.0 (~> 15.0.2)` is not used in any concrete target.

 修改方法:

Podfile内容更改:

platform :ios, 7.0

target "RWTFlickrSearch(you target name)" do
pod ReactiveCocoa, 2.1.8
pod objectiveflickr, 2.0.4
pod LinqToObjectiveC, 2.0.0
pod SDWebImage, 3.6
end

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值