Jenkins集成遇到的问题

1.Jenkins中某命令,比如"fir: command not found"的情况(fir已安装,且已配置好“Jenkins-> 系统管理->系统设置->Environment variables”)。
直接使用命令的绝对路径,查看路径命令,比如:"which fir",我的是"/usr/local/bin/fir",命令就变成"/usr/local/bin/fir"

2.Extended E-mail Notification插件不会发邮件。
需要在项目配置中,点开Extended E-mail Notification后面的"高级->高级",将"Recipient List"设置好,默认是空的

3.xcodebuild -exportArchive打包IPA,用ituns安装不了的问题.

#plist文件
Export_Plist_Path="${APP_NAME}/ExportAPPStoreIPA.plist"
xcodebuild archive -workspace "${APP_NAME}.xcworkspace" -scheme "${SCHEME_TEST}" -configuration "TEST" -archivePath "${ArchivPath}"
xcodebuild -exportArchive -archivePath "${ArchivPath}" -exportPath "${IPA_PATH}" -exportOptionsPlist $Export_Plist_Path

一定要使用"-exportOptionsPlist $Export_Plist_Path"进行打包才行,$Export_Plist_Path这个plist文件可以用xcode建立一个plish文件,增加一个键值对:"method:development"就可以了.

4.xcodebuild打APPStore发布包,只有打APPStore发布包才会有这个问题"No matching provisioning profiles found"

#证书名和profile名
CODE_SIGN_IDENTITY="iPhone Developer"
PROVISIONING_PROFILE="iOS Team Provisioning Profile: xxx"
xcodebuild archive -workspace "${APP_NAME}.xcworkspace" -scheme ${SCHEME} -archivePath "${Archive_Path}" -configuration Release"
xcodebuild -exportArchive -archivePath "${Archive_Path}" -exportPath "${IPA_PATH}" -exportOptionsPlist $Export_Plist_Path CODE_SIGN_IDENTITY="${CODE_SIGN_IDENTITY}" PROVISIONING_PROFILE="${PROVISIONING_PROFILE}"

我在网上找了许多解决方案,所有方案几乎都是将CODE_SIGN_IDENTITY和PROVISIONING_PROFILE放在xcodebuild archive命令后面,但始终有问题,最后我尝试将这两个参数放在xcodebuild -exportArchive后面才打包成功.

最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容