Jenkins XCode iOS build failure due to missing module maps - xcode

I have a project with integrated Facebook SDK and I'm trying to build the project using my Jenkins xCode Integration, since I'm using CocoaPods I have to build the project using xcworkspace instead of xcproj file.
If I open the workspace manually, archive and export ipa, everything works great.
If I try to run the exact same process through Jenkins I'm getting an error on one of my pods stating that FBSDKcoreKite module.map can't be found, and that the Swiftshims module is missing.
(as far as I know the swiftshims is part of the xCode and should only show missing if the path to it is somehow corrupt in the caching of xCode.
I've tried cleaning my build, my build folder, removing derived data, erasing the xcodemodule folder, reinstalling pods, setup pods, and basically anything I could find online).
Any ideas as to what I can do to fix this?
(using xCode12).
Attaching exact build snippet:
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
** BUILD FAILED **
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

You said you deleted derived data and pod update so i passed these stages so :
try
Delete your pod file and create a new one and be sure that
pod 'FBSDKShareKit'
go to command line as usual and install your pods again
pod install
If it is not work
try this one
go to Build Settings and search Framework Search Paths
Replace the ~/Documents/FacebookSDK to $(HOME)/Documents/FacebookSDK (with parentheses)
If it is not work also.
Be sure that
FBSDKShareKit in your Copy Bundle Resources other Facebook kits as well.

So after several days I finally figured what was the issue in my case,
The Jenkins deployment has a special "build path" configuration, the new XCode I installed was using a different build path for it's build path (a folder with a hash name xxxxxxxxxxxxxxx-build) - since FBSDKShareKit uses FBSDKCoreKit import for the compilation of Swift components, it looks at the Jenkin's build path for the FBSDKCoreKit instead of the temp build folder the xCode creates for it.
So in order to fix the process all I did was remove the Build path configuration from the Jenkins xCode Integration plugin and now everything works perfectly.
Hope this helps someone in the future!

Related

building Detox failed during yarn install

when i do yarn install i am getting this error:
[12/31] ⠈ detox
error /Users/mluu/Developer/mobile2/node_modules/detox: Command failed.
Exit code: 1
Command: node scripts/postinstall.js
Arguments:
Directory: /Users/mluu/Developer/mobile2/node_modules/detox
Output:
/Users/mluu/Library/Detox/ios/10dbe0f0b761264d99edb06a7f9b999416aad111 was found, but could not find Detox.framework inside it. This means that the Detox framework build process was interrupted.
deleting /Users/mluu/Library/Detox/ios/10dbe0f0b761264d99edb06a7f9b999416aad111 and trying to rebuild.
Extracting Detox sources...
Building Detox.framework from /Users/mluu/Developer/mobile2/node_modules/detox/ios_src...
child_process.js:637
throw err;
^
Error: Command failed: /Users/mluu/Developer/mobile2/node_modules/detox/scripts/build_framework.ios.sh
at checkExecSyncError (child_process.js:616:11)
at Object.execFileSync (child_process.js:634:13)
at Object.<anonymous> (/Users/mluu/Developer/mobile2/node_modules/detox/scripts/postinstall.js:2:27)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
why is my detox failing to build? i tried deleting my detox folder like it suggested but it still fail to build.
went into /Users/mluu/Library/Detox/ios/10dbe0f0b761264d99edb06a7f9b999416aad111/detox_ios.log and found this:
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
cd /Users/mluu/Developer/mobile2/node_modules/detox/ios_src
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:/Users/mluu/.rvm/gems/ruby-2.6.3/bin:/Users/mluu/.rvm/gems/ruby-2.6.3#global/bin:/Users/mluu/.rvm/rubies/ruby-2.6.3/bin:/Users/mluu/.rvm/bin:/Users/mluu/.nvm/versions/node/v10.15.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/mluu/Library/Android/sdk/tools:/Users/mluu/Library/Android/sdk/tools/bin:/Users/mluu/Library/Android/sdk/platform-tools:/Users/mluu/Library/Android/sdk/emulator"
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk
export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name Detox -O -whole-module-optimization -enforce-exclusivity=checked #/Users/mluu/Library/Developer/Xcode/DerivedData/swoop-bjgdbvjbcvywzdbnzaexyenmqpew/Build/Intermediates.noindex/React.build/BetaDebug-iphoneos/React.build/Objects-normal/arm64/React.SwiftFileList -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -target arm64-apple-ios11.3 -g -module-cache-path /Users/mluu/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -swift-version 4.2 -I /Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Products/Release-iphoneos -I /Users/mluu/Developer/mobile2/node_modules/detox/ios_src/Detox -F /Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Products/Release-iphoneos -c -num-threads 16 /Users/mluu/Developer/mobile2/node_modules/detox/ios_src/Detox/DetoxUserActivityDispatcher.swift /Users/mluu/Developer/mobile2/node_modules/detox/ios_src/Detox/DetoxUserNotificationDispatcher.swift -output-file-map /Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/Release-iphoneos/Detox.build/Objects-normal/arm64/Detox-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/Release-iphoneos/Detox.build/Objects-normal/arm64/Detox.swiftmodule -Xcc -I/Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/Release-iphoneos/Detox.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/Release-iphoneos/Detox.build/Detox-generated-files.hmap -Xcc -I/Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/Release-iphoneos/Detox.build/Detox-own-target-headers.hmap -Xcc -I/Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/Release-iphoneos/Detox.build/Detox-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/Release-iphoneos/Detox.build/Detox-project-headers.hmap -Xcc -I/Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Products/Release-iphoneos/include -Xcc -IEarlGrey/fishhook -Xcc -I/Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/Release-iphoneos/Detox.build/DerivedSources-normal/arm64 -Xcc -I/Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/Release-iphoneos/Detox.build/DerivedSources/arm64 -Xcc -I/Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/Release-iphoneos/Detox.build/DerivedSources -emit-objc-header -emit-objc-header-path /Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/Release-iphoneos/Detox.build/Objects-normal/arm64/Detox-Swift.h -import-underlying-module -Xcc -ivfsoverlay -Xcc /Users/mluu/Library/Developer/Xcode/DerivedData/Detox-bpzzkihbqsknjafrnjvkjdiarlnq/Build/Intermediates.noindex/Detox.build/Release-iphoneos/Detox.build/unextended-module-overlay.yaml -working-directory /Users/mluu/Developer/mobile2/node_modules/detox/ios_src
<unknown>:0: error: no such file or directory: '/Users/mluu/Developer/mobile2/node_modules/detox/ios_src/#/Users/mluu/Library/Developer/Xcode/DerivedData/swoop-bjgdbvjbcvywzdbnzaexyenmqpew/Build/Intermediates.noindex/React.build/BetaDebug-iphoneos/React.build/Objects-normal/arm64/React.SwiftFileList'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
** BUILD FAILED **
The following build commands failed:
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(1 failure)
why is it looking for arm64/React.SwiftFileList? how do i generate this? i tried going into xcode and running my app in on an actual iphone 7 to get it to generate the arm64 version but nothing is generated when i looked back into that folder. something else must be wrong?
Method one: to make npm i successful, just disable detox if you don't need detox for a moment of npm,
To disable detox run this on project terminal export DETOX_DISABLE_POSTINSTALL=1 and rerun npm i.
Method two: degrade your x-code version to 12.4. It also works for me

Handling header dependencies with cmake

Let's say I have main.cpp, a.h and b.h in the same folder. main.cpp includes a.h, and a.h includes b.h.
Checking the generated depends.make file, main.cpp.o depends both on a.h and b.h, as expected.
If b.h is moved to a folder B, and used the -iquote B flag, main.cpp.o does not depend any more on b.h.
I can put back the dependency by adding include_directories(${CMAKE_SOURCE_DIR}/B) to the CMakeLists.txt file. This however has a side effect: when compiling main.cpp, cmake uses the flag -I/pathTo/B. I prefer using -iquote instead of -I.
Is there a way in this second case to let cmake to detect the dependencies automatically without introducing the -I compiler flag?
You might find this SO answer helpful: https://stackoverflow.com/a/9899919/5820799
It boils down to not use include_directories(${CMAKE_SOURCE_DIR}/B), but to manually add the -iquote directive instead:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -iquote ${CMAKE_SOURCE_DIR}/B")
This will generate -iquote <path> instead of -I <path>.
It is not pretty, but does the job. :-)

