Hello,
I'm developing with Group Activities, my app builds and run successfully on Debug. But when I switch to Release, I get many errors:
SharePlay.swift:21:19: Cannot find type 'GroupActivityMetadata' in scope
SharePlay.swift:12:30: Cannot find type 'GroupActivity' in scope
SharePlay.swift:55:30: Cannot find 'GroupStateObserver' in scope
SharePlay.swift:78:23: Cannot find type 'GroupSession' in scope
SharePlay.swift:79:20: Cannot find type 'GroupSessionMessenger' in scope
SharePlay.swift:98:31: Cannot find type 'GroupSession' in scope
SharePlay.swift:22:24: Cannot find 'GroupActivityMetadata' in scope
SharePlay.swift:24:26: Cannot infer contextual base in reference to member 'generic'
SharePlay.swift:64:55: Type 'GenericGroupActivity' has no member 'sessions'
SharePlay.swift:82:29: 'nil' requires a contextual type
SharePlay.swift:83:26: 'nil' requires a contextual type
SharePlay.swift:89:31: Type of expression is ambiguous without more context
SharePlay.swift:101:25: Cannot find 'GroupSessionMessenger' in scope
SharePlay.swift:103:45: Unable to infer type of a closure parameter 'state' in the current context
SharePlay.swift:110:49: Unable to infer type of a closure parameter 'activity' in the current context
SharePlay.swift:115:49: Tuple pattern cannot match values of non-tuple type '_'
SharePlay.swift:138:31: Type of expression is ambiguous without more context
SharePlay.swift:143:59: Value of type 'GenericGroupActivity' has no member 'prepareForActivation'
SharePlay.swift:144:40: Value of type 'GenericGroupActivity' has no member 'activate'
SharePlay.swift:148:32: Value of type 'GenericGroupActivity' has no member 'activate'
SharePlay.swift:152:31: Type of expression is ambiguous without more context
SharePlay.swift:158:28: Type of expression is ambiguous without more context
SharePlay.swift:164:31: Type of expression is ambiguous without more context
SharePlay.swift:170:31: Type of expression is ambiguous without more context
It looks like the compiler in Release doesn't find the GroupActivity framework...
- XCode 13.1
- swift-driver version: 1.26.9 Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6) Target: x86_64-apple-macosx11.0
- The code that triggers these errors can be found here. I could reproduce this with the example project
Did you encounter this problem?
Thanks