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

Can't compile Differ with Carthage to generate a StaticFramework. #37

Closed
pablonosh opened this issue Jun 20, 2018 · 6 comments
Closed
Labels

Comments

@pablonosh
Copy link
Collaborator

pablonosh commented Jun 20, 2018

Following the steps identified here:
https://github.com/Carthage/Carthage/blob/master/Documentation/StaticFrameworks.md

I can't compile Differ to generate a StaticFramework.

`*** Building scheme "Differ" in Differ.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/peter/Carthage/Checkouts/Differ/Differ.xcodeproj -scheme Differ -configuration Release -derivedDataPath /Users/peter/Library/Caches/org.carthage.CarthageKit/DerivedData/9.4_9F1027a/Differ/1.2.3 -sdk watchos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/2x/_53hdv7j2ts7yrqbhbjbghgw0000gn/T/Differ SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/peter/Carthage/Checkouts/Differ)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/2x/_53hdv7j2ts7yrqbhbjbghgw0000gn/T/carthage-xcodebuild.wzz23x.log`

carthage-xcodebuild.wzz23x.log

@tonyarnold
Copy link
Owner

Hi, can I get a copy of the build script you used?

@tonyarnold tonyarnold added the Bug label Jun 20, 2018
@pablonosh
Copy link
Collaborator Author

#!/bin/sh -e

xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT

echo "LD = $PWD/bin/ld.py" >> $xcconfig
echo "DEBUG_INFORMATION_FORMAT = dwarf" >> $xcconfig

export XCODE_XCCONFIG_FILE="$xcconfig"

carthage build "$@"

@pablonosh
Copy link
Collaborator Author

it looks confusing but it's recommended by carthage on
https://github.com/Carthage/Carthage/blob/master/Documentation/StaticFrameworks.md

then running:

./carthage-build-static.sh Differ

@pablonosh
Copy link
Collaborator Author

Hi

I have a fix for this, I just rebuilt the xcode project again, it was quite an old project file and I guess didn't support the latest build settings etc.

I have a branch I'd like to push for a review - can I get permission to push a branch? Alternatively I could send the new project file to you in some way.

Ta

Peter

@tonyarnold
Copy link
Owner

I've added you as a collaborator - feel free to create a branch and open a PR. Alternately, you can fork the repo and do the same - your call!

@tonyarnold
Copy link
Owner

Please see my comments on #38 about this: #38 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants