XcodeGen icon indicating copy to clipboard operation
XcodeGen copied to clipboard

Organization name in config file

Open jasesuperhero opened this issue 8 years ago • 5 comments

When I regenerate project, i dont have organization name in my xcproject settings. Can I set organization name, prefix, and identity size with xcodegen spec?

jasesuperhero avatar Jul 10 '18 06:07 jasesuperhero

@yonaskolb, what about this feature?

jasesuperhero avatar Jul 12 '18 10:07 jasesuperhero

@jasesuperhero as far as I understand the organisation name and bundle prefix aren't stored in a specific project, but instead are stored against your whole user within Xcode. If you can find somewhere in the .xcodeproj that this is stored, let me know

yonaskolb avatar Jul 12 '18 10:07 yonaskolb

@yonaskolb we have this attribute in this section of pbxproj file:

/* Begin PBXProject section */
		83CBB9F71A601CBA00E9B192 /* Project object */ = {
			isa = PBXProject;
			attributes = {
				CLASSPREFIX = SO;
				ORGANIZATIONNAME = SomeOrganization;
				...
			};
			...
		};
/* End PBXProject section */

jasesuperhero avatar Jul 12 '18 12:07 jasesuperhero

Ah ok. Yeah you can use attributes for that:

name: MyProject
attributes:
  CLASSPREFIX: SO
  ORGANIZATIONNAME: SomeOrganization

yonaskolb avatar Jul 12 '18 12:07 yonaskolb

Thanks! 😄 We can add this to example in project spec! It's not trivial. What do you think?

jasesuperhero avatar Jul 12 '18 13:07 jasesuperhero