I have been having this error:
could not attach to pid
From Xcode for about 3 days now. The weird thing is during the 3 weeks it got me to finish this project I have had no issues with running the project on the simulator, but after I successfully added provisioning profile I have been having this issue.
I have tried all other solutions posted on here and other forums but all don't seem to work for me. I am using Xcode 8.1 and macOS Sierra.
After a painstaking research i discovered the whole error started from when the code refused to compile after adding facebook sdk, so i changed the mach-o type to dynamic libraries thats when the code compiled but now refused to attach to emulator so i reveresed my actions and got the normal compile error i was getting before which was a Arch-64 error so i added that architecture to my target and problem solved.