Skip to content

Tips on building from mac #3

@a7u7a

Description

@a7u7a

On mac, both $ swift build and building from xcode fail.
On xcode I am using swift 4.1.2 toolchain

Error from $ swift build:

pcb2photon/Package.swift:13:5: error: argument 'targets' must precede argument 'dependencies'
    targets: [
    ^
Can't parse Package.swift manifest file because it contains invalid format. Fix Package.swift file format and try again.
error: invalid manifest format

and error from xcode:

CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
    cd /Users/user/Documents/pcb2photon
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
    export TOOLCHAINS=org.swift.41220180531a
    /Library/Developer/Toolchains/swift-4.1.2-RELEASE.xctoolchain/usr/bin/swiftc -incremental -module-name SGLImage -Onone -DSWIFT_PACKAGE -DXcode -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -target x86_64-apple-macosx10.10 -g -module-cache-path /Users/user/Library/Developer/Xcode/DerivedData/ModuleCache -Xfrontend -serialize-debugging-options -enable-testing -I /Users/user/Library/Developer/Xcode/DerivedData/pcb2photon-hcfysdbhqryaiofxfesvanakfsej/Build/Products/Debug -F /Users/user/Library/Developer/Xcode/DerivedData/pcb2photon-hcfysdbhqryaiofxfesvanakfsej/Build/Products/Debug -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -c -j8 /Users/user/Documents/pcb2photon/.build/checkouts/Image.git--6271664722653506445/Sources/SGLImage/Image.swift /Users/user/Documents/pcb2photon/.build/checkouts/Image.git--6271664722653506445/Sources/SGLImage/ImageBMP.swift /Users/user/Documents/pcb2photon/.build/checkouts/Image.git--6271664722653506445/Sources/SGLImage/ImageGIF.swift /Users/user/Documents/pcb2photon/.build/checkouts/Image.git--6271664722653506445/Sources/SGLImage/ImageLoader.swift /Users/user/Documents/pcb2photon/.build/checkouts/Image.git--6271664722653506445/Sources/SGLImage/ImagePNG.swift /Users/user/Documents/pcb2photon/.build/checkouts/Image.git--6271664722653506445/Sources/SGLImage/Inflate.swift -output-file-map /Users/user/Library/Developer/Xcode/DerivedData/pcb2photon-hcfysdbhqryaiofxfesvanakfsej/Build/Intermediates/pcb2photon.build/Debug/SGLImage.build/Objects-normal/x86_64/SGLImage-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/user/Library/Developer/Xcode/DerivedData/pcb2photon-hcfysdbhqryaiofxfesvanakfsej/Build/Intermediates/pcb2photon.build/Debug/SGLImage.build/Objects-normal/x86_64/SGLImage.swiftmodule -Xcc -I/Users/user/Library/Developer/Xcode/DerivedData/pcb2photon-hcfysdbhqryaiofxfesvanakfsej/Build/Intermediates/pcb2photon.build/Debug/SGLImage.build/swift-overrides.hmap -Xcc -I/Users/user/Library/Developer/Xcode/DerivedData/pcb2photon-hcfysdbhqryaiofxfesvanakfsej/Build/Products/Debug/include -Xcc -I/Users/user/Library/Developer/Xcode/DerivedData/pcb2photon-hcfysdbhqryaiofxfesvanakfsej/Build/Intermediates/pcb2photon.build/Debug/SGLImage.build/DerivedSources/x86_64 -Xcc -I/Users/user/Library/Developer/Xcode/DerivedData/pcb2photon-hcfysdbhqryaiofxfesvanakfsej/Build/Intermediates/pcb2photon.build/Debug/SGLImage.build/DerivedSources -emit-objc-header -emit-objc-header-path /Users/user/Library/Developer/Xcode/DerivedData/pcb2photon-hcfysdbhqryaiofxfesvanakfsej/Build/Intermediates/pcb2photon.build/Debug/SGLImage.build/Objects-normal/x86_64/SGLImage-Swift.h -Xcc -working-directory/Users/user/Documents/pcb2photon

<unknown>:0: error: no such file or directory: '/Users/user/Documents/pcb2photon/.build/checkouts/Image.git--6271664722653506445/Sources/SGLImage/Image.swift'
<unknown>:0: error: no such file or directory: '/Users/user/Documents/pcb2photon/.build/checkouts/Image.git--6271664722653506445/Sources/SGLImage/ImageBMP.swift'
<unknown>:0: error: no such file or directory: '/Users/user/Documents/pcb2photon/.build/checkouts/Image.git--6271664722653506445/Sources/SGLImage/ImageGIF.swift'
<unknown>:0: error: no such file or directory: '/Users/user/Documents/pcb2photon/.build/checkouts/Image.git--6271664722653506445/Sources/SGLImage/ImageLoader.swift'
<unknown>:0: error: no such file or directory: '/Users/user/Documents/pcb2photon/.build/checkouts/Image.git--6271664722653506445/Sources/SGLImage/ImagePNG.swift'
<unknown>:0: error: no such file or directory: '/Users/user/Documents/pcb2photon/.build/checkouts/Image.git--6271664722653506445/Sources/SGLImage/Inflate.swift'
Command /Library/Developer/Toolchains/swift-4.1.2-RELEASE.xctoolchain/usr/bin/swiftc failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions