简体   繁体   中英

Why does Xcode simulator show the same app twice?

I quit Xcode and then a day later opened the same project up. Pulled some changes from a remote repository. When I ran the app on the same simulator that I used before, two app icons show up.

One app seems to have the latest changes from git while the other doesn't. How could this have happened?

I'm on version 11.5 of Xcode.

The Bundle Identifier of the app must have changed when you pulled the latest commit.

在此处输入图像描述

Whenever you run your app, Xcode first reinstalls the app on the Simulator. If an app with the same Bundle ID already exists on the Simulator, then it is replaced, which is why you don't see a new app every time you click "Run". However, since the Bundle ID changed to something new, the old app is not replaced.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM