Skip to content

Commit

Permalink
fix: use active arch only
Browse files Browse the repository at this point in the history
Signed-off-by: Guilhem Fanton <guilhem.fanton@gmail.com>
  • Loading branch information
gfanton committed Jan 28, 2021
1 parent 33b6406 commit 4290f69
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
sed -i 'run.bash.old' 's/.*ulimit -[Hc].*//g' run.bash && \
./make.bash
shell: bash

- name: FIXME - set new go path bin
run: |
echo "GOROOT=$HOME/go-patch" >> $GITHUB_ENV
Expand Down
19 changes: 15 additions & 4 deletions ios/Bridge/GomobileIPFS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
VALIDATE_WORKSPACE = NO;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand Down Expand Up @@ -401,10 +402,12 @@
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
VALIDATE_WORKSPACE = NO;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand All @@ -413,6 +416,7 @@
8DE4ECE22402BF6600B70884 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
Expand All @@ -431,6 +435,7 @@
);
MACOSX_DEPLOYMENT_TARGET = "";
MARKETING_VERSION = 0.0.1;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = ipfs.gomobile.bridge;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand All @@ -439,14 +444,15 @@
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TVOS_DEPLOYMENT_TARGET = "";
VALID_ARCHS = "arm64 arm64e";
VALIDATE_WORKSPACE = NO;
WATCHOS_DEPLOYMENT_TARGET = "";
};
name = Debug;
};
8DE4ECE32402BF6600B70884 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
Expand All @@ -465,22 +471,23 @@
);
MACOSX_DEPLOYMENT_TARGET = "";
MARKETING_VERSION = 0.0.1;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = ipfs.gomobile.bridge;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTS_MACCATALYST = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TVOS_DEPLOYMENT_TARGET = "";
VALID_ARCHS = "arm64 arm64e";
VALIDATE_WORKSPACE = NO;
WATCHOS_DEPLOYMENT_TARGET = "";
};
name = Release;
};
8DE4ECE52402BF6600B70884 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 9F2792GBSY;
INFOPLIST_FILE = GomobileIPFSTests/Info.plist;
Expand All @@ -491,19 +498,21 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = "";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = berty.GomobileIPFSTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TVOS_DEPLOYMENT_TARGET = "";
VALIDATE_WORKSPACE = NO;
WATCHOS_DEPLOYMENT_TARGET = "";
};
name = Debug;
};
8DE4ECE62402BF6600B70884 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 9F2792GBSY;
INFOPLIST_FILE = GomobileIPFSTests/Info.plist;
Expand All @@ -514,11 +523,13 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = "";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = berty.GomobileIPFSTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TVOS_DEPLOYMENT_TARGET = "";
VALIDATE_WORKSPACE = NO;
WATCHOS_DEPLOYMENT_TARGET = "";
};
name = Release;
Expand Down
13 changes: 11 additions & 2 deletions ios/Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
VALIDATE_WORKSPACE = NO;
};
name = Debug;
};
Expand Down Expand Up @@ -394,15 +395,18 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
VALIDATE_PRODUCT = YES;
VALIDATE_WORKSPACE = NO;
};
name = Release;
};
607FACF01AFB9204008FA782 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
Expand All @@ -420,13 +424,14 @@
STRIP_BITCODE_FROM_COPIED_FILES = NO;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 5.0;
VALID_ARCHS = "arm64 arm64e";
VALIDATE_WORKSPACE = NO;
};
name = Debug;
};
607FACF11AFB9204008FA782 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
Expand All @@ -444,13 +449,14 @@
STRIP_BITCODE_FROM_COPIED_FILES = NO;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 5.0;
VALID_ARCHS = "arm64 arm64e";
VALIDATE_WORKSPACE = NO;
};
name = Release;
};
607FACF31AFB9204008FA782 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
DEVELOPMENT_TEAM = WMBQ84HN4T;
FRAMEWORK_SEARCH_PATHS = (
"$(PLATFORM_DIR)/Developer/Library/Frameworks",
Expand All @@ -467,12 +473,14 @@
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example";
VALIDATE_WORKSPACE = NO;
};
name = Debug;
};
607FACF41AFB9204008FA782 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
DEVELOPMENT_TEAM = WMBQ84HN4T;
FRAMEWORK_SEARCH_PATHS = (
"$(PLATFORM_DIR)/Developer/Library/Frameworks",
Expand All @@ -485,6 +493,7 @@
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example";
VALIDATE_WORKSPACE = NO;
};
name = Release;
};
Expand Down

0 comments on commit 4290f69

Please sign in to comment.