Comments (14)
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.
xcodebuild -scheme XiEditor -configuration Release build
from xi-mac.
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.
Installing rust and running xcodebuild -scheme XiEditor -configuration Release build
worked well for me.
from xi-mac.
cc @liamrosenfeld ๐
from xi-mac.
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.
@tranvansang, are you using Xcode 11?
from xi-mac.
@liamrosenfeld
My XCode version
Version 11.5 (11E608c)
There is no update at the moment.
from xi-mac.
Did you already installed rust? https://www.rust-lang.org/tools/install
from xi-mac.
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.
@tranvansang have you solved that problem? I have same issue.
from xi-mac.
@ironhopper not yet.
from xi-mac.
@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.
It looks like only
xcodebuild -scheme XiEditor
works for me. I'm not entirely sure why that would make a difference because justxcodebuild
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)
- autosave triggers HOT 11
- Xcode colorscheme HOT 3
- xi --wait does not return after application exit HOT 1
- update to swift 5 HOT 9
- Doesn't compile for Swift 5 HOT 13
- Change default find highlight color HOT 2
- package ID specification `xi-syntect-plugin` matched no packages
- build-rust-xcode.sh fails with Permission denied (os error 13) HOT 6
- Status Bar hiding last line HOT 3
- Scroll bars disappearing when switching from different application HOT 3
- Drag events cause file to be opened HOT 1
- Wrong top margin with statusbar -- first visible line is not rendered
- Crash when deleting (backspace) selection HOT 2
- Line numbers become bogus when scrolling HOT 1
- (Save) Dialog Overshoots Window in Splitwindow mode (macOS Catalina)
- Where is built .app? HOT 1
- No text is displayed at all
- no such module 'ArgumentParser' HOT 9
- xcodebuild fails on Mac Version OS 12 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xi-mac.