xml地图|网站地图|网站标签 [设为首页] [加入收藏]

澳门皇家赌场在线xcode9打包失败,利用infer进行代

来源:http://www.ccidsi.com 作者:集成经验 人气:142 发布时间:2020-04-20
摘要:Infer 汉语 | APP 的静态深入分析工具 一、Jenkins安装 1.进入Jenkins的官网https://jenkins.io/index.html,然后下载并Jenkinswar包 2.cd到jenkins.war的目录,终端运维命令 java -jar jenkins.war--httpPort=8080 3.然

Infer 汉语 | APP 的静态深入分析工具

一、Jenkins安装

1.进入Jenkins的官网https://jenkins.io/index.html,然后下载并Jenkins war包

2.cd到jenkins.war的目录,终端运维命令 java -jar jenkins.war --httpPort=8080

3.然后方可服从

4然后构建的时候会报如下错误

error:exportArchive:"APPNAME.app"requires a provisioning profile with the Push Notifications feature.

Error Domain=IDEProvisioningErrorDomain Code=9""APPNAME.app" requires a provisioning profile with the Push Notifications feature."UserInfo={NSLocalizedDescription="APPNAME.app"requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the"provisioningProfiles"dictionaryinyour Export Options property list.}

** EXPORT FAILED **

Failed to build /Users/Tolecen/.jenkins/workspace/APPNAME/build/APPNAME_release.ipa

Build step'Xcode'marked build as failure

Finished: FAILURE

因为 Xcode 9 暗中认可不容许访问钥匙串的从头到尾的经过,必供给安装 allowProvisioningUpdates 才会容许,不过出于 Xcode integration 插件密封,并无法对其进展变越发上那么些天性,所以决定选用 Shell 脚本替代插件

xcodebuild -archivePath "$WORKSPACE/build/appName.xcarchive" -workspace $WORKSPACE/appName.xcworkspace -sdk iphoneos -scheme "appName" -configuration "Debug" archive

xcodebuild -exportArchive -archivePath "/Users/usename/.jenkins/workspace/mmfinance/build/Debug-iphoneos/appName.xcarchive" -exportPath "/Users/jorgon/.jenkins/workspace/appName/build/mmFinance_debug" -exportOptionsPlist '/Users/jorgon/.jenkins/workspace/mmfinance/build/ExportOptions.plist' -allowProvisioningUpdates

在乎archivePath,workspace之处要与协调项指标门道相称,能够展开jenkins的workspace目录查看/Users/username/.jenkins/workspace

下边附上自身的姣好shell

#bin/bsah - l

export LANG=en_US.UTF-8

export LANGUAGE=en_US.UTF-8

export LC_ALL=en_US.UTF-8

cd $WORKSPACE/appname

/usr/local/bin/pod update --verbose --no-repo-update

# 设置版本号

/usr/libexec/PlistBuddy -c 'Set :CFBundleVersion '${VERSION_CODE} ${WORKSPACE}/appname/info.plist

/usr/libexec/PlistBuddy -c 'Set :CFBundleShortVersionString '${VERSION_NAME} ${WORKSPACE}/appname/info.plist

# clean

echo "================= Clean一下 ================="

xcodebuild clean  -workspace  $WORKSPACE/appname.xcworkspace

-configuration "Debug"

-scheme "appname"

#-alltargets

echo "================= Clean一下 Over ================="

xcodebuild -archivePath "$WORKSPACE/build/Debug-iphoneos/appname.xcarchive" -workspace $WORKSPACE/appname.xcworkspace -sdk iphoneos -scheme "appname" -configuration "Debug" archive

xcodebuild -exportArchive -archivePath "/Users/username/.jenkins/workspace/appname/build/Debug-iphoneos/appname.xcarchive" -exportPath "/Users/jorgon/.jenkins/workspace/appname/build/mmFinance_debug" -exportOptionsPlist '/Users/jorgon/.jenkins/workspace/appname/build/ExportOptions.plist' -allowProvisioningUpdates

#小金英上的User Key

uKey="f4557f8d1d7dcaa885d3d0f865d7209"

#兔娃儿菜上的API Key

apiKey="ddddb5c605442a472ae61728d4f643"

#要上传的ipa文件路线

IPA_PATH="${WORKSPACE}/build/mmFinance_debug/appname.ipa"

#密码

PASSWORD=123456

MSG=`git log -1 --pretty=%B`

#试行上传至蒲公英的通令

echo " upload "

curl -F "file=@${IPA_PATH}" -F "uKey=${uKey}" -F "_api_key=${apiKey}" -F "updateDescription=${MSG}" -F "password=${PASSWORD}"

澳门皇家赌场在线 1

infer 安装进度中会信任一些工具(Homebrew,OPAM)

营造后发送邮件配置

构建后提示邮件发送成功然而没收到邮件

无须勾选这两项,勾选了反倒不可能发送邮件了

澳门皇家赌场在线 2

参谋链接:

jx01.png

1、HomeBrew 安装:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"2、OPAM 安装:sudo brew install opam 3、clane 安装xcode-select --install

*1安装Jenkins

地址http://jenkins-ci.org

infer github地址

*1.2下载后一直设置

澳门皇家赌场在线 3

2.png

infer 安装配备手册

*2.开发银行Jenkins后接受浏览器访谈Jenkins

地址为http://localhost:8080/

澳门皇家赌场在线 4

4.png

-=-=-=-=-=-=-=-=- github 上的 下载应该都会,不说了

澳门皇家赌场在线 5image.png

布局 infer 相关依赖库

在终端中 使用 homebrew 安装 贼鸡儿方便brew install autoconf automake cmake opam pkg-config sqlite10-20分钟 brew cask install java10-20分钟  brew install infer 

前俩安装须求翻墙。

brew install infer 假若现身就好像报错,步向read this 提示的页面中查六柱预测关消除措施

澳门皇家赌场在线 6image.png

报错:

=-=- Installing compiler 4.06.1 flambda -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[4.06.1 flambda: http][ERROR] https://github.com/ocaml/ocaml/archive/4.06.1.tar.gz is not available.*** ERROR: `opam switch set -j 4 infer-4.06.1 flambda --alias-of 4.06.1 flambda` failedREAD THIS: https://docs.brew.sh/Troubleshooting/usr/local/Homebrew/Library/Homebrew/utils/github.rb:222:in `raise_api_error': curl failed! (GitHub::Error)curl:  LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.github.com:443 curl:  <url> malformed from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:180:in `open_api' from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:294:in `search' from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:227:in `search_issues' from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:240:in `issues_for_formula' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:368:in `fetch_issues' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:364:in `issues' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:418:in `dump' from /usr/local/Homebrew/Library/Homebrew/brew.rb:137:in `rescue in <main>' from /usr/local/Homebrew/Library/Homebrew/brew.rb:29:in `<main>'

消除方案:

澳门皇家赌场在线 7image.png

到那,infer 算是安装达成了

单文件检测自个儿看表明很简短 ,这里不说了

种类检查测量试验坑有一点点多 ,遇见一群难点

开发现在是如此的分界面

本文由68399皇家赌场发布于集成经验,转载请注明出处:澳门皇家赌场在线xcode9打包失败,利用infer进行代

关键词: 68399皇家赌场 日记本 代码 项目 质量检测

上一篇:在子线程上调用不运行

下一篇:没有了

最火资讯