使用 Xcode Server 出现的错误
2019-03-05 本文已影响1人
WillPan
首先,非常感谢 使用 Xcode Server 持续集成 & 打包测试
这篇文章,
我开始以为是在自己项目所在的目录执行pod install、build操作,
所以一开始报错:
Bot Issue for YOUR_PROJECT Bot (error)
Integration #16 of YOUR_PROJECT Bot on Pan
Open Integration in Xcode: xcbot://YOUR_MAC/botID/a0c6d35e61da77a84c4b47178c000dc6/integrationID/a0c6d35e61da77a84c4b47178c02a918
Error: /Users/YOUR_NAME/Library/Caches/XCSBuilder/Bots/a0c6d35e61da77a84c4b47178c000dc6/Source/YOUR_PROJECT/Pods/Target Support Files/Pods-YOUR_PROJECT/Pods-YiJian.debug.xcconfig: unable to open file (in target "YOUR_PROJECT" in project "YOUR_PROJECT") (in target 'YOUR_PROJECT')
分析了错误之后发现Xcode Server会在/Users/YOUR_MAC/Library/Caches/XCSBuilder/Bots/a0c6d35e61da77a84c4b47178c000dc6/Source/YOUR_PROJECT目录下重新拉取代码进行编译打包
所以首先还是得执行pod install
# 设置执行环境的语言编码
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# 进入到项目目录
cd $XCS_PRIMARY_REPO_DIR
# 运行 pod install
# /Users/YOUR_MAC/.rvm/gems/ruby-2.2.2/bin/pod install
/usr/local/bin/pod install
由于我的ruby使用rvm安装的,所以pod路径需要
查询
which pod
得到:/Users/YOUR_MAC/.rvm/gems/ruby-2.2.2/bin/pod
- 错误2
Bot Issue for YiJian Bot (error)
Integration #25 of YiJian Bot on Pan
Open Integration in Xcode: xcbot://Pan/botID/a0c6d35e61da77a84c4b47178c000dc6/integrationID/a0c6d35e61da77a84c4b47178c06b4ba
Build Service Error: Failed to build workspace YiJian with scheme YiJian.
Reason: d: error: Failed to build workspace YiJian with scheme YiJian.
不用了 半小时打的包安装了打不开