react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
741 stars 285 forks source link

pod install failed #224

Closed code-by closed 3 years ago

code-by commented 3 years ago

React: 16.8.6 
RN: 0.60.5 
macOS: 10.15.6 react-native-push-notification-ios/push-notification-ios: 1.7.1

Build target: iOS 9

npx: installed 1 in 3.122s
Scanning for pods...
1.9.3
> pod install
Detected React Native module pod for RNCPushNotificationIOS
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "RNCPushNotificationIOS":
  In Podfile:
    RNCPushNotificationIOS (from `../node_modules/@react-native-community/push-notification-ios`)

Specs satisfying the `RNCPushNotificationIOS (from `../node_modules/@react-native-community/push-notification-ios`)` dependency were found, but they required a higher minimum deployment target.

Aborting run
Naveen562117 commented 3 years ago

[!] CocoaPods could not find compatible versions for pod "RNCPushNotificationIOS": In Podfile: RNCPushNotificationIOS (from ../node_modules/@react-native-community/push-notification-ios)

Specs satisfying the RNCPushNotificationIOS (from../node_modules/@react-native-community/push-notification-ios) dependency were found, but they required a higher minimum deployment target.

Naveen562117 commented 3 years ago

hi I am getting the same issue since yesterday not able to install or run the code @code-by did you find any solution so far??

ghost commented 3 years ago

Same issue here.

ghost commented 3 years ago

Ok, I got it working here.

On the Podfile, do the following changes:

-platform :ios, '9.0' +platform :ios, '10.0'

Naveen562117 commented 3 years ago

@gilsonviana-oowlish thanks but the error changed to Invariant Violation: native module cannot be null error,

Nehal-29 commented 3 years ago

Can't increase the iOS target from 9 to 10. Any other solution?

Naveen562117 commented 3 years ago

@Nehal-29 this is issue was resolved when I made it 9=> 10 but , and created one more new issue which

Invariant Violation: Native module cannot be null.

invariant browser.js:38:14 constructor NativeEventEmitter.js:37:15

index.js:17:46 loadModuleImplementation require.js:321:11 index.bundle?platform=ios&dev=true&minify=false:171700:51 loadModuleImplementation require.js:321:11 index.tsx:10 loadModuleImplementation require.js:321:11 App.js:2 loadModuleImplementation require.js:321:11 index.js:6 loadModuleImplementation require.js:321:11 guardedLoadModule require.js:201:44 global code index.bundle?platform=ios&dev=true&minify=false:252997:3 and this error is not giving a clue about which. package is this error belongs to..
Nehal-29 commented 3 years ago

This means one of your module is not linked or pod is not installed for that module

unicornRainbows commented 3 years ago

Rebuild you project in Xcode @Naveen562117

Naveen562117 commented 3 years ago

@unicornRainbows I have rebuild the project like at least 30-40 times

Naveen562117 commented 3 years ago

is there any other suggestion to how to get over with this issue @unicornRainbows

Naveen562117 commented 3 years ago

hi in my case

'react-native-play-install-referrer' was the package caused the issue Invariant Violation: Native module cannot be null.

and not relevant to pod installation failed and ,,

changing iOS platform to 9.0 => 10.0 fixed this issue

Naturalclar commented 3 years ago

The push notification module are only supported for iOS10 and above. Please update the ios version on the pod file

https://github.com/react-native-push-notification-ios/push-notification-ios/issues/224#issuecomment-722358678

HammzaHM commented 3 years ago

Ok, I got it working here.

On the Podfile, do the following changes:

-platform :ios, '9.0' +platform :ios, '10.0'

This worked for me Thanks

JeffPatricio commented 3 years ago

Ok, I got it working here.

On the Podfile, do the following changes:

-platform :ios, '9.0' +platform :ios, '10.0'

This worked for me Thanks

Rushabhgedam commented 3 years ago

Not worked for me, Still facing the same error

acarkaan commented 3 years ago

Ok, I got it working here.

On the Podfile, do the following changes:

-platform :ios, '9.0' +platform :ios, '10.0'

works Well Thanks...

samuelprogramer commented 1 year ago

Happened when I added @react-native-async-storage/async-storage library. I thought the cause could be her, but after removing it the problem continued. So I decided to see if it was something else, I deleted the IOS folder of my project and ran expo eject when I ran pod install it worked perfectly