Do below steps,
The apps installed in the simulator could have become inconsistent.
Resetting the Content and Settings will solve the issue.
Also try to clear Derived Data then clean and build the project.
In my case the Build number was wrong. So in the Info.plist the Build number disappeared, it was blank.
To fix this, I had to re-enter the build number. Delete the app from the simulator Then when I built the app it installed again on the Simulator and started to work fine in subsequent builds as well.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.