Xcode 8 swift pod headers empty after pod install

I am trying to compile an existing xcode project written in swift. The project uses Alamofire. I installed xcode 8 beta and opened the project. There were many errors with Alamofire which I learned need to be updated to version 3.2.1.
I edited my Podfile and fixed the version number then ran pod update alamofire. Instead of only updating Alomfire, every pod was updated. This is apparently a bug.
The Podfile contains the directive use_frameworks! After updating the pods, the pods/headers directory was completely empty, without either Public or Private directories and the project failed to build with 356 missing file errors.
Changing the build search settings for ALWAYS_SEARCH_USER_PATHS to no (or yes) in accordance with a recommendation here https://github.com/CocoaPods/CocoaPods/issues/4605#issuecomment-208822149 then deleting the pods and running pod install again did nothing.
There are a number of different questions on stackoverflow asking the same question with no answers. Here is a list of the ones I can find.
Pods/Headers empty after pod install
Empty Pod Headers Folder after `pod install`
After pod install Public folder is empty
From Pods-Myproject.debug.xconfig
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES
FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AFNetworking" "$PODS_CONFIGURATION_BUILD_DIR/Alamofire" "$PODS_CONFIGURATION_BUILD_DIR/Bolts-iOS8.0" "$PODS_CONFIGURATION_BUILD_DIR/CocoaLumberjack" "$PODS_CONFIGURATION_BUILD_DIR/DBAlertController-iOS8.0" "$PODS_CONFIGURATION_BUILD_DIR/FBSDKCoreKit-iOS8.0" "$PODS_CONFIGURATION_BUILD_DIR/FBSDKLoginKit-iOS8.0" "$PODS_CONFIGURATION_BUILD_DIR/ISO8601DateFormatterValueTransformer" "$PODS_CONFIGURATION_BUILD_DIR/MBProgressHUD" "$PODS_CONFIGURATION_BUILD_DIR/RESideMenu-iOS8.0" "$PODS_CONFIGURATION_BUILD_DIR/RKValueTransformers" "$PODS_CONFIGURATION_BUILD_DIR/RestKit" "$PODS_CONFIGURATION_BUILD_DIR/SOCKit" "$PODS_CONFIGURATION_BUILD_DIR/TransitionKit" "$PODS_CONFIGURATION_BUILD_DIR/iCarousel-iOS8.0" "${PODS_ROOT}/Crashlytics/iOS" "${PODS_ROOT}/Fabric/iOS"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Crashlytics" "${PODS_ROOT}/Headers/Public/Fabric"
LD_RUNPATH_SEARCH_PATHS = $(inherited) '#executable_path/Frameworks' '#loader_path/Frameworks'
OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/AFNetworking/AFNetworking.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/Alamofire/Alamofire.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/Bolts-iOS8.0/Bolts.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/CocoaLumberjack/CocoaLumberjack.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/DBAlertController-iOS8.0/DBAlertController.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/FBSDKCoreKit-iOS8.0/FBSDKCoreKit.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/FBSDKLoginKit-iOS8.0/FBSDKLoginKit.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/ISO8601DateFormatterValueTransformer/ISO8601DateFormatterValueTransformer.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/MBProgressHUD/MBProgressHUD.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/RESideMenu-iOS8.0/RESideMenu.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/RKValueTransformers/RKValueTransformers.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/RestKit/RestKit.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/SOCKit/SOCKit.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/TransitionKit/TransitionKit.framework/Headers" -iquote "$PODS_CONFIGURATION_BUILD_DIR/iCarousel-iOS8.0/iCarousel.framework/Headers" -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Crashlytics" -isystem "${PODS_ROOT}/Headers/Public/Fabric"
OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -l"z" -framework "AFNetworking" -framework "Alamofire" -framework "Bolts" -framework "CocoaLumberjack" -framework "Crashlytics" -framework "DBAlertController" -framework "FBSDKCoreKit" -framework "FBSDKLoginKit" -framework "Fabric" -framework "ISO8601DateFormatterValueTransformer" -framework "MBProgressHUD" -framework "RESideMenu" -framework "RKValueTransformers" -framework "RestKit" -framework "SOCKit" -framework "Security" -framework "SystemConfiguration" -framework "TransitionKit" -framework "UIKit" -framework "iCarousel"
OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
PODS_BUILD_DIR = $BUILD_DIR
PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_ROOT = ${SRCROOT}/Pods
I really need to find a solution to this problem so I would be grateful if anybody can answer this question.
git add -A followed by Product -> Clean removed all errors except Alamofire.
When you want to update a particular POD, you run pod update PODNAME as given in the Docs. I suggest you delete all the pods and run pod install with the latest version of Alamofire.

