Git Product home page Git Product logo

Comments (6)

sleeve avatar sleeve commented on July 17, 2024

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

from ios-empty-application-xcode-template.

farshadmb avatar farshadmb commented on July 17, 2024

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

from ios-empty-application-xcode-template.

SonglinYu1230 avatar SonglinYu1230 commented on July 17, 2024

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.

from ios-empty-application-xcode-template.

farshadmb avatar farshadmb commented on July 17, 2024

@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>

from ios-empty-application-xcode-template.

SonglinYu1230 avatar SonglinYu1230 commented on July 17, 2024

@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?

from ios-empty-application-xcode-template.

farshadmb avatar farshadmb commented on July 17, 2024

@SonglinYu1230 xcode 14.4 and montary

from ios-empty-application-xcode-template.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.