I am getting the following error after migrating from one mac to another using time machine.
Could not attach to pid
Ensure "project title"
You can try some following steps -
Keychain certificates and delete the existing ones which are expired.
automatically manage sign in from Xcode project settings.cmd+kRestart the project and Run...I hope it will work.
You can do this following steps -
Kill your simulator and then run it again from Xcode.
If you are trying to build too fast after a build has started. Try stopping and running the project again.
This can be a issue with the untrusted certificates in key-chain access, please remove such a type of certificates and re-build again.
Finally, you can do is recheck the Keychain certificates. Delete the exiting ones by right clicking (they'd passed expiration)
and unchecked "automatically manage signing" in Targets->General
Hope above steps will solve your problem.
After opening a bug report to Apple, they suggested me to:
groups command. it was the case. Use this command: dscacheutil -q groupsudo /usr/sbin/DevToolsSecurity -status. The status was unknown for me.sudo /usr/sbin/DevToolsSecurity -enable. This solved finally my issue!Haven't seen this exact error, but I've found removing the derived data helps fix some transient errors that pop up after updates etc.
You can find the location of your derived data folder in Xcode.
Open preferences/locations and click the arrow.
Once in derived data you can remove all the folders.
FYI after deleting the derived data folder all your projects will need to be rebuilt.
Hope this helps!
If you have Mojave OS then:
1) Open your target scheme
2) Uncheck this one
3) Select this scheme while testing this target (ex. Testing "TestApiTarget" - select "TestApiTarget" in schemes on tests).
Its temporary solution from bug report
I was able to resolve this issue by:
Single View App target (I named it HostApp)HostApp target as a host application for test target