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

Building acextract fails #14

Open
jpstotz opened this issue Nov 15, 2021 · 1 comment
Open

Building acextract fails #14

jpstotz opened this issue Nov 15, 2021 · 1 comment

Comments

@jpstotz
Copy link

jpstotz commented Nov 15, 2021

I installed xcpretty and then execute the Makefile using make build but the build fails:

rm -r acextract.xcarchive
rm: acextract.xcarchive: No such file or directory
make: [build] Error 1 (ignored)
xcodebuild \
                -project acextract.xcodeproj \
                -scheme acextract \
                -archivePath /Users/user/Documents/acextract/acextract.xcarchive \
                archive | xcpretty -c
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:x86_64, id:41A4E177-67E0-59EC-83B5-B1A7A8E0536D }
{ platform:macOS, name:Any Mac }

[x] error: generate-pch command failed with exit code 1 (use -v to see invocation)
[x] /Users/user/Documents/acextract/acextract/CoreUI.h:109:13: expected a type

- (nullable CGPDFDocumentRef)pdfDocument;
        ^
[x] /Users/user/Documents/acextract/acextract/CoreUI.h:111:13: expected a type

- (nullable CGImageRef)unslicedImage;
        ^
[x] error: failed to emit precompiled header '/Users/user/Library/Developer/Xcode/DerivedData/acextract-eladrcnvwagendfcrpthmbutkmmz/Build/Intermediates.noindex/ArchiveIntermediates/acextract/PrecompiledHeaders/acextract-Bridging-Header-swift_2OEU7PU7L0HTU-clang_171HMTJZZUKMX.pch' for bridging header /Users/user/Documents/acextract/acextract/acextract-Bridging-Header.h


** ARCHIVE FAILED **

The following build commands failed:
        CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'acextract' from project 'acextract')
        CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'acextract' from project 'acextract')
        PrecompileSwiftBridgingHeader normal arm64 (in target 'acextract' from project 'acextract')
(3 failures)
rm /Users/user/Documents/acextract/acextract.bin
rm: /Users/user/Documents/acextract/acextract.bin: No such file or directory
make: [build] Error 1 (ignored)
cp acextract.xcarchive/Products/usr/local/bin/acextract /Users/user/Documents/acextract/acextract.bin
cp: acextract.xcarchive/Products/usr/local/bin/acextract: No such file or directory
make: *** [build] Error 1

Xcode 13.1 Build version 13A1030d
macOS 11.6 BuildVersion: 20G165

@MarshalX
Copy link

MarshalX commented May 8, 2022

fixed by adding some imports for me MarshalX@62c7c3a

I disabled exporting as PDF due segfaults. Not required for my own usage

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

2 participants