LoginSignup
0
0

More than 5 years have passed since last update.

Acknowledgement on Setting

Last updated at Posted at 2018-08-31
  1. Add settings.Bundle
  2. add script to [Build Phases]-[Run Script]
  3. add this to Podfile
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

def install_pods
  pod 'SVProgressHUD'
  pod 'CTCheckbox'
  pod 'ionicons'
  pod 'CWPopup'

  pod 'AFNetworking', '~> 3.0'
end

target 'StationNotification' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  install_pods

  # Pods for StationNotification

  post_install do | installer |
      require 'fileutils'
      FileUtils.cp_r('Pods/Target Support Files/Pods-StationNotification/Pods-StationNotification-acknowledgements.plist', 'Roulette/Settings.bundle/Acknowledgements.plist', :remove_destination => true)
  end

end
  1. pod install
APP_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" $PRODUCT_SETTINGS_PATH)
/usr/libexec/PlistBuddy -c "Set :PreferenceSpecifiers:1:DefaultValue ${APP_VERSION}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Settings.bundle/Root.plist"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0