ios-empty-application-xcode-template icon indicating copy to clipboard operation
ios-empty-application-xcode-template copied to clipboard

Update icon for Xcode 13

Open sleeve opened this issue 4 years ago • 6 comments

The custom template icon that has matched the Xcode 8-12 design language needs to be updated for the new Xcode 13 design.

Screen Shot 2021-07-09 at 1 22 23 PM

sleeve avatar Jul 09 '21 20:07 sleeve

Project templates may no longer use raster icon images? Try adding this snippet (taken from Xcode-beta.app > Developer > Library > Xcode > Templates > Project Templates > Other > Empty.xctemplate > TemplateInfo.plist) to the custom template.

	<key>Image</key>
	<dict>
		<key>SystemSymbolName</key>
		<string>square.dashed</string>
	</dict>

Current Xcode 12.4 -> New Project example screenshots for some other references: Screen Shot 2021-07-10 at 10 40 36 AM Screen Shot 2021-07-10 at 10 40 48 AM

sleeve avatar Jul 10 '21 17:07 sleeve

add <string>com.apple.dt.unit.base_AppLifecycle_Cocoa</string> into Ancestors and get rid of swift ui 😄

farshadmb avatar Feb 03 '23 14:02 farshadmb

add <string>com.apple.dt.unit.base_AppLifecycle_Cocoa</string> into Ancestors and get rid of swift ui 😄

@farshadmb You mean create an Application without ContentView.swift? I tried it, but it didn't work on myside. ContentView always appeared in Project.

SonglinYu1230 avatar Sep 26 '23 10:09 SonglinYu1230

@SonglinYu1230

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Kind</key>
	<string>Xcode.Xcode4.ProjectTemplateUnitKind</string>
	<key>Identifier</key>
	<string>com.apple.dt.unit.emptyApplication</string>
	<key>Ancestors</key>
	<array>
		<string>com.apple.dt.unit.cocoaTouchApplicationBase</string>
		<string>com.apple.dt.unit.coreDataCocoaTouchApplication</string>
	</array>
	<key>Concrete</key>
	<true/>
	<key>Description</key>
	<string>This template provides a starting point for any application. It provides just an application delegate and a window.</string>
	<key>Options</key>
	<array>
		<dict>
			<key>Identifier</key>
			<string>languageChoice</string>
			<key>Units</key>
			<dict>
				<key>Objective-C</key>
				<dict>
					<key>Definitions</key>
					<dict>
						<key>AppDelegate.m:implementation:methods:applicationdidFinishLaunchingWithOptions:body</key>
						<string>// Override point for customization after application launch.
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor cyanColor];</string>
						<key>AppDelegate.m:implementation:methods:applicationdidFinishLaunchingWithOptions:return</key>
						<string>self.window.rootViewController = [[UIViewController alloc] init];
[self.window makeKeyAndVisible];

return YES;
</string>
					</dict>
				</dict>
				<key>Swift</key>
				<dict>
					<key>Definitions</key>
					<dict>
						<key>AppDelegate.swift:implementation:methods:applicationdidFinishLaunchingWithOptions:body</key>
						<string>// Override point for customization after application launch.
window = UIWindow()
window?.backgroundColor = UIColor.cyan</string>
						<key>AppDelegate.swift:implementation:methods:applicationdidFinishLaunchingWithOptions:return</key>
						<string>window?.rootViewController = UIViewController()
window?.makeKeyAndVisible()

return true
</string>
					</dict>
				</dict>
			</dict>
		</dict>
	</array>
</dict>
</plist>

farshadmb avatar Sep 27 '23 06:09 farshadmb

@farshadmb Empty Application Template disappeared when create New Project after using the plist you provided, the main difference is Xcode.Xcode3.ProjectTemplateUnitKind replaced by Xcode.Xcode4.ProjectTemplateUnitKind. I'm using Xcode 15.0 on Ventura 13.5.2, kindly ask which Xcode & macOS you're using?

SonglinYu1230 avatar Sep 28 '23 05:09 SonglinYu1230

@SonglinYu1230 xcode 14.4 and montary

farshadmb avatar Oct 02 '23 21:10 farshadmb