Skip to content

Commit aef01a1

Browse files
authored
Merge pull request #183 from ishkawa/feature/disable-whole-module-optimization
Disable whole module optimization to avoid build error while `carthage build`
2 parents c91ebcd + 4896739 commit aef01a1

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.travis.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ env:
66
- LC_CTYPE=en_US.UTF-8
77
- secure: kg5TFTNojZ9VOYHApONRUXSbwu+erLs3WSNNX/CKbkO8eQnBo+1koXHnEtOTQ641YRAVpFLX4QK7pbRfmWWWzR6ntNgXmvE4IUa1ggsUlcorApLq+cQin1Tp1es0/Ul0nYLJN8WXbcObKSLy8FOmHkrMWYuffMtH9e7qEL01ei0=
88

9-
before_install:
10-
- brew update
11-
129
install:
10+
- ./script/import-certificates
1311
- carthage bootstrap --use-submodules --no-build
1412
- pod repo update --silent
1513

@@ -19,13 +17,12 @@ script:
1917
- xcodebuild test -workspace APIKit.xcworkspace -scheme APIKit | xcpretty -c
2018
- xcodebuild test -workspace APIKit.xcworkspace -scheme APIKit -sdk iphonesimulator | xcpretty -c
2119
- xcodebuild test -workspace APIKit.xcworkspace -scheme APIKit -sdk appletvsimulator | xcpretty -c
20+
- carthage build --no-skip-current
2221

2322
after_success:
2423
- bash <(curl -s https://codecov.io/bash)
2524

2625
before_deploy:
27-
- ./script/import-certificates
28-
- carthage build --no-skip-current
2926
- carthage archive APIKit
3027

3128
deploy:

APIKit.xcodeproj/project.pbxproj

-2
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@
523523
DEFINES_MODULE = YES;
524524
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
525525
SWIFT_OBJC_BRIDGING_HEADER = "";
526-
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
527526
};
528527
name = Release;
529528
};
@@ -538,7 +537,6 @@
538537
isa = XCBuildConfiguration;
539538
baseConfigurationReference = 141F12401C1C9EA30026D415 /* Tests.xcconfig */;
540539
buildSettings = {
541-
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
542540
};
543541
name = Release;
544542
};

0 commit comments

Comments
 (0)