Giter VIP home page Giter VIP logo

Comments (14)

liamrosenfeld avatar liamrosenfeld commented on July 22, 2024 23

It looks like only xcodebuild -scheme XiEditor works for me. I'm not entirely sure why that would make a difference because just xcodebuild still knows the dependency is needed (it resolves it) it just never attaches it.

from xi-mac.

purezhi avatar purezhi commented on July 22, 2024 14

xcodebuild -scheme XiEditor -configuration Release build

from xi-mac.

dgmzc avatar dgmzc commented on July 22, 2024 3

xcodebuild -scheme XiEditor -configuration Release build

This may end up in creating a build folder inside the project root with an empty .app
I prefer using xcodebuild -scheme XiEditor -configuration Release
Then copy app from ~/Library/Developer/Xcode/DerivedData/XiEditor-xyz/Build/Products/Release/XiEditor.app into Applications

from xi-mac.

diegonvs avatar diegonvs commented on July 22, 2024 2

Installing rust and running xcodebuild -scheme XiEditor -configuration Release build worked well for me.

from xi-mac.

cmyr avatar cmyr commented on July 22, 2024

cc @liamrosenfeld ๐Ÿ˜

from xi-mac.

tranvansang avatar tranvansang commented on July 22, 2024

Error in my pc is different

CompileSwift normal x86_64 (in target 'XiCLICore' from project 'XiEditor')
    cd /Users/transang/xi-mac
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/transang/xi-mac/Sources/XiCLICore/Xi.swift /Users/transang/xi-mac/Sources/XiCLICore/RuntimeError.swift /Users/transang/xi-mac/Sources/XiCLICore/CLIHelper.swift -emit-module-path /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/XiCLICore.swiftmodule -emit-module-doc-path /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/XiCLICore.swiftdoc -emit-module-source-info-path /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/XiCLICore.swiftsourceinfo -serialize-diagnostics-path /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/XiCLICore-master.dia -emit-objc-header-path /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/XiCLICore-Swift.h -emit-dependencies-path /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/XiCLICore-master.d -target x86_64-apple-macos10.11 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I /Users/transang/xi-mac/build/Release -F /Users/transang/xi-mac/build/Release -g -swift-version 5 -enforce-exclusivity=checked -O -serialize-debugging-options -Xcc -working-directory -Xcc /Users/transang/xi-mac -Xcc -I/Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/XiCLICore-generated-files.hmap -Xcc -I/Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/XiCLICore-own-target-headers.hmap -Xcc -I/Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/XiCLICore-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/XiCLICore-project-headers.hmap -Xcc -I/Users/transang/xi-mac/build/Release/include -Xcc -I/Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/DerivedSources-normal/x86_64 -Xcc -I/Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/DerivedSources/x86_64 -Xcc -I/Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/DerivedSources -module-name XiCLICore -num-threads 8 -o /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/Xi.o -o /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/RuntimeError.o -o /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/CLIHelper.o
/Users/transang/xi-mac/Sources/XiCLICore/Xi.swift:15:8: error: no such module 'ArgumentParser'
import ArgumentParser
       ^

** BUILD FAILED **


The following build commands failed:
	CompileSwift normal x86_64
	CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)

All above workarounds do not work. Can anyone help?

I just want to give xieditor a try (to compare with sublime as a performance editor)

from xi-mac.

liamrosenfeld avatar liamrosenfeld commented on July 22, 2024

@tranvansang, are you using Xcode 11?

from xi-mac.

tranvansang avatar tranvansang commented on July 22, 2024

@liamrosenfeld
My XCode version
Version 11.5 (11E608c)

There is no update at the moment.

from xi-mac.

diegonvs avatar diegonvs commented on July 22, 2024

Did you already installed rust? https://www.rust-lang.org/tools/install

from xi-mac.

tranvansang avatar tranvansang commented on July 22, 2024

Did you already installed rust? https://www.rust-lang.org/tools/install

I did not. But even after installing rust, the error keeps showing

rustc --version
rustc 1.43.1 (8d69840ab 2020-05-04)

I also tried xcodebuild clean, the console prints this error

error: Failed to clean target 'XiCore': mv: rename /Users/transang/xi-mac/build/Release/xi-syntect-plugin to /Users/transang/xi-mac/build/Release/plugins/syntect/bin/xi-syntect-plugin: No such file or directory
 (in target 'XiCore' from project 'XiEditor')

error: Could not delete `/Users/transang/xi-mac/build` because it was not created by the build system.
** CLEAN FAILED **


The following build commands failed:
	/bin/bash /Users/transang/xi-mac/build-rust-xcode.sh
(1 failure)

I did rm -rf build and rebuild with xcodebuild. Same error appears

CompileSwift normal x86_64 (in target 'XiCLICore' from project 'XiEditor')
    cd /Users/transang/xi-mac
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/transang/xi-mac/Sources/XiCLICore/Xi.swift /Users/transang/xi-mac/Sources/XiCLICore/RuntimeError.swift /Users/transang/xi-mac/Sources/XiCLICore/CLIHelper.swift -emit-module-path /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/XiCLICore.swiftmodule -emit-module-doc-path /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/XiCLICore.swiftdoc -emit-module-source-info-path /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/XiCLICore.swiftsourceinfo -serialize-diagnostics-path /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/XiCLICore-master.dia -emit-objc-header-path /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/XiCLICore-Swift.h -emit-dependencies-path /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/XiCLICore-master.d -target x86_64-apple-macos10.11 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I /Users/transang/xi-mac/build/Release -F /Users/transang/xi-mac/build/Release -g -swift-version 5 -enforce-exclusivity=checked -O -serialize-debugging-options -Xcc -working-directory -Xcc /Users/transang/xi-mac -Xcc -I/Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/XiCLICore-generated-files.hmap -Xcc -I/Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/XiCLICore-own-target-headers.hmap -Xcc -I/Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/XiCLICore-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/XiCLICore-project-headers.hmap -Xcc -I/Users/transang/xi-mac/build/Release/include -Xcc -I/Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/DerivedSources-normal/x86_64 -Xcc -I/Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/DerivedSources/x86_64 -Xcc -I/Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/DerivedSources -module-name XiCLICore -num-threads 8 -o /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/Xi.o -o /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/RuntimeError.o -o /Users/transang/xi-mac/build/XiEditor.build/Release/XiCLICore.build/Objects-normal/x86_64/CLIHelper.o
/Users/transang/xi-mac/Sources/XiCLICore/Xi.swift:15:8: error: no such module 'ArgumentParser'
import ArgumentParser
       ^

** BUILD FAILED **


The following build commands failed:
	CompileSwift normal x86_64
	CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)

from xi-mac.

ironhopper avatar ironhopper commented on July 22, 2024

@tranvansang have you solved that problem? I have same issue.

from xi-mac.

tranvansang avatar tranvansang commented on July 22, 2024

@ironhopper not yet.

from xi-mac.

nangtrongvuon avatar nangtrongvuon commented on July 22, 2024

@tranvansang Iโ€™m not sure whatโ€™s up, but there are a few things that should help:

  • Make sure you have already installed the Xcode command line tools.
  • Switching back to an old Xcode. I just built successfully on 11.4.
  • Do a full reset of the xi folder and making sure you update submodules after that.

Failing these, Iโ€™ll upload a xi.app build myself.

from xi-mac.

dgmzc avatar dgmzc commented on July 22, 2024

It looks like only xcodebuild -scheme XiEditor works for me. I'm not entirely sure why that would make a difference because just xcodebuild still knows the dependency is needed (it resolves it) it just never attaches it.

This may end up building the debug build

from xi-mac.

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.