mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 01:05:19 +00:00
Fix macOS build error and iPhone 16 display issues
- Split multi-platform target into separate iOS and macOS targets to prevent iOS share extension from being embedded in macOS build - Add launch screen configuration and full screen support for proper iPhone 16 display - Configure iOS-specific Info.plist entries for background modes and interface orientations
This commit is contained in:
+77
-5
@@ -11,9 +11,9 @@ settings:
|
||||
CURRENT_PROJECT_VERSION: 1
|
||||
|
||||
targets:
|
||||
bitchat:
|
||||
bitchat_iOS:
|
||||
type: application
|
||||
platform: [iOS, macOS]
|
||||
platform: iOS
|
||||
sources:
|
||||
- bitchat
|
||||
resources:
|
||||
@@ -24,7 +24,6 @@ targets:
|
||||
CFBundleDisplayName: bitchat
|
||||
CFBundleShortVersionString: $(MARKETING_VERSION)
|
||||
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
||||
LSMinimumSystemVersion: $(MACOSX_DEPLOYMENT_TARGET)
|
||||
NSBluetoothAlwaysUsageDescription: bitchat uses Bluetooth to create a secure mesh network for chatting with nearby users.
|
||||
NSBluetoothPeripheralUsageDescription: bitchat uses Bluetooth to discover and connect with other bitchat users nearby.
|
||||
UIBackgroundModes:
|
||||
@@ -39,11 +38,11 @@ targets:
|
||||
- bitchat
|
||||
settings:
|
||||
PRODUCT_BUNDLE_IDENTIFIER: chat.bitchat
|
||||
PRODUCT_NAME: bitchat
|
||||
INFOPLIST_FILE: bitchat/Info.plist
|
||||
ENABLE_PREVIEWS: YES
|
||||
SWIFT_VERSION: 5.0
|
||||
IPHONEOS_DEPLOYMENT_TARGET: 16.0
|
||||
MACOSX_DEPLOYMENT_TARGET: 13.0
|
||||
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD: YES
|
||||
CODE_SIGN_STYLE: Automatic
|
||||
CODE_SIGNING_REQUIRED: YES
|
||||
@@ -54,9 +53,42 @@ targets:
|
||||
DEVELOPMENT_TEAM: L3N5LHJD5Y
|
||||
dependencies:
|
||||
- target: bitchatShareExtension
|
||||
platformFilter: ios
|
||||
embed: true
|
||||
|
||||
bitchat_macOS:
|
||||
type: application
|
||||
platform: macOS
|
||||
sources:
|
||||
- bitchat
|
||||
resources:
|
||||
- bitchat/Assets.xcassets
|
||||
info:
|
||||
path: bitchat/Info.plist
|
||||
properties:
|
||||
CFBundleDisplayName: bitchat
|
||||
CFBundleShortVersionString: $(MARKETING_VERSION)
|
||||
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
||||
LSMinimumSystemVersion: $(MACOSX_DEPLOYMENT_TARGET)
|
||||
NSBluetoothAlwaysUsageDescription: bitchat uses Bluetooth to create a secure mesh network for chatting with nearby users.
|
||||
NSBluetoothPeripheralUsageDescription: bitchat uses Bluetooth to discover and connect with other bitchat users nearby.
|
||||
CFBundleURLTypes:
|
||||
- CFBundleURLSchemes:
|
||||
- bitchat
|
||||
settings:
|
||||
PRODUCT_BUNDLE_IDENTIFIER: chat.bitchat
|
||||
PRODUCT_NAME: bitchat
|
||||
INFOPLIST_FILE: bitchat/Info.plist
|
||||
ENABLE_PREVIEWS: YES
|
||||
SWIFT_VERSION: 5.0
|
||||
MACOSX_DEPLOYMENT_TARGET: 13.0
|
||||
CODE_SIGN_STYLE: Automatic
|
||||
CODE_SIGNING_REQUIRED: YES
|
||||
CODE_SIGNING_ALLOWED: YES
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
|
||||
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS: YES
|
||||
CODE_SIGN_ENTITLEMENTS: bitchat/bitchat.entitlements
|
||||
DEVELOPMENT_TEAM: L3N5LHJD5Y
|
||||
|
||||
bitchatShareExtension:
|
||||
type: app-extension
|
||||
platform: iOS
|
||||
@@ -117,3 +149,43 @@ targets:
|
||||
MACOSX_DEPLOYMENT_TARGET: 13.0
|
||||
TEST_HOST: $(BUILT_PRODUCTS_DIR)/bitchat.app/Contents/MacOS/bitchat
|
||||
BUNDLE_LOADER: $(TEST_HOST)
|
||||
|
||||
schemes:
|
||||
bitchat (iOS):
|
||||
build:
|
||||
targets:
|
||||
bitchat_iOS: all
|
||||
bitchatShareExtension: all
|
||||
run:
|
||||
config: Debug
|
||||
executable: bitchat_iOS
|
||||
test:
|
||||
config: Debug
|
||||
targets:
|
||||
- bitchatTests_iOS
|
||||
profile:
|
||||
config: Release
|
||||
executable: bitchat_iOS
|
||||
analyze:
|
||||
config: Debug
|
||||
archive:
|
||||
config: Release
|
||||
|
||||
bitchat (macOS):
|
||||
build:
|
||||
targets:
|
||||
bitchat_macOS: all
|
||||
run:
|
||||
config: Debug
|
||||
executable: bitchat_macOS
|
||||
test:
|
||||
config: Debug
|
||||
targets:
|
||||
- bitchatTests_macOS
|
||||
profile:
|
||||
config: Release
|
||||
executable: bitchat_macOS
|
||||
analyze:
|
||||
config: Debug
|
||||
archive:
|
||||
config: Release
|
||||
|
||||
Reference in New Issue
Block a user