美文网首页
/Applications/Xcode.app/Contents

/Applications/Xcode.app/Contents

作者: savizz | 来源:发表于2017-02-06 16:46 被阅读0次

参考http://www.jianshu.com/p/bd4c22952e01 使用altool上传遇到报错。

altoolPath="/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/altool"
${altoolPath} --validate-app -f ${ipaPath} -u xxxxxx -p xxxxxx -t ios --output-format xml >>
${altoolPath} --upload-app -f ${ipaPath} -u xxxxxx -p xxxxxx -t ios --output-format xml```
属于linux下的空格转义问题。

解决方案两种:
1. 写全路径

/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/altool --validate-app -f ./xxx.ipa -u xxx -p xxx -t ios --output-format xml
/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/altool --upload-app -f ./xxx.ipa -u xxx -p xxx -t ios --output-format xml```

2.不使用\转义空格,使用两次双引号。

altoolPath="/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/altool"
"${altoolPath}" --validate-app -f ${ipaFile} -u ${user} -p ${password} -t ios --output-format xml ```

相关文章

网友评论

      本文标题:/Applications/Xcode.app/Contents

      本文链接:https://www.haomeiwen.com/subject/zoruittx.html