urbanairship / react-native-airship

Airship React Native module
Other
88 stars 62 forks source link

UARCTModule - ARC Semantic issue - no known class method for selector 'messageCenter' #81

Closed mixophrygian closed 6 years ago

mixophrygian commented 6 years ago

Hi there,

Thanks for this module! I'm getting a persistent build failure that I wonder if anyone has seen before.

I'm migrating away from react-native-ua (0.1.2) (followed all the steps here for removing references to the old module) to urbanairship-react-native (version 1.4.2)

Then followed the iOS installation steps here exactly.

Currently running:

react-native-cli 2.0.1 react-native 0.53.3 Xcode 9.2.

After Cleaning and Building, I get two errors within UARCTMessageCenter.m, No known class method for selector 'messageCenter'.

screen shot 2018-02-21 at 6 25 23 pm

Possibly related, warning in the same module - warning: ignoring recursive header expansion for path '/**'

crow commented 6 years ago

In the sample podfile you'll want to include either: pod 'UrbanAirship-iOS-SDK', '~>9.0.0' or pod 'UrbanAirship-iOS-SDK'

and be sure to run: pod update

mixophrygian commented 6 years ago

That fixed it, thank you!

mixophrygian commented 6 years ago

Where would I submit a PR to update the version in the documentation?

https://docs.urbanairship.com/platform/react-native/#ios

crow commented 6 years ago

Our external documentation builds from a private repo - but the instruction you mention will be updated in the next day or so. Thanks for the offer!