Xcode 4.2 cannot build anything

I've recently installed Xcode 4.2 on my macbookpro 10.7.2 . I have my drived partitioned by BootCamp. When I installed XCode 4.2, I ran XCode and I try to see if it can simply build stuff so I picked a Command Line Tool. When the wizard is done generating the files, I simply ran it and it already gave me an error. I tried other templates and it generated the same error. Whats the solution for this problem?
Anyway, this is the error:
Clang LLVM 1.0 Error
Command /Developer/usr/bin/clang failed with exit code 11
ProcessPCH /Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/PrecompiledHeaders/SecondApp-Prefix-grjbjgpsgeilsbghzjmhjjxmgsqx/SecondApp-Prefix.pch.pth SecondApp/SecondApp-Prefix.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/revin122/Downloads/Ex_Files_ObjC_EssT/exercise_files/ch03/SecondApp
setenv LANG en_US.US-ASCII
/Developer/usr/bin/clang -x objective-c-header -arch x86_64 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wshorten-64-to-32 -DDEBUG -isysroot /Developer/SDKs/MacOSX10.7.sdk -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2 -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -iquote /Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Intermediates/SecondApp.build/Debug/SecondApp.build/SecondApp-generated-files.hmap -I/Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Intermediates/SecondApp.build/Debug/SecondApp.build/SecondApp-own-target-headers.hmap -I/Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Intermediates/SecondApp.build/Debug/SecondApp.build/SecondApp-all-target-headers.hmap -iquote /Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Intermediates/SecondApp.build/Debug/SecondApp.build/SecondApp-project-headers.hmap -I/Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Products/Debug/include -I/Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Intermediates/SecondApp.build/Debug/SecondApp.build/DerivedSources/x86_64 -I/Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Intermediates/SecondApp.build/Debug/SecondApp.build/DerivedSources -F/Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Products/Debug -c /Users/revin122/Downloads/Ex_Files_ObjC_EssT/exercise_files/ch03/SecondApp/SecondApp/SecondApp-Prefix.pch -o /Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/PrecompiledHeaders/SecondApp-Prefix-grjbjgpsgeilsbghzjmhjjxmgsqx/SecondApp-Prefix.pch.pth -MMD -MT dependencies -MF /Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/PrecompiledHeaders/SecondApp-Prefix-grjbjgpsgeilsbghzjmhjjxmgsqx/SecondApp-Prefix.pch.d
Command /Developer/usr/bin/clang failed with exit code 11
To try and narrow down the problem here, one thing to try would be to change the compiler from "Apple LLVM Complier 3.0" to "LLVM GCC 4.2" and see if you get different results. That might start to narrow down what is going on.
The other thing worth trying is just to re-install Xcode 4.2. A few people—myself included—found the initial install was bad but reinstalling over the top fixed the problem.

