prebid / prebid-mobile-ios

Prebid Mobile SDK for iOS applications
Apache License 2.0
47 stars 89 forks source link

Unable to build version 2.2.2 when using Carthage. #985

Closed vgorloff closed 4 months ago

vgorloff commented 4 months ago

Describe the bug Unable to build v2.2.2 when using Carthage.

To Reproduce Steps to reproduce the behavior:

  1. Create Cartfile with the following contents github "prebid/prebid-mobile-ios" == 2.2.2-carthage
  2. Fetch sources via carthage update --no-build --no-use-binaries prebid-mobile-ios
  3. Build sources via carthage build --verbose --use-xcframeworks --platform iOS --no-use-binaries prebid-mobile-ios
  4. See error

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (1 target)
    Target 'OpenXMockServer' in project 'InternalTestApp' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription

ExecuteExternalTool /Volumes/Apps/Developer/Xcode/Xcode_15_4_0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Volumes/Apps/Developer/Xcode/Xcode_15_4_0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk -x c -c /dev/null

ExecuteExternalTool /Volumes/Apps/Developer/Xcode/Xcode_15_4_0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Volumes/Apps/Developer/Xcode/Xcode_15_4_0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk -x c -c /dev/null

ExecuteExternalTool /Volumes/Apps/Developer/Xcode/Xcode_15_4_0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -v

ExecuteExternalTool /Volumes/Apps/Developer/Xcode/Xcode_15_4_0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details

Build description signature: 7de65f19af41c2709bcedcc703b6255c
Build description path: /Users/vova/Library/Caches/org.carthage.CarthageKit/DerivedData/15.4_15F31d/prebid-mobile-ios/2.2.2-carthage/Build/Intermediates.noindex/ArchiveIntermediates/OpenXMockServer/IntermediateBuildFilesPath/XCBuildData/7de65f19af41c2709bcedcc703b6255c.xcbuilddata
/Volumes/Shared/Office/Git/ios-universal/Carthage/Checkouts/prebid-mobile-ios/InternalTestApp/InternalTestApp.xcodeproj:1:1: error: Unable to open base configuration reference file '/Volumes/Shared/Office/Git/ios-universal/Carthage/Checkouts/prebid-mobile-ios/Pods/Target Support Files/Pods-OpenXMockServer/Pods-OpenXMockServer.release.xcconfig'. (in target 'OpenXMockServer' from project 'InternalTestApp')
** ARCHIVE FAILED **

Build Failed
        Task failed with exit code 65:
        /usr/bin/xcrun xcodebuild -workspace /Volumes/Shared/Office/Git/ios-app/Carthage/Checkouts/prebid-mobile-ios/PrebidMobile.xcworkspace -scheme OpenXMockServer -configuration Release -derivedDataPath /Users/vova/Library/Caches/org.carthage.CarthageKit/DerivedData/15.4_15F31d/prebid-mobile-ios/2.2.2-carthage -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive VALIDATE_WORKSPACE=NO -archivePath /var/folders/7l/skdbvw8s5jx0g9vs5_qrkync0000gt/T/prebid-mobile-ios SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Volumes/Shared/Office/Git/ios-app/Carthage/Checkouts/prebid-mobile-ios)

Expected behavior The OpenXMockServer should not be part of Carthage build.

Screenshots Not applicable.

Desktop (please complete the following information):

Smartphone (please complete the following information): Not applicable.

Additional context Issue is not reproducible when using Prebid SDK version 2.2.0-carthage

jsligh commented 4 months ago

@vgorloff apologies, this was an error on my part. I have pushed a fix, please try building it again.

vgorloff commented 4 months ago

Thank you!

Issue is resolved. I was able to build SDK v2.2.2 via Carthage.

Note: You may need to remove cached GIT repo from Carthage cache at ~/Library/Caches/org.carthage.CarthageKit/dependencies/prebid-mobile-ios