ArtifexSoftware/mupdf-ios-viewer

Xcode build hangs

Opened this issue · 3 comments

Followed the instructions to compile (Xcode 9).
When trying to compile everything seems to go well, until it gets stuck at:
xcrun ranlib build/release-ios-armv7-arm64/libmupdfthird.a
CPU is working real hard, but no results even after long waiting times.

Same result for either simulator or device target. Any suggestions?

UPDATE:
Ok that was quick. For some reason, it builds fine now without any issues including the Run Script where it previously hang on the libmupdfthird.a part. I did switch between debug/release a few times and did some Product->Clean. But nothing fundamentally different, strange. But thanks anyway!

[EDIT] it appears that the runtime script sometimes gets stuck on the xcrun ranlib part, and when you stop the process and quickly build again it works. I haven't yet found out why.

Can we get a fix for that?
It is annoying that I have to tell my new (and old) coworkers that they need to stop the build and start it again when checking out the repository and building it for the first time.

Same problem, but I waited 2 hours before finding this issue……

#!/bin/bash
# release armv7 + arm64
xcodebuild -scheme MuPDF -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
# debug 64bit sim
xcodebuild -scheme MuPDF -configuration Release -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

Temporary solution: stop the process and quickly build again