Xcode13 显示Product文件夹[旧工程的解决方案]

最近更新了xcode13.4,每次打开工程都找不到熟悉的Products,还要在菜单里找来找去,浪费时间。于是决定手动修一修这个诡异的问题。

先是右键xxx.xcodeproj选择显示内容(Show packages contents)

将project.pbxproj放到编辑器里面。查找mainGroup

mainGroup = 1EE5A27E1828F54D008xxxx;

继续找mainGroup的值1EE5A27E1828F54D008xxxx;


		1EE5A27E1828F54D008Axxxx = {
			isa = PBXGroup;
			children = (
				1E8CAFEA1B21716600DEF27D /* */,
				1EC224CF19E6417100DAF93D /* */,
				1E55A2371862FD8400954247 /* */,
				1EE5A5B41828FBBB008AA8E3 /* */,
				1EF560F51CB3C368006076A5 /* */,
				1EE5A5731828F89D008AA8E3 /* Quartz.framework */,
				1EE5A5711828F896008AA8E3 /* Carbon.framework */,
				1EE5A56F1828F878008AA8E3 /* WebKit.framework */,
				1EE5A2AD1828F807008AA8E3 /* Classes */,
				1EE5A2AA1828F63F008AA8E3 /* */,
				1E5D90CC19160DEC00E68D56 /* */,
				1EE5A2AB1828F640008AA8E3 /* */,
				1EE5A2931828F54D008AA8E3 /* */,
				1E3F590F196BD46F005C918D /* */,
				1EA688B71A106FD100CAE72B /* */,
				1E422B3E1B6227A700753338 /* */,
				1EE5A5B61828FE89008AA8E3 /* Resources */,
				1EE5A28C1828F54D008AA8E3 /* Frameworks */,
				1EE5A28A1828F54D008AA8E3 /* Products */,
			);
			sourceTree = "";
		};

将products上移一行

		1EE5A27E1828F54D008Axxxx = {
			isa = PBXGroup;
			children = (
				1E8CAFEA1B21716600DEF27D /* */,
				1EC224CF19E6417100DAF93D /* */,
				1E55A2371862FD8400954247 /* */,
				1EE5A5B41828FBBB008AA8E3 /* */,
				1EF560F51CB3C368006076A5 /* */,
				1EE5A5731828F89D008AA8E3 /* Quartz.framework */,
				1EE5A5711828F896008AA8E3 /* Carbon.framework */,
				1EE5A56F1828F878008AA8E3 /* WebKit.framework */,
				1EE5A2AD1828F807008AA8E3 /* Classes */,
				1EE5A2AA1828F63F008AA8E3 /* */,
				1E5D90CC19160DEC00E68D56 /* */,
				1EE5A2AB1828F640008AA8E3 /* */,
				1EE5A2931828F54D008AA8E3 /* */,
				1E3F590F196BD46F005C918D /* */,
				1EA688B71A106FD100CAE72B /* */,
				1E422B3E1B6227A700753338 /* */,
				1EE5A5B61828FE89008AA8E3 /* Resources */,
				1EE5A28A1828F54D008AA8E3 /* Products */,
				1EE5A28C1828F54D008AA8E3 /* Frameworks */,
			);
			sourceTree = "";
		};

保存project.pbxproj,重新打开。就可以看到熟悉是身影了。

如果mainGroup没有Products这个字段,可以将productRefGroup的值复制进来,记得不要放在最后一项。

你可能感兴趣的:(Oject,C/Cocoa,Xcode,xcode13,products)