Coder Social home page Coder Social logo

Comments (3)

arosendorff avatar arosendorff commented on June 12, 2024

Hi Samuel,

Sorry you're having set up issues! Could you please post your whole Podfile here? Also, do you have the DJI-SDK-iOS dependency in your Podfile? Try adding pod 'DJI-SDK-iOS', '~> 4.10' if it isn't there.

Our set up documentation can definitely use a bit of reworking and updating, hopefully we can work out your problem and add it to the docs!

from react-native-dji-mobile.

SamuelGuNUAA avatar SamuelGuNUAA commented on June 12, 2024

Hi Adam,

Here is the Podfile fails,

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
react_native_path = '../node_modules/react-native'

target 'AppName' do
use_modular_headers!
rn_path = '../node_modules/react-native'

pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
  'Core',
  'DevSupport', # Devmenu
  'RCTActionSheet',
  'RCTAnimation',
  'RCTGeolocation',
  'RCTImage',
  'RCTLinkingIOS',
  'RCTNetwork',
  'RCTSettings',
  'RCTText',
  'RCTVibration',
  'RCTWebSocket',
  'CxxBridge'
]

pod 'GoogleMaps'  # Remove this line if you don't want to support GoogleMaps on iOS
pod 'react-native-maps', path: '../node_modules/react-native-maps'
pod 'react-native-google-maps', path: '../node_modules/react-native-maps'  # Remove this line         
    if you don't want to support GoogleMaps on iOS
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'
pod 'SentryReactNative', :path => '../node_modules/react-native-sentry'
pod 'lottie-react-native', :path => '../node_modules/lottie-react-native'
pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
# Third party deps
pod 'DoubleConversion', :podspec => react_native_path + '/third-party-            
podspecs/DoubleConversion.podspec', :modular_headers => false

pod 'glog', :podspec => react_native_path + '/third-party-podspecs/glog.podspec',     
:modular_headers => false

pod 'Folly', :podspec => react_native_path + '/third-party-podspecs/Folly.podspec',  :modular_headers => false

pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'

pod 'react-native-orientation-locker', :path => '../node_modules/react-native-orientation- 
locker/react-native-orientation-locker.podspec'

pod 'react-native-camera', :path => '../node_modules/react-native-camera'

pod 'react-native-gps-state', :path => '../node_modules/react-native-gps-state'

pod 'lottie-ios', :path => '../node_modules/lottie-ios'

pod 'react-native-document-picker', :path => '../node_modules/react-native-document-picker'

 pod 'react-native-image-picker', :path => '../node_modules/react-native-image-picker'

pod 'DJIWidget', '~> 1.5', :modular_headers => true
pod 'react-native-dji-mobile', :path => '../node_modules/react-native-dji-mobile'
end

post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'react-native-google-maps'
  target.build_configurations.each do |config|
    config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
  end
end
if target.name == "React"
  target.remove_from_project
end
end
end

By adding pod 'DJI-SDK-iOS', '~> 4.10', compile fails in Xcode, so is there any specific configurations?

from react-native-dji-mobile.

SamuelGuNUAA avatar SamuelGuNUAA commented on June 12, 2024

For my project, just resolved by,

  1. add $(SRCROOT)/../node_modules/react-native-nfc-manager/ios to Header Search Paths
  2. remove those DJI's recommended settings

from react-native-dji-mobile.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.