Code Monkey home page Code Monkey logo

Comments (3)

BalestraPatrick avatar BalestraPatrick commented on September 25, 2024 1

Hello @mollyIV, I tried using class-dump as mentioned in the documentation, but it's possible that the code in IDEFoundation.framework has been rewritten into Swift as it's not really providing any useful output to me. By using Hopper, I found this.
Screenshot 2023-10-13 at 10 21 56 PM

I'm not exactly sure what "action" refers to (maybe just a string?), but I believe the other 3 fields are similar to others that we have in other model objects. It's worth trying to come up with a model and see if parsing your xcactivitylog parses it correctly.

from xclogparser.

mollyIV avatar mollyIV commented on September 25, 2024

Hello @BalestraPatrick 👋

Thank you for having a look at the issue.

I've been trying to come up with the model to parse my xcactivitylog and ended up with this:

public class IDEActivityLogActionMessage: IDEActivityLogMessage {
  public let action: String // <-- the only new field
}

It results in getting the following model object from the logs that I attached to the issue:

  > title: (String) The identity of “XYZ.xcframework” is not recorded in your project.
  > shortTitle = (String) ""
  > timeEmitted = (Double) ...
  > rangeEndInSectionText = (UInt64) ...
  > rangeStartInSectionText = (UInt64) ...
  > submessages = [(XCLogParser.IDEActivityLogMessage)] 0 values
  > severity = (Int) 0
  > type = (String) ""
  > location = (XCLogParser.DVTTextDocumentLocation) 0x00...
  > categoryIdent = (String) ""
  > secondaryLocations = ([XCLogParser.DVTTextDocumentLocation]) 0 values
  > additionalDescription = (String) ""
> action: (String) "{"frameworkSigningMismatch":{"_0":{"frameworkPath":"\/Users\/blob\/Projects\/foo\/Carthage\/Build\/XYZ.xcframework"}}}"

I've been moving the iterator.next() to the end when parsing IDEActivityLogActionMessage in parseIDEActivityLogActionMessage function, but couldn't get anything more than the action message and 0, 0, 0 values. After that an iterator was returning null.

I believe getting only an action message should be good enough, no? 🤔

Btw, I called it action, but I am up for other naming suggestions.

I created a draft pull request. I didn't add unit tests yet, because first, I wanted to make sure that it's a good implementation direction we are heading to 😉

Thoughts? 🙇

from xclogparser.

danielPeloton avatar danielPeloton commented on September 25, 2024

I've also been running into this now that we're updated to Xcode 15. Is there anything we can do to get that draft PR through?

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.