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

integration with a-shell help wanted #91

Open
jbdu94 opened this issue Dec 19, 2019 · 6 comments
Open

integration with a-shell help wanted #91

jbdu94 opened this issue Dec 19, 2019 · 6 comments

Comments

@jbdu94
Copy link

jbdu94 commented Dec 19, 2019

Hi

when I follow the steps for intergation with your app, I get a compile error in xcode
That the steps I followed

Integration with your app:
Link your application with the ios_system.framework framework.
Embed (but don't link) the frameworks corresponding to the commands you need (libtar.dylib if you need tar, libfiles.dylib for cp, rm, mv...).
Add the two dictionaries, Resources/commandDictionary.plist and Resources/extraCommandsDictionary.plist to the "Copy Bundle Resources" step in your Xcode project.

And here my error in xcode

Multiple commands produce '/Users/julie/Library/Developer/Xcode/DerivedData/a-Shell-gmldrxgbakqemwdnsrrocxlpuvsb/Build/Products/Debug-iphonesimulator/a-Shell.app/commandDictionary.plist':

  1. Target 'a-Shell' (project 'a-Shell') has copy command from '/Users/julie/Downloads/a-shell-master/Resources/commandDictionary.plist' to '/Users/julie/Library/Developer/Xcode/DerivedData/a-Shell-gmldrxgbakqemwdnsrrocxlpuvsb/Build/Products/Debug-iphonesimulator/a-Shell.app/commandDictionary.plist'
  2. Target 'a-Shell' (project 'a-Shell') has copy command from '/Users/julie/Downloads/a-shell-master/commandDictionary.plist' to '/Users/julie/Library/Developer/Xcode/DerivedData/a-Shell-gmldrxgbakqemwdnsrrocxlpuvsb/Build/Products/Debug-iphonesimulator/a-Shell.app/commandDictionary.plist'

Please help me

@holzschu
Copy link
Owner

I am not certain what you are trying to do. a-Shell is an app written for ios_system, so it is already integrated with it. All the steps described in the document you quote have already been done.

From the text of your error message, you are copying two different files to commandDictionary.plist, probably because you added the step to copy it to an application that already had one. You need to chose one and delete the other.

@jbdu94
Copy link
Author

jbdu94 commented Dec 19, 2019

OK, so if a-shell already contains ios_system , why do I obtain those errors when I just download the github code and open the xcode project and try to build it?
Maybe I do something wrong, but what? Could u please help me? I really wanna try that app and add m commands

/Users/julie/Downloads/a-shell-master/a-Shell/WKWebView+KeyCommands.swift:80:43: Use of unresolved identifier 'ios_getContext'
/Users/julie/Downloads/a-shell-master/a-Shell/ExtraCommands.swift:17:39: Use of unresolved identifier 'ios_getContext'
/Users/julie/Downloads/a-shell-master/a-Shell/ExtraCommands.swift:32:39: Use of unresolved identifier 'ios_getContext'
/Users/julie/Downloads/a-shell-master/a-Shell/ExtraCommands.swift:48:39: Use of unresolved identifier 'ios_getContext'
/Users/julie/Downloads/a-shell-master/a-Shell/ExtraCommands.swift:63:39: Use of unresolved identifier 'ios_getContext'
/Users/julie/Downloads/a-shell-master/a-Shell/ExtraCommands.swift:147:39: Use of unresolved identifier 'ios_getContext'
/Users/julie/Downloads/a-shell-master/a-Shell/ExtraCommands.swift:252:39: Use of unresolved identifier 'ios_getContext'
/Users/julie/Downloads/a-shell-master/a-Shell/ExtraCommands.swift:523:5: Use of unresolved identifier 'cd_main'
/Users/julie/Downloads/a-shell-master/a-Shell/ExtraCommands.swift:582:17: Use of unresolved identifier 'cd_main'
/Users/julie/Downloads/a-shell-master/a-Shell/AppDelegate.swift:228:9: Use of unresolved identifier 'numPythonInterpreters'
/Users/julie/Downloads/a-shell-master/a-Shell/SceneDelegate.swift:405:9: Use of unresolved identifier 'ios_setWindowSize'
/Users/julie/Downloads/a-shell-master/a-Shell/SceneDelegate.swift:486:17: Use of unresolved identifier 'ios_setWindowSize'
/Users/julie/Downloads/a-shell-master/a-Shell/SceneDelegate.swift:488:17: Use of unresolved identifier 'ios_signal'
/Users/julie/Downloads/a-shell-master/a-Shell/SceneDelegate.swift:498:17: Use of unresolved identifier 'ios_setWindowSize'
/Users/julie/Downloads/a-shell-master/a-Shell/SceneDelegate.swift:500:17: Use of unresolved identifier 'ios_signal'
/Users/julie/Downloads/a-shell-master/a-Shell/SceneDelegate.swift:966:9: Use of unresolved identifier 'ios_signal'

@holzschu
Copy link
Owner

a-Shell is still being actively developed, and sometimes I add new functions to ios_system because I need them in a-Shell. The released version of iOS_system is behind the repository version by several commits. You will need to clone the ios_system repository and build the frameworks yourself. All the missing functions have been added since the release.

@jbdu94
Copy link
Author

jbdu94 commented Dec 19, 2019

So, just to make sure I understood everything, if I would like to test a-shell with all latest commands, I have to download both git source code (a-shell and ios_system), and in ios_system: ./get_binaries.sh, ./get_sources.sh and ./get_frameworks.sh, then build ios_system in xcode and link to a-shell? Because I am confused, you said a-shell already has all latest commands from ios_system, so I want to make sure.
I just would like to test a-shell and see what I can do with it.

@holzschu
Copy link
Owner

holzschu commented Dec 19, 2019

That sounds right, except that get_binaries.sh is not required (get_frameworks.sh does the job). At the end of the building process in ios_system, copy all frameworks generated to the Frameworks directory in the a-Shell directory, then compile a-Shell

If I remember correctly, it is mainly ios_system.frameworj that has been modified. Other frameworks are probably unchanged.

The latest commit of a-Shell contains references to frameworks for new commands (taskwarrior, python packages, clang and LLVM). If these are not necessary for what you want to do, you can remove them from the project. Otherwise, you might have to compile them too.

@dlevi309
Copy link

dlevi309 commented Jan 7, 2020

So, just to make sure I understood everything, if I would like to test a-shell with all latest commands, I have to download both git source code (a-shell and ios_system), and in ios_system: ./get_binaries.sh, ./get_sources.sh and ./get_frameworks.sh, then build ios_system in xcode and link to a-shell? Because I am confused, you said a-shell already has all latest commands from ios_system, so I want to make sure.
I just would like to test a-shell and see what I can do with it.

were you ever able to get this to work?

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

3 participants