Jenkins+GitLab+蒲公英踩坑记

参考的是这篇博客来做的(非常感谢)
http://www.jianshu.com/p/c69deb29720d/comments/2049649#comment-2049649

我的基础功不扎实,所以还是踩了不少坑….

所有东西都弄好了后,去到构建那一步,老是失败

ld: framework not found Pods_Test
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld /Users/hongxi/Library/Developer/Xcode/DerivedData/Test-brdyfbmzhdrnlodkhjdqibqivgzs/Build/Intermediates/Test.build/adhoc-iphoneos/Test.build/Objects-normal/arm64/Test normal arm64
Ld /Users/hongxi/Library/Developer/Xcode/DerivedData/Test-brdyfbmzhdrnlodkhjdqibqivgzs/Build/Intermediates/Test.build/adhoc-iphoneos/Test.build/Objects-normal/armv7/Test normal armv7
(2 failures)
Build step ‘Xcode’ marked build as failure
Finished: FAILURE

后来静下心来认真看了一下日志,觉得问题就在这里framework not found Pods_Test

《Jenkins+GitLab+蒲公英踩坑记》 616A89A2-A21C-4EF9-860D-4874E51B5366.png

这个文件变红了(也就是找不到),可通过terminal pod install 来更新一下,然后再Run一下就恢复白色了。

然后在Jenkins的构建步骤里,不能再添加“pod install”的Execute shell.否则这个文件又没了,然后就报上面这个错。(修正:这句话有误,pod install 是可以添加的)

    原文作者:陈鸿禧
    原文地址: https://www.jianshu.com/p/58f1e5ccdcd3
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