Move code-signing to minimal xcconfig file.

Code signing is disabled for macOS. Users are instructed to update the
development team when they fork or clone the repo, if they want to
target iOS.

Co-authored-by: Fahim Farook <fahimf@gmail.com>
pull/11/head
Pedro Cuenca 2 years ago
parent b66ca88562
commit 7e9956725b

@ -44,6 +44,7 @@
EB33A51E2954E1BC00B16357 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
EBB5BA5229425BEE003A2A5B /* PipelineLoader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PipelineLoader.swift; sourceTree = "<group>"; };
EBB5BA5929426E06003A2A5B /* Downloader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Downloader.swift; sourceTree = "<group>"; };
EBE3FF4A295DFE2400E921AA /* common.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = common.xcconfig; path = config/common.xcconfig; sourceTree = "<group>"; };
EBE4438729488DCA00CDA605 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
EBE443892948953600CDA605 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
EBE755C5293E37DD00806B32 /* Diffusion.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Diffusion.app; sourceTree = BUILT_PRODUCTS_DIR; };
@ -101,6 +102,7 @@
EBE755BC293E37DD00806B32 = {
isa = PBXGroup;
children = (
EBE3FF4A295DFE2400E921AA /* common.xcconfig */,
EBE4438729488DCA00CDA605 /* README.md */,
EBE443892948953600CDA605 /* LICENSE */,
EBE755FF293E910800806B32 /* Packages */,
@ -478,6 +480,7 @@
};
EBE755EB293E37DE00806B32 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = EBE3FF4A295DFE2400E921AA /* common.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
@ -485,7 +488,6 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"Diffusion/Preview Content\"";
DEVELOPMENT_TEAM = ZWDJQ796RU;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
@ -519,6 +521,7 @@
};
EBE755EC293E37DE00806B32 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = EBE3FF4A295DFE2400E921AA /* common.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
@ -526,7 +529,6 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"Diffusion/Preview Content\"";
DEVELOPMENT_TEAM = ZWDJQ796RU;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;

@ -16,6 +16,10 @@ For faster inference, we use a very fast scheduler: [DPM-Solver++](https://githu
* ~10s in macOS on MacBook Pro M1 Max (64 GB).
* ~1 min 15s in iPhone 14 Pro.
## How to Build
If you clone or fork this repo, please update `common.xcconfig` with your development team identifier. Code signing is required to run on iOS, but it's currently disabled for macOS.
## Limitations
- The UI does not expose a way to configure the scheduler, number of inference steps, or generation seed. These are all available in the underlying code.

@ -0,0 +1,15 @@
//
// common.xcconfig
// Diffusion
//
// Created by Pedro Cuenca on 202212.
//
// Configuration settings file format documentation can be found at:
// https://help.apple.com/xcode/#/dev745c5c974
// Update if you fork this repo
DEVELOPMENT_TEAM = ZWDJQ796RU
// Disable code-signing for macOS
CODE_SIGN_IDENTITY[sdk=macos*] =
Loading…
Cancel
Save