我在保存快照后对情节提要进行了更改,现在我的更改在编译代码时不会反映出来。我做错了什么?
我正在一个项目中使用 xcode 4.2。我在项目创建时启用了本地 git 存储库,但没有使用快照。我决定进行一项我不确定是否要保留的更改,因此我在更改代码之前存储了一个快照。
进行更改后,正在运行的应用程序在模拟器中似乎没有变化。故事板已更改,用其他组件替换了某些组件,而这些更改甚至没有反映出来。
我已经尝试多次提交该项目,并且似乎每次都喜欢重新提交我的用户首选项文件,但是我无法让它提交故事板更改。
有人遇到过这种情况吗?我错过了什么吗?
I'm working with xcode 4.2 on a project. I enabled the local git repository on project creation, but hadn't been using snapshots. I decided to make a change that I wasn't sure I wanted to keep, so I stored a snapshot prior to making the code changes.
After making the changes, the running application seems unchanged in the simulator. The storyboard has changed, replacing some components with others, and these changes aren't even reflected.
I've tried committing the project several times, and it seems to like to recommit my user prefs file each time, however I can't get it to commit the storyboard changes.
Has anyone encountered this? Am I missing something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我注意到 XCode 4.5 上的一个错误,当重命名故事板时,它会及时冻结。此后的任何更改都不会在运行时反映出来,甚至不会进行干净构建,甚至不会从模拟器或设备中删除应用程序。
我将故事板重命名为旧名称(MainStoryBoard),突然间我所有的更改都得到了反映。
I've noticed a bug on XCode 4.5, when renaming the storyboard, it gets kind of frozen in time. Any changes after that wont reflect at runtime, not even doing a Clean Build or even removing the app from the simulator or device.
I renamed my storyboard to the old name (MainStoryBoard) and suddenly all my changes were reflected.
试试这个,它对我有用。
Try this it worked for me.
您需要清理构建文件夹。 Command-Option-Shift-K 即可完成。
You need to clean out the build folder. Command-Option-Shift-K does it.