the project icon which we see i.e project-name.xcodeproj, is actually a directory, you do this
1. in terminal do cd your project.xcodeproj
in the image if you see the first section is missing container portal key.just pic it from other section and replace it.. it will work
A pat on the back !!