Giter Site home page Giter Site logo

Cannot build with Swift4 about autokbisw HOT 7 CLOSED

jeantil avatar jeantil commented on July 22, 2024
Cannot build with Swift4

from autokbisw.

Comments (7)

jeantil avatar jeantil commented on July 22, 2024

I am able to build the project using XCode9.2 and swiftc 4.0.3 without converting the project to swift 4.

can you try running the build from the command line

xcodebuild -scheme autokbis build

here is what I get when I do

xcodebuild -scheme autokbis build
=== BUILD TARGET autokbisw OF PROJECT autokbisw WITH CONFIGURATION Debug ===

Check dependencies

Ld /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Products/Debug/autokbisw normal x86_64
    cd /Users/jean/dev/opt/autokbis
    export MACOSX_DEPLOYMENT_TARGET=10.11
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -L/Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Products/Debug -F/Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Products/Debug -filelist /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Intermediates.noindex/autokbisw.build/Debug/autokbisw.build/Objects-normal/x86_64/autokbisw.LinkFileList -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -rpath -Xlinker @loader_path/../Frameworks -mmacosx-version-min=10.11 -Xlinker -object_path_lto -Xlinker /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Intermediates.noindex/autokbisw.build/Debug/autokbisw.build/Objects-normal/x86_64/autokbisw_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx -Xlinker -force_load_swift_libs -lc++ -framework Foundation -Xlinker -add_ast_path -Xlinker /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Intermediates.noindex/autokbisw.build/Debug/autokbisw.build/Objects-normal/x86_64/autokbisw.swiftmodule -framework IOKit -Xlinker -dependency_info -Xlinker /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Intermediates.noindex/autokbisw.build/Debug/autokbisw.build/Objects-normal/x86_64/autokbisw_dependency_info.dat -o /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Products/Debug/autokbisw

PBXCp /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Products/Debug/autokbisw /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Products/Debug/Users/jean/dev/opt/autokbis/autokbisw
    cd /Users/jean/dev/opt/autokbis
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Products/Debug/autokbisw /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Products/Debug/Users/jean/dev/opt/autokbis

CodeSign /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Products/Debug/Users/jean/dev/opt/autokbis/autokbisw
    cd /Users/jean/dev/opt/autokbis
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

Signing Identity:     "Mac Developer: [email protected] (YGZKS4883C)"

    /usr/bin/codesign --force --sign CFDF4AD28D97C7B21CD02C6BD1E95F4398F43937 --preserve-metadata=identifier,entitlements,flags --timestamp=none /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Products/Debug/Users/jean/dev/opt/autokbis/autokbisw

CodeSign /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Products/Debug/autokbisw
    cd /Users/jean/dev/opt/autokbis
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

Signing Identity:     "Mac Developer: [email protected] (YGZKS4883C)"

    /usr/bin/codesign --force --sign CFDF4AD28D97C7B21CD02C6BD1E95F4398F43937 --timestamp=none /Users/jean/Library/Developer/Xcode/DerivedData/autokbisw-aiutnrbhxysoupcydtkhcozxjinv/Build/Products/Debug/autokbisw

** BUILD SUCCEEDED **

please note that I am not highly familiar with xcode and swift. I am aware the xcode project descriptor has hardcoded paths and may have depedencies on my credential but I haven't found a way around it. Insights are welcome !

from autokbisw.

niccolospa avatar niccolospa commented on July 22, 2024

running it from the command line I get:
[...]
:0: error: no such file or directory: '/Users/niccolospagnuolo/Downloads/autokbisw-master-2/autokbisw/CommandLineKit/CommandLineKit/StringExtensions.swift'
:0: error: no such file or directory: '/Users/niccolospagnuolo/Downloads/autokbisw-master-2/autokbisw/CommandLineKit/CommandLineKit/CommandLine.swift'
:0: error: no such file or directory: '/Users/niccolospagnuolo/Downloads/autokbisw-master-2/autokbisw/CommandLineKit/CommandLineKit/Option.swift'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
** BUILD FAILED **

The following build commands failed:
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(1 failure)

from autokbisw.

niccolospa avatar niccolospa commented on July 22, 2024

Solved...I was missing CommandLineKit

from autokbisw.

jeantil avatar jeantil commented on July 22, 2024

I have tried to make the need to clone --recursive more obvious in the readme file.

from autokbisw.

Fayfayhu avatar Fayfayhu commented on July 22, 2024

@niccolospa Hi, I'm having the same problem, how did you fix it with commandLinekit?

from autokbisw.

niccolospa avatar niccolospa commented on July 22, 2024

@Fayfayhu if you simply download the zip package you will miss the CommandLineKit dependency, therefore or you use clone --recursive or navigate to the GitHub folder autokbisw/CommandLineKit and download it separately

from autokbisw.

Fayfayhu avatar Fayfayhu commented on July 22, 2024

@niccolospa Thank you!

from autokbisw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.