我一直在使用cocoapods封装东西,但是在重命名了整个xcode项目之后,当我尝试封装lotty时,cocoapod并没有协调我重命名的目标,而且我也不知道如何替换目标与新的
此错误显示在终端上
[!] Unable to find a target named `Infinity Math`, did find `Infinity Math.temp_caseinsensitive_rename`, `Infinity Math.temp_caseinsensitive_renameTests`, and `Infinity Math.temp_caseinsensitive_renameUITests`.
我的Pod文件
platform :ios, '12.0'
target 'Infinity Math' do
use_frameworks!
pod 'UITextField+Shake', '~> 1.2'
pod 'SPAlert'
pod 'CBFlashyTabBarController'
pod 'Spring', :git => 'https://github.com/MengTo/Spring.git'
pod 'lottie-ios'
target 'InfinityMathTests' do
inherit! :search_paths
end
target 'InfinityMathUITests' do
inherit! :search_paths
end
end
接下来我该怎么做才能装上新的吊舱?
答案 0 :(得分:0)
为Podfile中的目标提供与Xcode中显示的名称相同的名称:
target 'Infinity Math' do
target 'Infinity MathTests' do
target 'Infinity MathUITests' do
答案 1 :(得分:0)
我已通过将目标重命名为错误中的目标来解决了该问题
InfinityMath.temp_caseinsensitive_rename
,
InfinityMath.temp_caseinsensitive_renameTests
,InfinityMath.temp_caseinsensitive_renameUITests
这很奇怪