Invalid Bundle. The bundle at 'Foo.framework' contains disallowed file 'Frameworks'

In our project setup we have Main App and our code base is divided into Module using Framework, Recently in one of our framework we write some code using swift async-await API. After that

We got this error while uploading to TestFlight

Invalid Bundle. The bundle at 'Foo.framework' contains disallowed file 'Frameworks'. With error code STATE_ERROR.VALIDATION_ERROR.90206 for id 6822222-72fc-4820-0000-b1f8411d4f04

From stackoverflow we resolved issue by doing following things previously it was YES and working fine

ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;

Now our build Successfully uploaded to TestFlight and in apple review we got this comment from apple team and they rejected app

Did you try to do what they request ? However, it is surprising they speak of GM, those versions are now named RC. Which version of Xcode did you use for your build ?

We created build using XCode 13.4 (public stable version) and out 10 builds went properly using same Xcode version, they only new things is async-await code

how did you fix this issue?

Invalid Bundle. The bundle at 'Foo.framework' contains disallowed file 'Frameworks'
 
 
Q