Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build version 2.2.2 when using Carthage. #985

Closed
vgorloff opened this issue May 23, 2024 · 2 comments
Closed

Unable to build version 2.2.2 when using Carthage. #985

vgorloff opened this issue May 23, 2024 · 2 comments
Assignees

Comments

@vgorloff
Copy link

vgorloff commented May 23, 2024

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):

  • Xcode: 15.4.0
  • macOS: 14.5 (23F79)
  • Prebid SDK Version: 2.2.2

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

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

@jsligh
Copy link
Collaborator

jsligh commented May 23, 2024

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

@jsligh jsligh self-assigned this May 23, 2024
@vgorloff vgorloff changed the title Unable to build version 2.2.0 when using Carthage. Unable to build version 2.2.2 when using Carthage. May 23, 2024
@vgorloff
Copy link
Author

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

@jsligh jsligh closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants