参考的是这篇博客来做的(非常感谢)
//www.greatytc.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
这个文件变红了(也就是找不到),可通过terminal pod install 来更新一下,然后再Run一下就恢复白色了。
然后在Jenkins的构建步骤里,不能再添加“pod install”的Execute shell.否则这个文件又没了,然后就报上面这个错。(修正:这句话有误,pod install 是可以添加的)