جشنواره عیدانه راکت | عضویت ویژه راکت برای آخرین بار | افزایش قیمت‌ها از سال جدید | و ...

مشاهده اطلاعات بیشتر...
ثانیه
دقیقه
ساعت
روز
محسن
4 سال پیش توسط محسن مطرح شد
0 پاسخ

راهنمایی در مورد نمايش نقشه در ری اکت نیتیو و بلتفرم iOS

سلام.من میخوام تو اپ نقشه داشته باشم.و از map.ir استفاده کردم.مشکلی که دارم مربوط به pod install هست.طبق آموزش خود سرویس باید بعد از نصب پکیج موارد زیر رو به podfile اضافه کنیم و دستور pod install اجرا کنیم اما خطا میگیرم

موارد اضافه شده طبق مستندات:

    # Flexbox Layout Manager Used By React Native
      pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga/Yoga.podspec'
      # React Native
      pod 'React', path: '../node_modules/react-native', subspecs: [
        # Comment out any unneeded subspecs to reduce bundle size.
        'Core',
        'DevSupport',
        'RCTActionSheet',
        'RCTAnimation',
        'RCTBlob',
        'RCTCameraRoll',
        'RCTGeolocation',
        'RCTImage',
        'RCTNetwork',
        'RCTPushNotification',
        'RCTSettings',
        'RCTText',
        'RCTVibration',
        'RCTWebSocket',
        'RCTLinkingIOS'
      ]
      # Mapbox
      pod 'react-native-mapbox-gl', :path => '../node_modules/mapir-mapbox'
      # Third party
      pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
      post_install do |installer|
        installer.pods_project.targets.each do |target|
          if target.name == "React"
            target.remove_from_project
          end
        end
      end

و متن ارور بعد از دستور pod install:

Detected React Native module pods for RNCAsyncStorage, RNCMaskedView, RNGestureHandler, RNReanimated, RNSVG, RNScreens, react-native-netinfo, react-native-restart, and react-native-safe-area-context

[!] Invalid `Podfile` file: [!] Specifying multiple `post_install` hooks is unsupported..

 #  from /Users/mohsen/Desktop/irantimesheet/ios/Podfile:142
 #  -------------------------------------------
 #  
 >  post_install do |installer|
 #    installer.pods_project.targets.each do |target|
 #  -------------------------------------------

[!] use_native_modules! skipped the react-native dependency 'react-native-geolocation-service'. No podspec file was found.
    - Check to see if there is an updated version that contains the necessary
    podspec file
    - Contact the library maintainers or send them a PR to add a podspec. The
    react-native-webview podspec is a good example of a package.json driven
    podspec. See
    https://github.com/react-native-community/react-native-webview/blob/master/react-native-webview.podspec
    - If necessary, you can disable autolinking for the dependency and link it
    manually. See
    https://github.com/react-native-community/cli/blob/master/docs/autolinking.md#how-can-i-disable-autolinking-for-unsupported-library

جدا از بحث \شتیبانی خود سرویس ها میخوام بدون کسی به این مشکل برخورده؟
یا کسی جديدا از سرویسی استفاده کرده که خوب \شتیبانی بشه و به روز باشه؟(با ری اکت نیتیو)


ثبت پرسش جدید

به همدیگه کمک کنیم

به محسن کمک کنید تا مشکل خودش را حل کند؛ این‌طور می‌توانیم با هم پیشرفت کنیم.

برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام