Skip to content

Commit 4635154

Browse files
authored
Allow running debug iOS builds on physical device via CLI and Enable Automatic code signing for Debug builds (#15637)
This commit does the following : - Adds a command in makefile to show connected iOS devices via make `show-ios-devices` - Developers can then copy their connected iPhone's Device Name and use it to deploy debug builds on the device by `make run-ios-device DEVICE_NAME="their-device-name"` - Enables automatic code signing ( only for Debug scheme )
1 parent 05b8dd5 commit 4635154

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

Makefile

+11
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,17 @@ else
282282
npx react-native run-ios
283283
endif
284284

285+
show-ios-devices: export TARGET := ios
286+
show-ios-devices: ##@other shows connected ios device and its name
287+
xcrun xctrace list devices
288+
289+
run-ios-device: export TARGET := ios
290+
run-ios-device: ##@run iOS app and start it on a connected device by its name
291+
ifndef DEVICE_NAME
292+
$(error Usage: make run-ios-device DEVICE_NAME=your-device-name)
293+
endif
294+
react-native run-ios --device "$(DEVICE_NAME)"
295+
285296
#--------------
286297
# Tests
287298
#--------------

ios/StatusIm.xcodeproj/project.pbxproj

+3-7
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,7 @@
417417
TestTargetID = 13B07F861A680F5B00A75B9A;
418418
};
419419
13B07F861A680F5B00A75B9A = {
420-
DevelopmentTeam = 8B5X2M6H2Y;
421420
LastSwiftMigration = 1140;
422-
ProvisioningStyle = Manual;
423421
SystemCapabilities = {
424422
com.apple.BackgroundModes = {
425423
enabled = 1;
@@ -843,9 +841,8 @@
843841
BUNDLE_ID_SUFFIX = .debug;
844842
CLANG_ENABLE_MODULES = YES;
845843
CODE_SIGN_ENTITLEMENTS = StatusIm/StatusIm.entitlements;
846-
CODE_SIGN_IDENTITY = "iPhone Distribution";
847-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
848-
CODE_SIGN_STYLE = Manual;
844+
CODE_SIGN_IDENTITY = "Apple Development";
845+
CODE_SIGN_STYLE = Automatic;
849846
CUSTOM_PRODUCT_NAME = "Status Debug";
850847
DEAD_CODE_STRIPPING = YES;
851848
DEVELOPMENT_TEAM = 8B5X2M6H2Y;
@@ -899,8 +896,7 @@
899896
PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES;
900897
PRODUCT_BUNDLE_IDENTIFIER = im.status.ethereum;
901898
PRODUCT_NAME = StatusIm;
902-
PROVISIONING_PROFILE = "9da75626-9594-43d9-a827-0f6d43c28f54";
903-
PROVISIONING_PROFILE_SPECIFIER = "match Development im.status.ethereum";
899+
PROVISIONING_PROFILE_SPECIFIER = "";
904900
SWIFT_OBJC_BRIDGING_HEADER = "StatusIm-Bridging-Header.h";
905901
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
906902
SWIFT_VERSION = 5.0;

0 commit comments

Comments
 (0)