Skip to content

Commit bda2bea

Browse files
author
Bruno Barbieri
authored
Update iOS Builds (#1258)
* optimize ios build params * disable parallelize builds * fix simulator name
1 parent 5ac4f71 commit bda2bea

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
yarn global add detox-cli
8787
- run: echo $IOS_ENV | tr "|" "\n" > .ios.env
8888
- run: detox clean-framework-cache && detox build-framework-cache
89-
- run: detox build --configuration ios.sim.release && detox test --configuration ios.sim.release --cleanup
89+
- run: detox build --configuration ios.sim.release && detox test --configuration ios.sim.release --cleanup --workers 2
9090
upload-coverage:
9191
<<: *defaults
9292
docker:

ios/MetaMask.xcodeproj/project.pbxproj

+11
Original file line numberDiff line numberDiff line change
@@ -2483,16 +2483,19 @@
24832483
baseConfigurationReference = 15FDD82721B7642B006B7C35 /* debug.xcconfig */;
24842484
buildSettings = {
24852485
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
2486+
ASSETCATALOG_COMPILER_OPTIMIZATION = time;
24862487
CODE_SIGN_ENTITLEMENTS = MetaMask/MetaMask.entitlements;
24872488
CODE_SIGN_IDENTITY = "iPhone Developer";
24882489
CODE_SIGN_STYLE = Manual;
24892490
CURRENT_PROJECT_VERSION = 1;
24902491
DEAD_CODE_STRIPPING = NO;
2492+
DEBUG_INFORMATION_FORMAT = dwarf;
24912493
DEVELOPMENT_TEAM = 48XVW22RCG;
24922494
FRAMEWORK_SEARCH_PATHS = (
24932495
"$(inherited)",
24942496
"$(PROJECT_DIR)",
24952497
);
2498+
GCC_OPTIMIZATION_LEVEL = 0;
24962499
GCC_PREPROCESSOR_DEFINITIONS = (
24972500
"DEBUG=1",
24982501
"$(inherited)",
@@ -2530,12 +2533,14 @@
25302533
"$(SRCROOT)/../node_modules/react-native-sensors/ios/**",
25312534
);
25322535
INFOPLIST_FILE = MetaMask/Info.plist;
2536+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
25332537
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
25342538
LIBRARY_SEARCH_PATHS = (
25352539
"$(inherited)",
25362540
"\"$(SRCROOT)/MetaMask/System/Library/Frameworks\"",
25372541
"\"$(SRCROOT)/MetaMask\"",
25382542
);
2543+
LLVM_LTO = YES;
25392544
MARKETING_VERSION = 0.2.13;
25402545
OTHER_LDFLAGS = (
25412546
"$(inherited)",
@@ -2554,16 +2559,20 @@
25542559
baseConfigurationReference = 15FDD86021B76461006B7C35 /* release.xcconfig */;
25552560
buildSettings = {
25562561
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
2562+
ASSETCATALOG_COMPILER_OPTIMIZATION = time;
25572563
CODE_SIGN_ENTITLEMENTS = MetaMask/MetaMask.entitlements;
25582564
CODE_SIGN_IDENTITY = "iPhone Distribution";
25592565
CODE_SIGN_STYLE = Manual;
25602566
CURRENT_PROJECT_VERSION = 1;
2567+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
25612568
DEVELOPMENT_TEAM = 48XVW22RCG;
25622569
FRAMEWORK_SEARCH_PATHS = (
25632570
"$(inherited)",
25642571
"$(PROJECT_DIR)",
25652572
);
2573+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
25662574
GCC_PREPROCESSOR_DEFINITIONS = "DISABLE_MIXPANEL_AB_DESIGNER=1";
2575+
GCC_UNROLL_LOOPS = YES;
25672576
HEADER_SEARCH_PATHS = (
25682577
"$(inherited)",
25692578
"$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
@@ -2597,12 +2606,14 @@
25972606
"$(SRCROOT)/../node_modules/react-native-sensors/ios/**",
25982607
);
25992608
INFOPLIST_FILE = MetaMask/Info.plist;
2609+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
26002610
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
26012611
LIBRARY_SEARCH_PATHS = (
26022612
"$(inherited)",
26032613
"\"$(SRCROOT)/MetaMask/System/Library/Frameworks\"",
26042614
"\"$(SRCROOT)/MetaMask\"",
26052615
);
2616+
LLVM_LTO = YES;
26062617
MARKETING_VERSION = 0.2.13;
26072618
OTHER_LDFLAGS = (
26082619
"$(inherited)",

ios/MetaMask.xcodeproj/xcshareddata/xcschemes/MetaMask.xcscheme

+2-6
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
4343
shouldUseLaunchSchemeArgsEnv = "YES">
44-
<Testables>
45-
</Testables>
4644
<MacroExpansion>
4745
<BuildableReference
4846
BuildableIdentifier = "primary"
@@ -52,8 +50,8 @@
5250
ReferencedContainer = "container:MetaMask.xcodeproj">
5351
</BuildableReference>
5452
</MacroExpansion>
55-
<AdditionalOptions>
56-
</AdditionalOptions>
53+
<Testables>
54+
</Testables>
5755
</TestAction>
5856
<LaunchAction
5957
buildConfiguration = "Debug"
@@ -75,8 +73,6 @@
7573
ReferencedContainer = "container:MetaMask.xcodeproj">
7674
</BuildableReference>
7775
</BuildableProductRunnable>
78-
<AdditionalOptions>
79-
</AdditionalOptions>
8076
</LaunchAction>
8177
<ProfileAction
8278
buildConfiguration = "Release"

scripts/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ buildAndroid(){
139139

140140
buildIosSimulator(){
141141
prebuild_ios
142-
react-native run-ios --simulator "iPhone 11 Pro (13.3)"
142+
react-native run-ios --simulator "iPhone 11 Pro"
143143
}
144144

145145
buildIosDevice(){

0 commit comments

Comments
 (0)