Repository navigation
Closed
Description
I last pulled and built the project in early April, and it all went fine. This morning I was trying to see if updating my build would fix #86 for me, but I ran into multiple issues while following the instructions at https://github.com/gitx/gitx/wiki/Build-instructions. I just pulled from master and my HEAD is at 241e39c:
$ git pull gitx master
From https://github.com/gitx/gitx
* branch master -> FETCH_HEAD
Already up-to-date.
$ git submodule update --init --recursive
$ cd External/objective-git/
$ script/bootstrap
*** Updating submodules...
*** Checking dependencies...
$ script/update_libgit2
No update needed.
$ cd ../..
$ Scripts/build.py build release master
mvers: 0.15.2298 dev
vers: 0.15.2298
Setting CFBundleShortVersionString of project GitX to:
0.15.2298 dev.
Updating CFBundleShortVersionString in Info.plist(s)...
Updated CFBundleShortVersionString in "GitX.xcodeproj/../Resources/Info-gitx.plist" to 0.15.2298 dev
Updated CFBundleShortVersionString in "GitX.xcodeproj/../Resources/Info.plist" to 0.15.2298 dev
Setting version of project GitX to:
0.15.2298.
Also setting CFBundleVersion key (assuming it exists)
Updating CFBundleVersion in Info.plist(s)...
Updated CFBundleVersion in "GitX.xcodeproj/../Resources/Info-gitx.plist" to 0.15.2298
Updated CFBundleVersion in "GitX.xcodeproj/../Resources/Info.plist" to 0.15.2298
** BUILD FAILED **
The following build commands failed:
CompileXIB Resources/XIBs/PBGitCommitView.xib
(1 failure)
error: Command '['xcrun', 'xcodebuild', '-workspace', 'GitX.xcworkspace', '-scheme', 'GitX', '-configuration', 'Release', 'build', 'BUILD_DIR=/Users/crcarter/Software/Other/GitX/gitx/build']' returned non-zero exit status 65
I have tried the build script again and again, and sometimes I get errors related to CpResource XYZ.pdf where XYZ has been PushTemplate (as below), but I've also seen new_file, RemoteTemplate and, I believe, empty_file)
...
2017-05-02 09:40:40.491 xcodebuild[77184:7324309] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-9523/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:739
Details: unexpected successful exit code from cancelled command <C0038:'CpResource PushTemplate.pdf':P4>
Object: <PBXTargetBuildContext: 0x7faf4590b860>
Method: -createCommandInvocationRecordFromInvocation:
Thread: <NSThread: 0x7faf461ad750>{number = 11, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
The following build commands failed:
CompileXIB Resources/XIBs/PBGitCommitView.xib
(1 failure)
error: Command '['xcrun', 'xcodebuild', '-workspace', 'GitX.xcworkspace', '-scheme', 'GitX', '-configuration', 'Release', 'build', 'BUILD_DIR=/Users/crcarter/Software/Other/GitX/gitx/build']' returned non-zero exit status 65
As I said, I was able to build w/o issue last month. Any ideas about what's going on?
Metadata
Metadata
Assignees
Labels
No labels
Activity
ksuther commentedon May 2, 2017
Have you tried building the workspace from within Xcode? I've been able to build without any trouble.
claytonrcarter commentedon May 3, 2017
Ah, thanks. Still failing, but at least it gave me a clue: my Xcode is outdated. I'll update and give it another whirl.
james-rabbit commentedon May 16, 2017
I am stuck on this exact same error with the latest Xcode.
claytonrcarter commentedon May 16, 2017
I ended up getting it to work. I still had xcode 7, and had to upgrade to Sierra in order to get xcode 8 to install. After that, it built fine.
... an OS upgrade just to use gitx ... that's love for you ...
james-rabbit commentedon May 16, 2017
Thanks, unfortunately it didn't work for me.
I'm using Sierra 10.12.5 and Xcode 8.3.2 but I still have this issue. I wonder what changed for you.
ksuther commentedon May 16, 2017
What error do you get if you use xcodebuild or build from within Xcode?
james-rabbit commentedon May 16, 2017
I haven't tried those yet, let me see....
XCode:
ObjectiveGit-Mac is has a linker error with "Library not found for -lcrypto"
xcodebuild:
Same thing,
ksuther commentedon May 16, 2017
Take a look at #52, that seems like a similar error.
james-rabbit commentedon May 16, 2017
Thanks that looks to be the same.
I'll try adding a symlink to openssl in
/usr/local/opt/so it's where Objective-Git expects it.james-rabbit commentedon May 16, 2017
homebrew installs openssl as keg-only, so I had to do:
ln -s /usr/local/Cellar/openssl/1.0.2k /usr/local/opt/opensslNow building in Xcode works (yay), but the script is still broken the same as before.
tiennou commentedon Jul 10, 2017
@beporter Relevant issues for your build failure. HTH !
beporter commentedon Jul 10, 2017
Thank you @tiennou. I'd read this thread but totally missed that I too had the
ld: library not found for -lcryptoissue since it was buried in Xcode's error output.In order to leave a further breadcrumb for others, here are some notes about my build process:
I have all my dependencies and build tools installed via MacPorts (yes, I'm old fashioned):
Then as the installation wiki notes I installed the
arghpackage:Here's the part that wasn't clear from all the issues I had read. I had to point Xcode to the MacPorts-installed copy of the OpenSSL libraries.
$ open GitX.xcworkspace(Launches the Xcode project.)View > Navigators > Show Project NavigatorGitX > External Sourcesand selectObjectGitFramework.xcodeproj.Build Settings.Search Pathssection.Library Search Pathssetting and add the following path:/opt/local/lib.Product > Build For... > Running./Users/$USER/Library/Developer/Xcode/DerivedData/GitX-somethingsomething/Build/Products/Debug/.I hereby release any and all all rights to the content in this post in the hope that it can be somehow integrated into the Build Instructions to help others.
millerdev commentedon Jul 4, 2018
Had the same error
library not found for -lcryptooutput fromHere's a slightly easier workaround for building with MacPorts-installed dependencies that is more compatible with the command-line build instructions (no need to open Xcode):