Module: Pod::Podfile::DSL
- Defined in:
- lib/cocoapods-binary-bugfix/Main.rb,
lib/cocoapods-binary-bugfix/helper/feature_switches.rb
Constant Summary collapse
- @@enable_prebuild_patch =
false
Class Method Summary collapse
-
.enable_prebuild_patch(value) ⇒ Object
when enable, ‘pod` function will skip all pods without ’prebuild => true’.
Instance Method Summary collapse
-
#all_binary! ⇒ Object
Enable prebuiding for all pods it has a lower priority to other binary settings.
- #all_source! ⇒ Object
-
#enable_bitcode_for_prebuilt_frameworks! ⇒ Object
Enable bitcode for prebuilt frameworks.
-
#keep_source_code_for_prebuilt_frameworks! ⇒ Object
Don’t remove source code of prebuilt pods It may speed up the pod install if git didn’t include the ‘Pods` folder.
-
#set_custom_xcodebuild_options_for_prebuilt_frameworks(options) ⇒ Object
Add custom xcodebuild option to the prebuilding action.
Class Method Details
.enable_prebuild_patch(value) ⇒ Object
when enable, ‘pod` function will skip all pods without ’prebuild => true’
17 18 19 |
# File 'lib/cocoapods-binary-bugfix/helper/feature_switches.rb', line 17 def self.enable_prebuild_patch(value) @@enable_prebuild_patch = value end |
Instance Method Details
#all_binary! ⇒ Object
Enable prebuiding for all pods it has a lower priority to other binary settings
13 14 15 |
# File 'lib/cocoapods-binary-bugfix/Main.rb', line 13 def all_binary! DSL.prebuild_all = true end |
#all_source! ⇒ Object
17 18 19 |
# File 'lib/cocoapods-binary-bugfix/Main.rb', line 17 def all_source! DSL.framework_source_all = true end |
#enable_bitcode_for_prebuilt_frameworks! ⇒ Object
Enable bitcode for prebuilt frameworks
22 23 24 |
# File 'lib/cocoapods-binary-bugfix/Main.rb', line 22 def enable_bitcode_for_prebuilt_frameworks! DSL.bitcode_enabled = true end |
#keep_source_code_for_prebuilt_frameworks! ⇒ Object
Don’t remove source code of prebuilt pods It may speed up the pod install if git didn’t include the ‘Pods` folder
29 30 31 |
# File 'lib/cocoapods-binary-bugfix/Main.rb', line 29 def keep_source_code_for_prebuilt_frameworks! DSL.dont_remove_source_code = true end |
#set_custom_xcodebuild_options_for_prebuilt_frameworks(options) ⇒ Object
Add custom xcodebuild option to the prebuilding action
You may use this for your special demands. For example: the default archs in dSYMs of prebuilt frameworks is ‘arm64 armv7 x86_64’, and no ‘i386’ for 32bit simulator. It may generate a warning when building for a 32bit simulator. You may add following to your podfile
` set_custom_xcodebuild_options_for_prebuilt_frameworks :simulator => "ARCHS=$(ARCHS_STANDARD)" `
Another example to disable the generating of dSYM file:
` set_custom_xcodebuild_options_for_prebuilt_frameworks "DEBUG_INFORMATION_FORMAT=dwarf"`
52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/cocoapods-binary-bugfix/Main.rb', line 52 def () if .kind_of? Hash DSL. = [ [:device] ] unless [:device].nil? DSL. = [ [:simulator] ] unless [:simulator].nil? elsif .kind_of? String DSL. = [] DSL. = [] else raise "Wrong type." end end |