Code Monkey home page Code Monkey logo

Comments (6)

BalestraPatrick avatar BalestraPatrick commented on May 26, 2024

Does the same happen if you wait a while after the xcodebuild command returns before running xclogparser? We have noticed that sometimes Xcode/xcodebuild take a while to finish writing the log to disk, so if you try to parse it immediately after, xclogparser will not be able to read the file structure correctly since it hasn't been written fully yet.

from xclogparser.

mobileben avatar mobileben commented on May 26, 2024

Hmm, that is interesting. I did see one case where the next day, I ran my script (which calls xclogparser) and is magically worked.

I've run a few tests with xcodebuild and those xcactivitylog files don't seem to work even if I try a few hours later. Doesn't seem to matter if I use -resultBundlePath or override the derived data. It has worked sometimes so I'm just not quite sure. These are quite large files. 1-5GB (what zip says it would uncompress if it could).

from xclogparser.

mobileben avatar mobileben commented on May 26, 2024

BTW, I read your article regarding usage of Rome. Very interesting! Do you happen to know if there is an equivalent for Pods? Or maybe asked another way ... do you use pods at all or have you been able to use Carthage for all your dependencies?

from xclogparser.

BalestraPatrick avatar BalestraPatrick commented on May 26, 2024

@mobileben There are some CocoaPods plugins to use binaries instead of rebuilding all the dependencies from source. Take a look at https://github.com/leavez/cocoapods-binary.

from xclogparser.

mobileben avatar mobileben commented on May 26, 2024

@BalestraPatrick Cool thanks. I tried using it, though it seems to have some issues with some pods. Ideally I want to have us ditch pods altogether.

Just curious. Do you have internal libs/frameworks which are Carthage packages? And if so, how do you facilitate debugging or modifying it when used with the app? For example we are using private pods (these are locally linked and are committed in our monorepo). Right now the pods project file is included in the workspace. So this means that you essentially have access to all code in the Xcode project.

I'm trying to move us away from that and to prebuilts. However, due to how the app is built, many of those private pods more or less need to app in order to develop for. Do you have a similar circumstance and if so how do you work around this?

I'm working on a proof of concept of using xcodegen to build project files which by default will use prebuilts. But if you need say private pod A or B, it will include those as subprojects. Part of my plan is to move away from pods and to create Xcode projects for everything that can then be added to the app when one needs to debug.

from xclogparser.

BalestraPatrick avatar BalestraPatrick commented on May 26, 2024

@mobileben That's one way of doing it. We don't really use Carthage or CocoaPods for internal code exactly for that reason.

from xclogparser.

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.