为什么Xcode在iOS模拟器和设备上运行我的项目的旧版本?

时间:2023-01-17 09:36:17

When running Xcode shows older version of the project both on iOS simulator and iOS Device! It never shows the new background picture I have added although it's there in the storyboard and saved!

运行Xcode时,在iOS模拟器和iOS设备上显示项目的旧版本!它从未显示我添加的新背景图片,尽管它在故事板中存在并保存!

I tried cleaning the project even with the option key pressed but still! I have localizations and it was working well!

即使按下选项键,我也尝试清洁项目但仍然!我有本地化,它运作良好!

What could it be? Where is the problem? I tried searching but I ran out of terms and still no effective results.

会是什么呢?问题出在哪儿?我尝试过搜索,但是我用完了条款,但仍然没有有效的结果。

2 个解决方案

#1


2  

Sometimes apps get "stuck" in the simulator. Try deleting it (long press, then click the "x") and then check ~/Library/Application Support/iPhone Simulator/[ios version]/Applications to see if it still exists. If it does, just delete it.

有时应用程序会在模拟器中“卡住”。尝试删除它(长按,然后单击“x”),然后检查〜/ Library / Application Support / iPhone Simulator / [ios version] / Applications以查看它是否仍然存在。如果是,请删除它。

You can also try iOS Simulator > Reset Content and Settings....

您还可以尝试iOS模拟器>重置内容和设置....

#2


1  

I had a similar issue where an old storyboard were used on device instead of the most updated one I was working on.

我有一个类似的问题,在设备上使用旧的故事板而不是我正在处理的最新的故事板。

The problem was due to the localization, I had my storyboard localized in 2 different languages and the device were using the storyboard localized in an other language than the default one which was somehow outdated.
Hope it helps.

问题是由于本地化,我将故事板本地化为2种不同的语言,并且设备使用的故事板本地化为另一种语言,而不是默认的过时的语言。希望能帮助到你。

#1


2  

Sometimes apps get "stuck" in the simulator. Try deleting it (long press, then click the "x") and then check ~/Library/Application Support/iPhone Simulator/[ios version]/Applications to see if it still exists. If it does, just delete it.

有时应用程序会在模拟器中“卡住”。尝试删除它(长按,然后单击“x”),然后检查〜/ Library / Application Support / iPhone Simulator / [ios version] / Applications以查看它是否仍然存在。如果是,请删除它。

You can also try iOS Simulator > Reset Content and Settings....

您还可以尝试iOS模拟器>重置内容和设置....

#2


1  

I had a similar issue where an old storyboard were used on device instead of the most updated one I was working on.

我有一个类似的问题,在设备上使用旧的故事板而不是我正在处理的最新的故事板。

The problem was due to the localization, I had my storyboard localized in 2 different languages and the device were using the storyboard localized in an other language than the default one which was somehow outdated.
Hope it helps.

问题是由于本地化,我将故事板本地化为2种不同的语言,并且设备使用的故事板本地化为另一种语言,而不是默认的过时的语言。希望能帮助到你。