Skip to content

Install fail #588

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

Closed
KevinJue opened this issue Apr 25, 2016 · 15 comments
Closed

Install fail #588

KevinJue opened this issue Apr 25, 2016 · 15 comments

Comments

@KevinJue
Copy link

KevinJue commented Apr 25, 2016

Xcode 7.2
OS: El Capitan 10.11.3

I follow readme to start documentation, but on sudo sh install-appledoc.sh a got a install failed.

ld: library not found for -lDiscount
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** INSTALL FAILED **


The following build commands failed:
    Ld /tmp/appledoc.dst/usr/local/bin/appledoc normal x86_64
(1 failure)

Obviously i install pod and project build correctly on xcode but not with sh, so i dont get the binary exported
It's a bug or i miss something ?

@tomaz
Copy link
Owner

tomaz commented Apr 25, 2016

Is this on latest master? There were couple project related changes that might end up with this kind of issue. Also make sure you open appledoc.xcworkspace, not .xcodeproj

@Coeur
Copy link
Collaborator

Coeur commented Apr 25, 2016

same issue... I should I've tried the install script before merging

ld: warning: directory not found for option '-L/Users/coeur/Development/iOS/appledoc/build/Release/Discount'
ld: warning: directory not found for option '-L/Users/coeur/Development/iOS/appledoc/build/Release/GRMustache'
ld: warning: directory not found for option '-L/Users/coeur/Development/iOS/appledoc/build/Release/JRSwizzle'
ld: warning: directory not found for option '-L/Users/coeur/Development/iOS/appledoc/build/Release/Minizip'
ld: warning: directory not found for option '-L/Users/coeur/Development/iOS/appledoc/build/Release/ParseKit'
ld: warning: directory not found for option '-L/Users/coeur/Development/iOS/appledoc/build/Release/RegexKitLite'
ld: library not found for -lDiscount

@Coeur
Copy link
Collaborator

Coeur commented Apr 25, 2016

@KevinJue, can you retry now?

@KevinJue
Copy link
Author

@tomaz yes it's on master and obviously after pod install i use .xcworkspace.

@Coeur Well i got an other error

xcodebuild: error: The workspace named "appledoc" does not contain a scheme named "appledoc". The "-list" option can be used to find the names of the schemes in the workspace.

file xcworkspace exist.

@Coeur
Copy link
Collaborator

Coeur commented Apr 26, 2016

I'm sorry, the previous fix was gitignored. Now it should be good.

@Coeur Coeur closed this as completed Apr 26, 2016
@KevinJue
Copy link
Author

KevinJue commented Apr 26, 2016

@Coeur Did you try ? Because actually previous problem is fix but binary doesn't exist.

Where you doing cp command to move it to /usr/local/bin/, we don't find appledoc.

Installing binary to /usr/local/bin/
cp: /tmp/appledoc.dst/usr/local/bin/appledoc: No such file or directory 

ref: #520

@Coeur Coeur reopened this Apr 26, 2016
@Coeur
Copy link
Collaborator

Coeur commented Apr 26, 2016

I got tricked by the bold **** INSTALL SUCCEEDED **** message.

@Coeur
Copy link
Collaborator

Coeur commented Apr 26, 2016

We could add a line to the Build phase "Run Script":

rm default_templates.zip
cp $(DSTROOT)$(INSTALL_PATH)/appledoc /usr/local/bin

But then it would hardcode the installation to that path.
We better figure out how to override an INSTALL_DIR of /var/root/Library/Developer/Xcode/DerivedData/appledoc-fuhaeexfriuyzvbifkmioruvdhie/Build/Intermediates/ArchiveIntermediates/appledoc/InstallationBuildProductsLocation/usr/local/bin, as /tmp/appledoc.dst/usr/local/bin is not correct anymore.

@Coeur
Copy link
Collaborator

Coeur commented Apr 26, 2016

I've found a solution. I'm sorry for the 24 hours broken service. commit 886424a should be good.

@Coeur Coeur closed this as completed Apr 26, 2016
@leechance
Copy link

** INSTALL SUCCEEDED **

install: /tmp/Build/Intermediates/ArchiveIntermediates/appledoc/InstallationBuildProductsLocation/usr/local/bin/appledoc: No such file or directory

i using the 'appledoc --version'
-bash: cd: appledoc: No such file or directory

why ? @Coeur

@Coeur
Copy link
Collaborator

Coeur commented Oct 9, 2017

@leechance you may want to open a new issue, as this one is unlikely to be reopened.
Please mention your version of macOS, Xcode, ruby, etc.

Also, I no longer contribute to appledoc (see #615), so @tomaz may help you better than I.

@amarince
Copy link

amarince commented Oct 9, 2017

@leechance Seems the path is changed (Not sure if in latest Xcode or in OSX 10.13).

You can easily fix it modifiying the script install-appledoc.sh

-install -v /tmp/Build/Intermediates/ArchiveIntermediates/appledoc/InstallationBuildProductsLocation/usr/local/bin/appledoc "$BINARY_DIR"
+install -v /tmp/Build/Intermediates.noindex/ArchiveIntermediates/appledoc/InstallationBuildProductsLocation/usr/local/bin/appledoc "$BINARY_DIR"

At line 45.

Would do a pull request but haven't evaluated the impact on other Xcode/OSX versions so not really safe to just replace for everyone ...

Xcode 9.0
Build version 9A235
OSX 10.13

Br,
Tony

@Coeur
Copy link
Collaborator

Coeur commented Oct 9, 2017

Bah, if you put the details here, I'll reopen.

@Coeur Coeur reopened this Oct 9, 2017
@tomaz
Copy link
Owner

tomaz commented Oct 9, 2017

Please do PR against Xcode 9, it’s latest released version so latest codebase needs to be working against it @antonymc

@amarince
Copy link

Seems to be fixed, at least with Latest Xcode 9.1:

** INSTALL SUCCEEDED **

install: /tmp/Build/Intermediates/ArchiveIntermediates/appledoc/InstallationBuildProductsLocation/usr/local/bin/appledoc -> /usr/local/bin//appledoc
$ xcodebuild -version
Xcode 9.1
Build version 9B55

I think this issue can be closed.

@Coeur Coeur closed this as completed Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants