red5pro / react-native-red5pro

React Native Red5 Pro Publisher/Subscriber
https://www.red5pro.com/
Other
34 stars 20 forks source link

FRAMEWORK_SEARCH_PATHS setting gone after `pod install` #64

Open chungweileong94 opened 4 years ago

chungweileong94 commented 4 years ago

After pod install all the settings for FRAMEWORK_SEARCH_PATCHS are empty and need to set up again.

It's a good idea to utilize the PodFile to handle this setup instead of setup manually.

post_install do |installer|
    # ...

    installer.pods_project.targets.each do |target|
      if target.name == 'R5VideoView'
        target.build_configurations.each do |config|
          config.build_settings['FRAMEWORK_SEARCH_PATHS'] = '$(SRCROOT)/../Frameworks'
        end
      end
    end
  end