错误:“没有这样的模块< Swift Cocoapod名称>”;与詹金斯 [英] Error: "no such module <Swift Cocoapod name>" with Jenkins
问题描述
我正在尝试设置 Jenkins 奴隶,以构建使用名为 Freddy的Swift吊舱的Swift项目。
I'm trying to setup Jenkins slave, to build my Swift project that uses a Swift pod called "Freddy".
问题是构建失败,并显示以下错误:
The problem is the build failed with error:
错误:否这样模块'Freddy'
error: no such module 'Freddy'
这是我的Podfile:
This is my Podfile:
platform :ios, '8.0'
use_frameworks!
target 'MyProject' do
pod 'AFNetworking', '~> 3.0'
pod 'Freddy'
end
CocoaPods版本0.39.0
CocoaPods version 0.39.0
Xcode 7.2.1(直接从Xcode构建时没有问题)
Xcode 7.2.1 (no problems while building from Xcode directly)
PS。在我将其替换为AFNetworking之前,Alamofire吊舱也发生了同样的问题。
PS. Same problem had happened with Alamofire pod before I replaced it with AFNetworking.
PSS。 Jenkins执行以下xcodebuild:
PSS. Jenkins executes following xcodebuild:
xcodebuild -scheme MyProject -workspace MyProject.xcworkspace -configuration调试clean build CONFIGURATION_BUILD_DIR = jenkinsOutput CODE_SIGN_IDENTITY = iPhone开发人员:Andrei Kadochnikov(XXXXXXXX)-目标 platform = iOS Simulator,名称= iPhone 6,OS = latest
PSSS。 我尝试自己从终端执行此命令,出现了与詹金斯给我的错误相同的错误。
推荐答案
发现由于参数 CONFIGURATION_BUILD_DIR = jenkinsOutput
而导致构建失败。我摆脱了它,构建成功。
令人困惑的错误消息。
Figured that the build was failed because of parameter CONFIGURATION_BUILD_DIR=jenkinsOutput
. I've got rid of it and build succeeded.
Confusing error message.
这篇关于错误:“没有这样的模块< Swift Cocoapod名称>”;与詹金斯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!