由于缺少模块映射,Jenkins XCode iOS 构建失败
Jenkins XCode iOS build failure due to missing module maps
我有一个集成了 Facebook SDK 的项目,我正在尝试使用我的 Jenkins xCode 集成来构建该项目,因为我使用的是 CocoaPods,所以我必须使用 xcworkspace 而不是 xcproj 文件来构建该项目.
如果我手动打开工作区、存档和导出 ipa,一切都很好。
如果我尝试通过 Jenkins 运行 完全相同的过程,我会在我的 pods 之一上收到错误,指出找不到 FBSDKcoreKite module.map,并且 Swiftshims 模块是丢失的。
(据我所知,swiftshims 是 xCode 的一部分,并且只有在它的路径在 xCode 的缓存中以某种方式损坏时才应该显示丢失。
我已经尝试清理我的构建、我的构建文件夹、删除派生数据、擦除 xcodemodule 文件夹、重新安装 pods、设置 pods,以及基本上我可以在网上找到的所有内容。
有什么办法可以解决这个问题吗?
(使用 xCode12)。
附上确切的构建片段:
CompileSwift normal arm64 /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Swift/Enums+Extensions.swift
cd /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -emit-bc /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Swift/Enums+Extensions.swift -emit-module-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/FBSDKShareKit.swiftmodule -emit-module-doc-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/FBSDKShareKit.swiftdoc -emit-module-source-info-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/FBSDKShareKit.swiftsourceinfo -serialize-diagnostics-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/Enums+Extensions.dia -emit-objc-header-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/FBSDKShareKit-Swift.h -emit-dependencies-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/Enums+Extensions.d -target arm64-apple-ios9.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk -I /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build -I /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit -F /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build -g -import-underlying-module -module-cache-path /Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -O -D COCOAPODS -serialize-debugging-options -Xcc -working-directory -Xcc /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods -Xcc -fmodule-map-file=/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit/FBSDKCoreKit.modulemap -Xcc -fmodule-map-file=/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit.modulemap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-generated-files.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-own-target-headers.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-project-headers.hmap -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build/include -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Private -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Private/FBSDKShareKit -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public/FBSDKShareKit -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources/arm64 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources -Xcc -DPOD_CONFIGURATION_RELEASE=1 -Xcc -DCOCOAPODS=1 -target-sdk-version 14.1 -parse-as-library -module-name FBSDKShareKit -num-threads 4 -o /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/Enums+Extensions.bc
:0: error: module map file '/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit/FBSDKCoreKit.modulemap' not found
:0: error: module map file '/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit/FBSDKCoreKit.modulemap' not found
:0: error: missing required module 'SwiftShims'
CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler
cd /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk
>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name FBSDKShareKit -O -whole-module-optimization -enforce-exclusivity=checked -D COCOAPODS -Xcc -fmodule-map-file=/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit/FBSDKCoreKit.modulemap -import-underlying-module -Xcc -fmodule-map-file=/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit.modulemap -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk -target armv7-apple-ios9.0 -g -module-cache-path /Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -embed-bitcode -swift-version 5 -I /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build -I /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit -F /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build -parse-as-library -c -num-threads 4 /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Swift/Enums+Extensions.swift -output-file-map /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit.swiftmodule -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-generated-files.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-own-target-headers.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-project-headers.hmap -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build/include -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Private -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Private/FBSDKShareKit -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public/FBSDKShareKit -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources-normal/armv7 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources/armv7 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources -Xcc -DPOD_CONFIGURATION_RELEASE=1 -Xcc -DCOCOAPODS=1 -emit-objc-header -emit-objc-header-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit-Swift.h -working-directory /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods
CompileSwift normal armv7 /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Swift/Enums+Extensions.swift
cd /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -emit-bc /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Swift/Enums+Extensions.swift -emit-module-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit.swiftmodule -emit-module-doc-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit.swiftdoc -emit-module-source-info-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit.swiftsourceinfo -serialize-diagnostics-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/Enums+Extensions.dia -emit-objc-header-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit-Swift.h -emit-dependencies-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/Enums+Extensions.d -target armv7-apple-ios9.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk -I /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build -I /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit -F /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build -g -import-underlying-module -module-cache-path /Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -O -D COCOAPODS -serialize-debugging-options -Xcc -working-directory -Xcc /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods -Xcc -fmodule-map-file=/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit/FBSDKCoreKit.modulemap -Xcc -fmodule-map-file=/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit.modulemap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-generated-files.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-own-target-headers.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-project-headers.hmap -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build/include -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Private -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Private/FBSDKShareKit -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public/FBSDKShareKit -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources-normal/armv7 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources/armv7 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources -Xcc -DPOD_CONFIGURATION_RELEASE=1 -Xcc -DCOCOAPODS=1 -target-sdk-version 14.1 -parse-as-library -module-name FBSDKShareKit -num-threads 4 -o /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/Enums+Extensions.bc
** 构建失败 **
The following build commands failed:
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
CompileSwift normal arm64
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
CompileSwift normal arm64 /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Swift/Enums+Extensions.swift
(4 failures)
Build step 'Xcode' marked build as failure
你说你删除了派生数据和 pod 更新,所以我通过了这些阶段:
尝试
删除您的 pod 文件并创建一个新文件,并确保
pod 'FBSDKShareKit'
像往常一样转到命令行并再次安装您的 pods
pod install
如果不行
试试这个
转到构建设置并搜索框架搜索路径
Replace the ~/Documents/FacebookSDK to $(HOME)/Documents/FacebookSDK (with parentheses)
如果不行也行。
确保
FBSDKShareKit
在您的 复制捆绑资源 其他 Facebook 工具包中。
所以几天后我终于弄清楚我的问题是什么,
Jenkins 部署有一个特殊的“构建路径”配置,我安装的新 XCode 使用不同的构建路径作为构建路径(一个具有哈希名称 xxxxxxxxxxxxxxx-build 的文件夹)——因为 FBSDKShareKit 使用 FBSDKCoreKit 导入对于 Swift 组件的编译,它查看 FBSDKCoreKit 的 Jenkin 构建路径 而不是 xCode 为其创建的临时构建文件夹。
因此,为了修复该过程,我所做的就是从 Jenkins xCode 集成插件中删除构建路径配置,现在一切正常。
希望这对以后的人有所帮助!
我有一个集成了 Facebook SDK 的项目,我正在尝试使用我的 Jenkins xCode 集成来构建该项目,因为我使用的是 CocoaPods,所以我必须使用 xcworkspace 而不是 xcproj 文件来构建该项目. 如果我手动打开工作区、存档和导出 ipa,一切都很好。 如果我尝试通过 Jenkins 运行 完全相同的过程,我会在我的 pods 之一上收到错误,指出找不到 FBSDKcoreKite module.map,并且 Swiftshims 模块是丢失的。 (据我所知,swiftshims 是 xCode 的一部分,并且只有在它的路径在 xCode 的缓存中以某种方式损坏时才应该显示丢失。 我已经尝试清理我的构建、我的构建文件夹、删除派生数据、擦除 xcodemodule 文件夹、重新安装 pods、设置 pods,以及基本上我可以在网上找到的所有内容。
有什么办法可以解决这个问题吗? (使用 xCode12)。 附上确切的构建片段:
CompileSwift normal arm64 /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Swift/Enums+Extensions.swift cd /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -emit-bc /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Swift/Enums+Extensions.swift -emit-module-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/FBSDKShareKit.swiftmodule -emit-module-doc-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/FBSDKShareKit.swiftdoc -emit-module-source-info-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/FBSDKShareKit.swiftsourceinfo -serialize-diagnostics-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/Enums+Extensions.dia -emit-objc-header-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/FBSDKShareKit-Swift.h -emit-dependencies-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/Enums+Extensions.d -target arm64-apple-ios9.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk -I /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build -I /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit -F /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build -g -import-underlying-module -module-cache-path /Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -O -D COCOAPODS -serialize-debugging-options -Xcc -working-directory -Xcc /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods -Xcc -fmodule-map-file=/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit/FBSDKCoreKit.modulemap -Xcc -fmodule-map-file=/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit.modulemap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-generated-files.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-own-target-headers.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-project-headers.hmap -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build/include -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Private -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Private/FBSDKShareKit -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public/FBSDKShareKit -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources/arm64 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources -Xcc -DPOD_CONFIGURATION_RELEASE=1 -Xcc -DCOCOAPODS=1 -target-sdk-version 14.1 -parse-as-library -module-name FBSDKShareKit -num-threads 4 -o /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/arm64/Enums+Extensions.bc :0: error: module map file '/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit/FBSDKCoreKit.modulemap' not found :0: error: module map file '/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit/FBSDKCoreKit.modulemap' not found :0: error: missing required module 'SwiftShims'
CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler cd /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk >/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name FBSDKShareKit -O -whole-module-optimization -enforce-exclusivity=checked -D COCOAPODS -Xcc -fmodule-map-file=/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit/FBSDKCoreKit.modulemap -import-underlying-module -Xcc -fmodule-map-file=/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit.modulemap -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk -target armv7-apple-ios9.0 -g -module-cache-path /Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -embed-bitcode -swift-version 5 -I /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build -I /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit -F /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build -parse-as-library -c -num-threads 4 /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Swift/Enums+Extensions.swift -output-file-map /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit.swiftmodule -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-generated-files.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-own-target-headers.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-project-headers.hmap -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build/include -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Private -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Private/FBSDKShareKit -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public/FBSDKShareKit -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources-normal/armv7 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources/armv7 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources -Xcc -DPOD_CONFIGURATION_RELEASE=1 -Xcc -DCOCOAPODS=1 -emit-objc-header -emit-objc-header-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit-Swift.h -working-directory /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods
CompileSwift normal armv7 /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Swift/Enums+Extensions.swift cd /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -emit-bc /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Swift/Enums+Extensions.swift -emit-module-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit.swiftmodule -emit-module-doc-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit.swiftdoc -emit-module-source-info-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit.swiftsourceinfo -serialize-diagnostics-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/Enums+Extensions.dia -emit-objc-header-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/FBSDKShareKit-Swift.h -emit-dependencies-path /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/Enums+Extensions.d -target armv7-apple-ios9.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk -I /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build -I /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit -F /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build -g -import-underlying-module -module-cache-path /Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -O -D COCOAPODS -serialize-debugging-options -Xcc -working-directory -Xcc /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods -Xcc -fmodule-map-file=/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Products/Release-iphoneos/FBSDKCoreKit/FBSDKCoreKit.modulemap -Xcc -fmodule-map-file=/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit.modulemap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-generated-files.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-own-target-headers.hmap -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/FBSDKShareKit-project-headers.hmap -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/build/include -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Private -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Private/FBSDKShareKit -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public -Xcc -I/Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/Headers/Public/FBSDKShareKit -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources-normal/armv7 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources/armv7 -Xcc -I/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/DerivedSources -Xcc -DPOD_CONFIGURATION_RELEASE=1 -Xcc -DCOCOAPODS=1 -target-sdk-version 14.1 -parse-as-library -module-name FBSDKShareKit -num-threads 4 -o /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-cahmainqljispgcpsolojgyjxcxs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FBSDKShareKit.build/Objects-normal/armv7/Enums+Extensions.bc
** 构建失败 **
The following build commands failed: CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler CompileSwift normal arm64 CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler CompileSwift normal arm64 /Users/Shared/Jenkins/Home/workspace/SlotsNetwork-iOS/trunk/slots-network/iOSBuild-bonanzaparty/Pods/FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/Swift/Enums+Extensions.swift (4 failures) Build step 'Xcode' marked build as failure
你说你删除了派生数据和 pod 更新,所以我通过了这些阶段:
尝试 删除您的 pod 文件并创建一个新文件,并确保
pod 'FBSDKShareKit'
像往常一样转到命令行并再次安装您的 pods
pod install
如果不行 试试这个
转到构建设置并搜索框架搜索路径
Replace the ~/Documents/FacebookSDK to $(HOME)/Documents/FacebookSDK (with parentheses)
如果不行也行。 确保
FBSDKShareKit
在您的 复制捆绑资源 其他 Facebook 工具包中。
所以几天后我终于弄清楚我的问题是什么, Jenkins 部署有一个特殊的“构建路径”配置,我安装的新 XCode 使用不同的构建路径作为构建路径(一个具有哈希名称 xxxxxxxxxxxxxxx-build 的文件夹)——因为 FBSDKShareKit 使用 FBSDKCoreKit 导入对于 Swift 组件的编译,它查看 FBSDKCoreKit 的 Jenkin 构建路径 而不是 xCode 为其创建的临时构建文件夹。 因此,为了修复该过程,我所做的就是从 Jenkins xCode 集成插件中删除构建路径配置,现在一切正常。
希望这对以后的人有所帮助!