Skip to content

Commit 0091ed9

Browse files
authored
Add a new build configuration for profiling which uses release build settings but development code signing (#520)
1 parent 17d17e9 commit 0091ed9

File tree

2 files changed

+210
-1
lines changed

2 files changed

+210
-1
lines changed

StreamChatSwiftUI.xcodeproj/project.pbxproj

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2974,6 +2974,209 @@
29742974
/* End PBXVariantGroup section */
29752975

29762976
/* Begin XCBuildConfiguration section */
2977+
4F4562F82C2462BE00675C7F /* Profile */ = {
2978+
isa = XCBuildConfiguration;
2979+
buildSettings = {
2980+
ALWAYS_SEARCH_USER_PATHS = NO;
2981+
CLANG_ANALYZER_NONNULL = YES;
2982+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
2983+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
2984+
CLANG_CXX_LIBRARY = "libc++";
2985+
CLANG_ENABLE_MODULES = YES;
2986+
CLANG_ENABLE_OBJC_ARC = YES;
2987+
CLANG_ENABLE_OBJC_WEAK = YES;
2988+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
2989+
CLANG_WARN_BOOL_CONVERSION = YES;
2990+
CLANG_WARN_COMMA = YES;
2991+
CLANG_WARN_CONSTANT_CONVERSION = YES;
2992+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
2993+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
2994+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
2995+
CLANG_WARN_EMPTY_BODY = YES;
2996+
CLANG_WARN_ENUM_CONVERSION = YES;
2997+
CLANG_WARN_INFINITE_RECURSION = YES;
2998+
CLANG_WARN_INT_CONVERSION = YES;
2999+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
3000+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
3001+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
3002+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
3003+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
3004+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
3005+
CLANG_WARN_STRICT_PROTOTYPES = YES;
3006+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
3007+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
3008+
CLANG_WARN_UNREACHABLE_CODE = YES;
3009+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
3010+
COPY_PHASE_STRIP = NO;
3011+
CURRENT_PROJECT_VERSION = 1;
3012+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
3013+
ENABLE_NS_ASSERTIONS = NO;
3014+
ENABLE_STRICT_OBJC_MSGSEND = YES;
3015+
GCC_C_LANGUAGE_STANDARD = gnu11;
3016+
GCC_NO_COMMON_BLOCKS = YES;
3017+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
3018+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
3019+
GCC_WARN_UNDECLARED_SELECTOR = YES;
3020+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
3021+
GCC_WARN_UNUSED_FUNCTION = YES;
3022+
GCC_WARN_UNUSED_VARIABLE = YES;
3023+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
3024+
MTL_ENABLE_DEBUG_INFO = NO;
3025+
MTL_FAST_MATH = YES;
3026+
SDKROOT = iphoneos;
3027+
SWIFT_COMPILATION_MODE = wholemodule;
3028+
SWIFT_OPTIMIZATION_LEVEL = "-O";
3029+
VALIDATE_PRODUCT = YES;
3030+
VERSIONING_SYSTEM = "apple-generic";
3031+
VERSION_INFO_PREFIX = "";
3032+
};
3033+
name = Profile;
3034+
};
3035+
4F4562F92C2462BE00675C7F /* Profile */ = {
3036+
isa = XCBuildConfiguration;
3037+
buildSettings = {
3038+
CLANG_ENABLE_MODULES = YES;
3039+
CODE_SIGN_STYLE = Manual;
3040+
CURRENT_PROJECT_VERSION = 1;
3041+
DEFINES_MODULE = YES;
3042+
DEVELOPMENT_TEAM = "";
3043+
DYLIB_COMPATIBILITY_VERSION = 1;
3044+
DYLIB_CURRENT_VERSION = 1;
3045+
DYLIB_INSTALL_NAME_BASE = "@rpath";
3046+
GENERATE_INFOPLIST_FILE = NO;
3047+
INFOPLIST_FILE = Sources/StreamChatSwiftUI/Info.plist;
3048+
INFOPLIST_KEY_NSHumanReadableCopyright = "";
3049+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
3050+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
3051+
LD_RUNPATH_SEARCH_PATHS = (
3052+
"$(inherited)",
3053+
"@executable_path/Frameworks",
3054+
"@loader_path/Frameworks",
3055+
);
3056+
MARKETING_VERSION = 4.8.0;
3057+
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.StreamChatSwiftUI;
3058+
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
3059+
PROVISIONING_PROFILE_SPECIFIER = "";
3060+
SKIP_INSTALL = YES;
3061+
SUPPORTS_MACCATALYST = NO;
3062+
SWIFT_EMIT_LOC_STRINGS = YES;
3063+
SWIFT_VERSION = 5.0;
3064+
TARGETED_DEVICE_FAMILY = "1,2";
3065+
};
3066+
name = Profile;
3067+
};
3068+
4F4562FA2C2462BE00675C7F /* Profile */ = {
3069+
isa = XCBuildConfiguration;
3070+
buildSettings = {
3071+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
3072+
CLANG_ENABLE_MODULES = YES;
3073+
CODE_SIGN_STYLE = Automatic;
3074+
CURRENT_PROJECT_VERSION = 1;
3075+
DEVELOPMENT_TEAM = EHV7XZLAHA;
3076+
GENERATE_INFOPLIST_FILE = YES;
3077+
LD_RUNPATH_SEARCH_PATHS = (
3078+
"$(inherited)",
3079+
"@executable_path/Frameworks",
3080+
"@loader_path/Frameworks",
3081+
);
3082+
MARKETING_VERSION = 1.0;
3083+
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.StreamChatSwiftUITests;
3084+
PRODUCT_NAME = "$(TARGET_NAME)";
3085+
SWIFT_EMIT_LOC_STRINGS = NO;
3086+
SWIFT_OBJC_BRIDGING_HEADER = "StreamChatSwiftUITests/StreamChatSwiftUITests-Bridging-Header.h";
3087+
SWIFT_VERSION = 5.0;
3088+
TARGETED_DEVICE_FAMILY = "1,2";
3089+
};
3090+
name = Profile;
3091+
};
3092+
4F4562FB2C2462BE00675C7F /* Profile */ = {
3093+
isa = XCBuildConfiguration;
3094+
buildSettings = {
3095+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
3096+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
3097+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
3098+
CODE_SIGN_ENTITLEMENTS = DemoAppSwiftUI/DemoAppSwiftUI.entitlements;
3099+
CODE_SIGN_IDENTITY = "Apple Development";
3100+
CODE_SIGN_STYLE = Automatic;
3101+
CURRENT_PROJECT_VERSION = 57;
3102+
DEVELOPMENT_ASSET_PATHS = "\"DemoAppSwiftUI/Preview Content\"";
3103+
DEVELOPMENT_TEAM = EHV7XZLAHA;
3104+
ENABLE_PREVIEWS = YES;
3105+
GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1";
3106+
GENERATE_INFOPLIST_FILE = NO;
3107+
INFOPLIST_FILE = DemoAppSwiftUI/Info.plist;
3108+
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
3109+
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
3110+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
3111+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
3112+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
3113+
LD_RUNPATH_SEARCH_PATHS = (
3114+
"$(inherited)",
3115+
"@executable_path/Frameworks",
3116+
);
3117+
MARKETING_VERSION = 4.57.0;
3118+
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.DemoAppSwiftUI;
3119+
PRODUCT_NAME = "$(TARGET_NAME)";
3120+
PROVISIONING_PROFILE_SPECIFIER = "";
3121+
SWIFT_EMIT_LOC_STRINGS = YES;
3122+
SWIFT_VERSION = 5.0;
3123+
TARGETED_DEVICE_FAMILY = "1,2";
3124+
};
3125+
name = Profile;
3126+
};
3127+
4F4562FC2C2462BE00675C7F /* Profile */ = {
3128+
isa = XCBuildConfiguration;
3129+
buildSettings = {
3130+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
3131+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
3132+
CODE_SIGN_ENTITLEMENTS = StreamChatSwiftUITestsApp/StreamChatSwiftUITestsApp.entitlements;
3133+
CODE_SIGN_STYLE = Automatic;
3134+
CURRENT_PROJECT_VERSION = 1;
3135+
DEVELOPMENT_ASSET_PATHS = "\"StreamChatSwiftUITestsApp/Preview Content\"";
3136+
DEVELOPMENT_TEAM = EHV7XZLAHA;
3137+
ENABLE_PREVIEWS = YES;
3138+
GENERATE_INFOPLIST_FILE = YES;
3139+
INFOPLIST_FILE = StreamChatSwiftUITestsApp/Info.plist;
3140+
INFOPLIST_KEY_CFBundleDisplayName = "Chat SwiftUI Tests";
3141+
INFOPLIST_KEY_NSCameraUsageDescription = "We need access to your camera for sending photo attachments.";
3142+
INFOPLIST_KEY_NSPhotoLibraryUsageDescription = "Access to your photo library is needed for attaching photos.";
3143+
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
3144+
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
3145+
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
3146+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
3147+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
3148+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
3149+
LD_RUNPATH_SEARCH_PATHS = (
3150+
"$(inherited)",
3151+
"@executable_path/Frameworks",
3152+
);
3153+
MARKETING_VERSION = 1.0;
3154+
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.StreamChatSwiftUITestsApp;
3155+
PRODUCT_NAME = "$(TARGET_NAME)";
3156+
SWIFT_EMIT_LOC_STRINGS = YES;
3157+
SWIFT_VERSION = 5.0;
3158+
TARGETED_DEVICE_FAMILY = "1,2";
3159+
};
3160+
name = Profile;
3161+
};
3162+
4F4562FD2C2462BE00675C7F /* Profile */ = {
3163+
isa = XCBuildConfiguration;
3164+
buildSettings = {
3165+
CODE_SIGN_STYLE = Automatic;
3166+
CURRENT_PROJECT_VERSION = 1;
3167+
DEVELOPMENT_TEAM = EHV7XZLAHA;
3168+
GENERATE_INFOPLIST_FILE = YES;
3169+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
3170+
MARKETING_VERSION = 1.0;
3171+
PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.StreamChatSwiftUITestsAppTests;
3172+
PRODUCT_NAME = "$(TARGET_NAME)";
3173+
SWIFT_EMIT_LOC_STRINGS = NO;
3174+
SWIFT_VERSION = 5.0;
3175+
TARGETED_DEVICE_FAMILY = "1,2";
3176+
TEST_TARGET_NAME = StreamChatSwiftUITestsApp;
3177+
};
3178+
name = Profile;
3179+
};
29773180
8400A359282E6BE30067D3A0 /* Debug */ = {
29783181
isa = XCBuildConfiguration;
29793182
buildSettings = {
@@ -3399,6 +3602,7 @@
33993602
buildConfigurations = (
34003603
8400A359282E6BE30067D3A0 /* Debug */,
34013604
8400A35A282E6BE30067D3A0 /* Release */,
3605+
4F4562FD2C2462BE00675C7F /* Profile */,
34023606
);
34033607
defaultConfigurationIsVisible = 0;
34043608
defaultConfigurationName = Release;
@@ -3408,6 +3612,7 @@
34083612
buildConfigurations = (
34093613
8402EACE282BF69B00CCA696 /* Debug */,
34103614
8402EACF282BF69B00CCA696 /* Release */,
3615+
4F4562FC2C2462BE00675C7F /* Profile */,
34113616
);
34123617
defaultConfigurationIsVisible = 0;
34133618
defaultConfigurationName = Release;
@@ -3417,6 +3622,7 @@
34173622
buildConfigurations = (
34183623
8465FBC52746873A00AF091E /* Debug */,
34193624
8465FBC62746873A00AF091E /* Release */,
3625+
4F4562F82C2462BE00675C7F /* Profile */,
34203626
);
34213627
defaultConfigurationIsVisible = 0;
34223628
defaultConfigurationName = Release;
@@ -3426,6 +3632,7 @@
34263632
buildConfigurations = (
34273633
8465FBC82746873A00AF091E /* Debug */,
34283634
8465FBC92746873A00AF091E /* Release */,
3635+
4F4562F92C2462BE00675C7F /* Profile */,
34293636
);
34303637
defaultConfigurationIsVisible = 0;
34313638
defaultConfigurationName = Release;
@@ -3435,6 +3642,7 @@
34353642
buildConfigurations = (
34363643
8465FBCB2746873A00AF091E /* Debug */,
34373644
8465FBCC2746873A00AF091E /* Release */,
3645+
4F4562FA2C2462BE00675C7F /* Profile */,
34383646
);
34393647
defaultConfigurationIsVisible = 0;
34403648
defaultConfigurationName = Release;
@@ -3444,6 +3652,7 @@
34443652
buildConfigurations = (
34453653
8465FCC827468B6A00AF091E /* Debug */,
34463654
8465FCC927468B6A00AF091E /* Release */,
3655+
4F4562FB2C2462BE00675C7F /* Profile */,
34473656
);
34483657
defaultConfigurationIsVisible = 0;
34493658
defaultConfigurationName = Release;

StreamChatSwiftUI.xcodeproj/xcshareddata/xcschemes/DemoAppSwiftUI.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
</BuildableProductRunnable>
5353
</LaunchAction>
5454
<ProfileAction
55-
buildConfiguration = "Debug"
55+
buildConfiguration = "Profile"
5656
shouldUseLaunchSchemeArgsEnv = "YES"
5757
savedToolIdentifier = ""
5858
useCustomWorkingDirectory = "NO"

0 commit comments

Comments
 (0)