Warning `The operation requires a selected developer portal team.` with xcodebuild

Originator:michaelhochs
Number:rdar://29286980 Date Originated:16-Nov-2016 01:41 PM
Status:Duplicate of 27306074 (Closed) Resolved:
Product:Developer Tools Product Version:Xcode 8.1
Classification:Other Bug Reproducible:Sometimes
 
Summary:
When using xcodebuild or any tool that is build on top of this (e.g. fastlane), there are warnings generated as soon as an AppGroup is used in the app that is build.

Steps to Reproduce:
- Create an app that uses app groups
- Build it through jenkins / fastlane / anything that uses xcodebuild under the hood

Expected Results:
There are no warnings generated.

Actual Results:
This warning shows up multiple times:
2016-11-16 03:36:01.811 xcodebuild[89590:15205302] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-11527/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/ProjectModel/Capabilities/Xcode3TargetCapabilitiesContext.m:292
Details:  Failed to expand identifiers "{(
    "group.viewer.inbox"
)}": Error Domain=IDECapabilitiesErrorDomain Code=1 "The operation requires a selected developer portal team." UserInfo={NSLocalizedDescription=The operation requires a selected developer portal team., NSLocalizedRecoverySuggestion=}
Object:   <Xcode3TargetCapabilitiesContext: 0x7fae05c88ba0>
Method:   -_appIDFeatureStateIncludingEntitlements:
Thread:   <NSThread: 0x7fadfd413bd0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

Regression:

Notes:
Issues on the Internet that seem related to this one:
- https://forums.developer.apple.com/thread/63625
- https://github.com/fastlane/fastlane/issues/5163
- https://github.com/fastlane/fastlane/issues/6149
- https://github.com/fastlane/fastlane/issues/6133

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!