这是我用来构建项目的命令.
/usr/bin/xcodebuild -scheme Jenkins -workspace@H_502_6@ /Users/Shared/Jenkins/Documents/Jenkins/Jenkins2/Jenkins.xcworkspace@H_502_6@ -configuration Release clean build CONFIGURATION_BUILD_DIR=/Users/Shared/Jenkins/Documents/JenkinsTestNuu/app@H_502_6@ ‘CODE_SIGN_IDENTITY=iPhone Distribution: XXXX yay (3G5FKTZJ2K)’@H_502_6@ PRODUCT_BUNDLE_IDENTIFIER=com.XXXX.two@H_502_6@ PROVISIONING_PROFILE=6e6506e9-8233-4886-9084-ce21e8f8bbae
上面的脚本只有在Xcode可以关闭之后至少使用Xcode打开一次才能正常工作.
如果项目尚未打开,那么如果我运行脚本@H_502_6@轮子在下方旋转而没有任何进展,例如在下图中
如果它打开一次而不是下面的纺车轮将显示如下
=== CLEAN TARGET XWebView OF PROJECT Pods WITH CONFIGURATION Release ===
Check dependencies
Clean.Remove clean@H_502_6@ /Users/Shared/Jenkins/Documents/JenkinsTestNuu/app/XWebView.framework.dSYM@H_502_6@ builtin-rm -rf /Users/Shared/Jenkins/Documents/JenkinsTestNuu/app/XWebView.framework.dSYM
Clean.Remove clean@H_502_6@ /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/appanme-bqjwbjcqisegldeaonpytprisnig/Build/Intermediates/Pods.build/Release-iphoneos/XWebView.build@H_502_6@ builtin-rm -rf /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/appanme-bqjwbjcqisegldeaonpytprisnig/Build/Intermediates/Pods.build/Release-iphoneos/XWebView.build
Clean.Remove clean@H_502_6@ /Users/Shared/Jenkins/Documents/JenkinsTestNuu/app/XWebView.framework@H_502_6@ builtin-rm -rf /Users/Shared/Jenkins/Documents/JenkinsTestNuu/app/XWebView.framework
=== CLEAN TARGET Pods OF PROJECT Pods WITH CONFIGURATION Release ===
Check dependencies@H_502_6@ etc…
在任何非cocoapods项目中都没有观察到这个问题.
那么原因是什么以及如何解决?