Comments (3)
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.
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.
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.
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)
- Error while adding XCLogParser as Swift Package HOT 2
- Xcode13/14 xcactivitylog missing when running test
- [discussion] Did we has a plan to resolve space time with "new_build_system"? HOT 1
- Error: Error parsing the log: Unexpected className found parsing DocumentLocation DVTMemberDocumentLocation HOT 2
- XCLogParser does not pick up all deprecation warnings HOT 2
- Analyser messages are truncated in JSON output
- FEATURE: New reporter for OpenTelemetry HOT 3
- Swift Type check and functions build times not generated HOT 10
- Release the latest changes? HOT 2
- Memory Usage explosion in parse command in version 0.2.37 HOT 8
- 【discuss】Should the log file loaded with encoding UTF-8 ?
- Swift Compilation marked as others type HOT 1
- Huge html report size HOT 2
- Failed create json report Xcode 15.3 HOT 5
- Error: The line *{"wcDuration":152493 doesn't seem like a valid SLF line HOT 1
- parse xcode14.3 xcactivitylog error HOT 2
- any test xcactivitylog file for 0.2.39 release HOT 1
- Unexpected token parsing array of IDEActivityLogSectionAttachment HOT 1
- Unused variable warning not being returned by the `parse` command
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 xclogparser.