Clang scan-build won't work with Xcode 4.2 LLVM 3.0 build configuration

I've installed Xcode 4.2 final version to be able to compile for iOS 5.
We are using Jenkins for CI and run Clang scan-build from the llvm.org project page. (Version 258) The project is configured to use LLVM 3.0 (which is default since Xcode 4.2). Now every time I try to run scan-build do I get following error:
CompileC build/Cortado.build/Debug-iphonesimulator/Cortado.build/Objects-normal/i386/TPContentDetailViewController_iPad.o Classes/iPad/TPContentDetailViewController_iPad.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Volumes/Sources/Starteam - Main View/Workplace/Cortado"
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/Applications/android-sdk-mac_x86/android-ndk-r6b:/Applications/android-sdk-mac_x86/platform-tools:/Applications/android-sdk-mac_x86/tools:/Volumes/Sources/Starteam - Main View/Tools:/Volumes/Sources/Tools:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
/Users/thwee/Downloads/checker-258/libexec/ccc-analyzer -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -DDEBUG -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -fexceptions -fasm-blocks -fprofile-arcs -ftest-coverage -mmacosx-version-min=10.6 -gdwarf-2 -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -D__IPHONE_OS_VERSION_MIN_REQUIRED=40100 -iquote "/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/Cortado-generated-files.hmap" "-I/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/Cortado-own-target-headers.hmap" "-I/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/Cortado-all-target-headers.hmap" -iquote "/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/Cortado-project-headers.hmap" "-I/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Debug-iphonesimulator/include" "-I/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/DerivedSources/i386" "-I/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/DerivedSources" "-F/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Debug-iphonesimulator" -include "/Volumes/Sources/Starteam - Main View/Workplace/Cortado/Cortado_Prefix.pch" -MMD -MT dependencies -MF "/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/Objects-normal/i386/TPContentDetailViewController_iPad.d" -c "/Volumes/Sources/Starteam - Main View/Workplace/Cortado/Classes/iPad/TPContentDetailViewController_iPad.m" -o "/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/Objects-normal/i386/TPContentDetailViewController_iPad.o"
cc1obj: error: unrecognized command line option "-Wno-sign-conversion"
cc1obj: error: unrecognized command line option "-fdiagnostics-print-source-range-info"
cc1obj: error: unrecognized command line option "-fdiagnostics-show-category=id"
cc1obj: error: unrecognized command line option "-fdiagnostics-parseable-fixits"
If I use the static code analyze of Xcode self I get following output which works without issues:
CompileC build/Cortado.build/Debug-iphonesimulator/Cortado.build/Objects-normal/i386/TPInfoCell.o Classes/TPInfoCell.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Volumes/Sources/Starteam - Main View/Workplace/Cortado"
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -DDEBUG -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -fexceptions -fasm-blocks -fprofile-arcs -ftest-coverage -mmacosx-version-min=10.6 -gdwarf-2 -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -D__IPHONE_OS_VERSION_MIN_REQUIRED=40100 -iquote "/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/Cortado-generated-files.hmap" "-I/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/Cortado-own-target-headers.hmap" "-I/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/Cortado-all-target-headers.hmap" -iquote "/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/Cortado-project-headers.hmap" "-I/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Debug-iphonesimulator/include" "-I/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/DerivedSources/i386" "-I/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/DerivedSources" "-F/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Debug-iphonesimulator" -include /var/folders/m7/1lwxj7113xb17b8k635bn0200000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Cortado_Prefix-curmpedgpezkvsgarfuwvmdrauwa/Cortado_Prefix.pch -MMD -MT dependencies -MF "/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/Objects-normal/i386/TPInfoCell.d" -c "/Volumes/Sources/Starteam - Main View/Workplace/Cortado/Classes/TPInfoCell.m" -o "/Volumes/Sources/Starteam - Main View/Workplace/Cortado/build/Cortado.build/Debug-iphonesimulator/Cortado.build/Objects-normal/i386/TPInfoCell.o"
Has someone an idea what I can do to get scan-build running again without disabling LLVM 3.0 use?!
Found a solution to have checker-258 build :
Pass this param to scan-build : --use-cc=`which clang`
Then to make it builds by jenkins and the scan-build plugin... it's a little trickier :
Move scan-build to scan-build.bin, and then make scan-build be a script :
#!/bin/sh
dir=$(dirname $0)
$dir/scan-build.bin --use-cc=`which clang` $#
The result of which clang is : /usr/bin/clang
Edit: worked for two projects, one with LLVM 3.0, the other with llvm-gcc4.2.
I raised a bug with Apple about this and other issues (like scan-build not recognising ARC'd code).
The fix is to install checker-260, see http://clang-analyzer.llvm.org/release_notes.html plus this modification to ccc-analyzer - http://llvm.org/viewvc/llvm-project?view=rev&revision=149094. Hopefully the fix to ccc-analyzer will be incorporated into a future release of scan-build.
Using this latest version of scan-build will avoid you having to make the modifications to scan-build described in the previous answer.
It looks like scan-build is deciding to use llvm-gcc, which is confusing Xcode because it is expecting to be running clang. Probably just a bug in scan-build; I'd suggest sending an email to cfe-dev.

Resources