且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Xcode 4.2 中禁用 CoreData 的无逆关系警告?

更新时间:2022-06-17 00:37:25

In XCode 567,您仍然可以设置变量.

In XCode 5, 6 and 7, you can still set the variable.

  1. 导航到构建设置

  1. Navigate to Build Settings

A.在项目导航器下的左侧栏中选择您的项目.

A. Select your project on the left side bar under Project Navigator.

B.选择构建设置"选项卡.

B. Select the "Build Settings" tab.

查找并设置MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS

A.选择主屏幕左上角的全部".

A. Select 'All' in the upper left of the main screen.

B.通过将键粘贴到搜索栏中来搜索 MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS.

B. Search for MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS by pasting the key into the search bar.

C.将值更改为 YES.

C. Change value to YES.

再次构建,警告消失了.

Build again and the warnings are gone.

****编辑****

感谢@RajTandel 的评论.如果您仍然看到警告,请重新启动 Xcode,警告就会消失.

Thanks @RajTandel for the comment. If you still see the warnings, restart Xcode and the warnings should go away.