Giter Site home page Giter Site logo

diegomagdaleno / ezchroot Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 830 KB

🌱Utility for making proper chroots in macOS/Darwin (And now even linux!) using Go lang. [Deprecated]

License: BSD 3-Clause "New" or "Revised" License

Makefile 4.39% Go 95.61%
chroot golang linux mac macos

ezchroot's Introduction

ezchroot's People

Contributors

diegomagdaleno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ezchroot's Issues

[Bug] [Fatal] Opening/Locating/Copying libraries is broken in macOS Big Sur.

So we got a new UI but we algo got a new way of how system libraries work:

  • Default system libraries are no longer present in the filesystem they are cached.

According to Apple:

New in macOS Big Sur 11 beta, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)

This means doing the syscall that we normally do when copying files open() will fail with "No such file or directory" apparently Apple solution is so syscall dlopen() thing I will look into for fixing this issue.

dyld: Library not loaded: /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS

Hi, I was trying to add /usr/bin/codesign, /usr/bin/security into coreApplication lists, the create command was success, but I can't start them with missing framework error:

sh-3.2$ codesign
dyld: dyld cache load error: shared cache file open() failed
dyld: Library not loaded: /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
  Referenced from: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
  Reason: image not found
Abort trap: 6

I copy the whole /System/Library/Framerowks, /System/Library/PrivateFramerowks, /usr/lib, and the next error is:

sh-3.2$ security create-keychain -p 123456 test.keychain
security: SecKeychainCreate test.keychain: A Module Directory Service error has occurred.

I have few questions:

  1. Is it okay to add some binary into coreApplications which is essential for iOS develop(codesign, security, and more)? or can we manually provide the list as an argument to you?
  2. The second error seem that I need to launch some services, do you have any ideas?

My final goal is to create a seprate iOS build enviroment, making xcode, code signing, cocoapods, jenkins works, hope your project can help, thanks :)

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.