-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
[MacOS] build Warning : xcodebuild[34980:372023] [MT] DVTAssertions #135277
Comments
Reproducible using the counter app. However, this seems to be a general issue with XCode 15. https://developer.apple.com/forums/thread/737923 We might have to either wait for apple to fix it or try to filter it out from the logs. Labeling for further insight from the team flutter doctor -v
|
We should definitely do this. #105685 is the general issue for doing log filtering on macOS like we do on iOS, but we may want to keep this open to ensure that when we do that we filter this specific case. |
This comment was marked as off-topic.
This comment was marked as off-topic.
We have the same problem, this spammy log make up 20% of our CI log when doing fastlane scan... 2023-10-16T06:29:55.1255290Z [06:29:55]: ▸ [35m2023-10-16 06:29:55.124 xcodebuild[97309:491966] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22267/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103[0m
2023-10-16T06:29:55.1258580Z [06:29:55]: ▸ [35mDetails: createItemModels creation requirements should not create capability item model for a capability item model that already exists.[0m
2023-10-16T06:29:55.1259610Z [06:29:55]: ▸ [35mFunction: createItemModels(for:itemModelSource:)[0m
2023-10-16T06:29:55.1260390Z [06:29:55]: ▸ [35mThread: <_NSMainThread: 0x6000027b8240>{number = 1, name = main}[0m
2023-10-16T06:29:55.1261460Z [06:29:55]: ▸ [35mPlease file a bug at https://feedbackassistant.apple.com/ with this warning message and any useful information you can provide.[0m
2023-10-16T06:29:55.1263690Z [06:29:55]: ▸ [35m2023-10-16 06:29:55.125 xcodebuild[97309:491966] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22267/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103[0m
2023-10-16T06:29:55.1266350Z [06:29:55]: ▸ [35mDetails: createItemModels creation requirements should not create capability item model for a capability item model that already exists.[0m
2023-10-16T06:29:55.1267280Z [06:29:55]: ▸ [35mFunction: createItemModels(for:itemModelSource:)[0m
2023-10-16T06:29:55.1267970Z [06:29:55]: ▸ [35mThread: <_NSMainThread: 0x6000027b8240>{number = 1, name = main}[0m
2023-10-16T06:29:55.1269010Z [06:29:55]: ▸ [35mPlease file a bug at https://feedbackassistant.apple.com/ with this warning message and any useful information you can provide.[0m
2023-10-16T06:29:55.1271190Z [06:29:55]: ▸ [35m2023-10-16 06:29:55.125 xcodebuild[97309:491966] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22267/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103[0m
2023-10-16T06:29:55.1273320Z [06:29:55]: ▸ [35mDetails: createItemModels creation requirements should not create capability item model for a capability item model that already exists.[0m
2023-10-16T06:29:55.1274380Z [06:29:55]: ▸ [35mFunction: createItemModels(for:itemModelSource:)[0m
2023-10-16T06:29:55.1275210Z [06:29:55]: ▸ [35mThread: <_NSMainThread: 0x6000027b8240>{number = 1, name = main}[0m
2023-10-16T06:29:55.1276410Z [06:29:55]: ▸ [35mPlease file a bug at https://feedbackassistant.apple.com/ with this warning message and any useful information you can provide.[0m
2023-10-16T06:29:55.1278840Z [06:29:55]: ▸ [35m2023-10-16 06:29:55.125 xcodebuild[97309:491966] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22267/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103[0m
2023-10-16T06:29:55.1281150Z [06:29:55]: ▸ [35mDetails: createItemModels creation requirements should not create capability item model for a capability item model that already exists.[0m
2023-10-16T06:29:55.1282270Z [06:29:55]: ▸ [35mFunction: createItemModels(for:itemModelSource:)[0m
2023-10-16T06:29:55.1283070Z [06:29:55]: ▸ [35mThread: <_NSMainThread: 0x6000027b8240>{number = 1, name = main}[0m
2023-10-16T06:29:55.1284110Z [06:29:55]: ▸ [35mPlease file a bug at https://feedbackassistant.apple.com/ with this warning message and any useful information you can provide.[0m On macOS 13, M1, with Xcode 15 |
|
@cliftonlabrum I randomly found this issue, I'm working on a react native project and upgrading to Xcode 15.0.1 fixed the error! |
I was working on RN app on MacOS (Sonoma) and this issue came up this morning. I'm not sure what happened, it just stopped building. If this would help anyone, this is how I fixed the problem:
The app builds now although I'm not sure if async-storage caused this problem Hope this helps anyone UPDATE |
I am also having this problem |
I'm fairly certain this is something Apple has to fix. I filed |
Same Issue |
I tried downgrading to XCode 14.3.1 but unfortunately it's not possible to install that version on MacOS Sonoma 😬 I think the only way out is by waiting for Apple to fix this 😞 |
I have the same issue. |
I'm literally just starting to learn Flutter, and hit this trying to build my first app (from Codelabs) - are we saying there's no fix for this at the moment??! i.e. I've not done anything incorrectly as such.... I've just got bad timing in trying to learn something which I can't actually run...?! The Flutter app won't even start - I just get a load of this repeated over and over again: |
@nhocking Try building for one of the other platforms for for the minute - if you want it to run on your computer compile it for web and run it in the browser :) I think everyone is frustrated by this, but given it is an Apple bug and affects all builds for MacOS (e.g. React Native too), the Flutter team has no control over it right now. But luckily for you Flutter is cross platform so you have all the other platforms to use while learning ;) |
@nhocking There might be something else going on. White I get all these spurious error messages, my macOS apps still build successfully. Maybe try starting with a fresh |
Thank you for fixing this, @cbracken! 🎉😊🙌🏼 |
Hopefully this PR gets shipped as part of a hot fix release. |
This is now resolved on |
@cliftonlabrum yes; I'll be proposing this for a hot-fix cherry pick. |
When will these fixes be available in the stable channel? |
I just upgraded to |
I have also updated to version 3.16 and the errors are still visible. Hopefully this will land in the next release. |
This did not land in time for the 3.16 cutoff - it'll be proposed as a cherry-pick. |
I'm running Channel master, 3.17.0-12.0.pre.38, on macOS 14.1.1 and still have this issue. Can't build for iOS. |
@cbracken @cliftonlabrum looks like this got missed again. Can we please add this to the next version? |
Cherry pick out here: #139284 |
As of Xcode 15 on macOS Sonoma, the following message is (repeatedly) output to stderr during builds (repros on non-Flutter apps). It is supppressed in xcode itself, but not when run from the command-line. ``` 2023-11-10 10:44:58.031 xcodebuild[61115:1017566] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22267/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103 Details: createItemModels creation requirements should not create capability item model for a capability item model that already exists. Function: createItemModels(for:itemModelSource:) Thread: <_NSMainThread: 0x6000027c0280>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. ``` This suppresses this message from stderr in our macOS build logs. Issue: flutter#135277 ## Pre-launch Checklist - [X] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [X] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [X] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [X] I signed the [CLA]. - [X] I listed at least one issue that this PR fixes in the description above. - [X] I updated/added relevant documentation (doc comments with `///`). - [X] I added new tests to check the change I am making, or this PR is [test-exempt]. - [X] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [Features we expect every widget to implement]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat
When is this fix going to be released? It still persists :( |
As of Xcode 15 on macOS Sonoma, the following message is (repeatedly) output to stderr during builds (repros on non-Flutter apps). It is supppressed in xcode itself, but not when run from the command-line. ``` 2023-11-10 10:44:58.031 xcodebuild[61115:1017566] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22267/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103 Details: createItemModels creation requirements should not create capability item model for a capability item model that already exists. Function: createItemModels(for:itemModelSource:) Thread: <_NSMainThread: 0x6000027c0280>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. ``` This suppresses this message from stderr in our macOS build logs. Issue: #135277 Cherry-pick: #139284 https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [Features we expect every widget to implement]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat *Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.* *List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.* *If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
The fix is in the master channel, and it will be in the next stable hotfix. See #139284. |
Thanks! |
Just upgraded Flutter and I can confirm that Flutter 3.16.4 fixes this issue. |
* [CP] Gold fix for stable branch (flutter#139764) Fixes flutter#139673 Cherry picks flutter#139706 to the stable branch to fix the tree. * [macOS] Suppress Xcode 15 createItemModels warning (flutter#138243) (flutter#139782) As of Xcode 15 on macOS Sonoma, the following message is (repeatedly) output to stderr during builds (repros on non-Flutter apps). It is supppressed in xcode itself, but not when run from the command-line. ``` 2023-11-10 10:44:58.031 xcodebuild[61115:1017566] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22267/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103 Details: createItemModels creation requirements should not create capability item model for a capability item model that already exists. Function: createItemModels(for:itemModelSource:) Thread: <_NSMainThread: 0x6000027c0280>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. ``` This suppresses this message from stderr in our macOS build logs. Issue: flutter#135277 Cherry-pick: flutter#139284 https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [Features we expect every widget to implement]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat *Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.* *List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.* *If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].* * [CP] have `Java.version` return null if `java --version` fails or cannot be run (flutter#139698) cherry-picks changes from flutter#139614 onto the stable channel * [CP] Catch error for missing directory in `FontConfigManager` (flutter#138496) (flutter#139743) Closes: - flutter#138434 We will catch any errors while attempting to clear the temp directories that don't exist for the `FontConfigManager` class --------- Co-authored-by: Kate Lovett <katelovett@google.com> Co-authored-by: Chris Bracken <chris@bracken.jp> Co-authored-by: Andrew Kolos <andrewrkolos@gmail.com> Co-authored-by: Elias Yishak <42216813+eliasyishak@users.noreply.github.com>
Thank you all for the discussion and attempts, |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to reproduce
flutter build macos
counter app
Expected results
without this warning
Actual results
Code sample
Code sample
Screenshots or Video
Screenshots
Logs
Logs
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: