-
Notifications
You must be signed in to change notification settings - Fork 260
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
No Valid Logs Found #30
Comments
Do you have more than one target in your project? If so, was the flags added to the one you are building? |
@RobertGummesson no, no other targets. Single target app and they were for sure added to the build settings of the correct target |
Just to rule out some possible scenarios, could you try this on another project and see if you have the same issue there? |
@bryan1anderson I just managed to experience a similar issue. In my case, I have been playing around with timezones and Xcode got confused when I had log files made in the future and refused to output the build time bodies. I deleted all folders in the derivedData folder. After that it worked again. |
@RobertGummesson I have the same problem. After the build completes, I see this I followed your advice of deleting derived data. I tried running it on another simpler "New Project" and it worked. But it doesn't work on a larger project that I spend most of my time on. Do you have a troubleshooting list ? Thanks for this plugin, It will be hugely useful to reduce my build times. |
In my case, there is a XCode 'project' and there are multiple XCode 'targets' under that project. I have the settings on the 'target' for my app. But it had the above behavior. |
@gprasant I'm afraid deleting derived data hasn't worked for me either On Tue, May 31, 2016 at 11:31 AM gprasant [email protected] wrote:
|
🏆 . I went through my build settings more thoroughly and changed things and got the profiling to work. |
@gprasant - Great. What was missing? It would be useful to narrow down the scope of possible causes. Since I can't reproduce this myself, I will unfortunately need to rely on someone else to give me a hand debugging this. If I had to guess, the problem is that the productName is not matching workspace name (line 46, CMXcodeWorkspace.swift). If not there, it would be interesting to know where it goes wrong. To debug this, first build the project you have an issue with to ensure that the build log is created. Then do the following steps:
Something is most likely going wrong in the function logTextForProduct() in CMLogProcessor.swift. |
@gprasant any details that could be helpful to me?
|
I'll get on that as soon as I can today and let you know what I find
|
Actually, before debugging the code, it may be worth just checking that the build times are being created properly by Xcode. The steps for manually looking at these are detailed in this post. |
my theory is that the compiler flags were not applied correctly at the first try. My build settings look like this : When I added the compiler flags ( -Xfrontend -debug-time-function-bodies ), it did not get added to the leaf nodes in that tree (The ones that say 'Any Architecture | Any SDK' ). |
Thanks for sharing. ...and no, there is no specific chatroom set up for this repo. |
Having the same issue on a big project here, it:
Any clue about it? Or do you know how can I debug it? Thank you! (and thank you for this plugin, it's great! :D) |
Hi @Lascorbe I've used it on projects using CocoaPods and a mix of Swift and Obj-C so at least that can be ruled out as a possible cause. To summarize some of the points you can try:
|
Hey @RobertGummesson!
Looks like everything is fine but... I'm seeing the same as gprasant here I'm gonna try different flags configurations and see if I can get it working. Thank you for your help :) |
I have the same behaviour. I tried deleting the DerivedData folder contents but of no use. |
I have the same problem, in my case Derived data option is Relative so that BTA is not working and then I've changed this option to default that BTA is working, but I need to set the derived data option is Relative. Any idea? |
i have the same problem |
Actually I ran into this because I had globally set the derived data folder to a custom location… so check your derived data path in your XCode > Preferences > Locations |
this issue backed again in 1.0.7 version. in 1.0.6 all ok. Tested with Xcode 9 GM |
@threat70 - Thanks for reporting. I just fixed it in v1.0.8. |
@RobertGummesson wow, so fast. Thank you :) |
Late to this party. For me, the solution was to restart BuildTimeAnalyzer and the logs show up. |
I was having these issues and decided to start debugging to see if I could figure out what the issue is. I haven't pin pointed the exact cause, but it does seem to be a timing/threading issue. I put breakpoints in a few places and as I was stepping through the log processing bit I noticed it was working where it didn't work before. If I turn off the breakpoints it doesn't work again. Here are the breakpoints that I used: If I figure out which of the background threads are stomping on which, I'll report back. |
Everything seems to be working. I hit build, Build Time Analyzer updates and shows that a build is in progress, but it ends with Status: "No valid logs found"
I have verified that the two Swift flags have been added to the correct target, but still nada
The text was updated successfully, but these errors were encountered: