mirror of
https://github.com/zhigang1992/facebook-ios-sdk.git
synced 2026-04-30 02:16:16 +08:00
Summary:
- In the build phase this is shown as a "Show environment variables in build log" option that can be unchecked
- This in turn adds the following line to the pbxproj file "showEnvVarsInLog = 0"
- With xcodegen this option is disabled by setting "showEnvVars: false"
This gets rid of the lines that say "export ENV_VAR_NAME..."
This change reduces the number of lines in the build output from ~6000 to ~3000
```
xcodebuild clean build -workspace FacebookSDK.xcworkspace -scheme BuildAllKits-Dynamic > ~/Desktop/xcodebuild_log_before.txt
// Made this change
xcodebuild clean build -workspace FacebookSDK.xcworkspace -scheme BuildAllKits-Dynamic > ~/Desktop/xcodebuild_log_after.txt
$ wc -l ~/Desktop/xcodebuild_log_before.txt
6232 /Users/jawwad/Desktop/xcodebuild_log_before.txt
$ wc -l ~/Desktop/xcodebuild_log_after.txt
3123 /Users/jawwad/Desktop/xcodebuild_log_after.txt
```
Reviewed By: samodom
Differential Revision: D35067834
fbshipit-source-id: c1a42a053a4a31e4646e9d766f00b970e776472d
36 lines
752 B
YAML
36 lines
752 B
YAML
# Made using xcodegen 2.17.0
|
|
|
|
name: TestTools
|
|
|
|
include:
|
|
- ../xcodegen_project_common.yml
|
|
|
|
projectReferences:
|
|
FBSDKCoreKit:
|
|
path: ../FBSDKCoreKit/FBSDKCoreKit.xcodeproj
|
|
FBAEMKit:
|
|
path: ../FBAEMKit/FBAEMKit.xcodeproj
|
|
|
|
settings:
|
|
base:
|
|
PRODUCT_BUNDLE_IDENTIFIER: com.facebook.TestTools
|
|
|
|
targets:
|
|
TestTools:
|
|
type: framework
|
|
platform: iOS
|
|
sources:
|
|
- path: TestTools
|
|
headerVisibility: public
|
|
excludes:
|
|
- Info.plist
|
|
dependencies:
|
|
- target: FBSDKCoreKit/FBSDKCoreKit-Dynamic
|
|
link: false
|
|
- target: FBAEMKit/FBAEMKit-Dynamic
|
|
link: false
|
|
preBuildScripts:
|
|
- name: Run Swiftlint
|
|
showEnvVars: false
|
|
script: ../scripts/build_phase_swiftlint.sh
|