urbanairship / ios-library

Urban Airship iOS SDK
http://urbanairship.com
Apache License 2.0
478 stars 265 forks source link

Push shared instance not available for Objective C #404

Closed BrandonStalnaker closed 6 months ago

BrandonStalnaker commented 6 months ago

❗For how-to inquiries involving Airship functionality or use cases, please contact (support)[https://support.airship.com/].

Preliminary Info

What Airship dependencies are you using?

s.ios.dependency 'Airship', '~> 18.1'

What are the versions of any relevant development tools you are using?

Xcode 15.3 Cocaopods

Report

What unexpected behavior are you seeing?

When trying to call UAirship.push push is not being found as a object on UAirship.

Screenshot 2024-05-06 at 11 09 35 AM

What is the expected behavior?

Using the umbrella header in an objective C cocaopods workspace you should be able to access the push shared instance.

What are the steps to reproduce the unexpected behavior?

Using the umbrella header in an objective C cocaopods workspace call any UAirship.push method.

Do you have logging for the issue?

rlepinski commented 6 months ago

It should be fixed in 18.1.1, could you verify the full version in your pod lock file?

Not that this is the error you are encountering, but updateRegistration has been removed as well so you are going to want to remove that call. It should be handled for you now.

Another thing, we have identified an issue with coredata if you upgrade from 16.x (or older) to 18.x directly. If you are not coming from 17.x or newer, you may want to hold off til we get a patch out today or tomorrow.

BrandonStalnaker commented 6 months ago

@rlepinski No I'm using 18.1.2 Here's my Podfile.lock image

I think its cause its not marked public like analytics below it.

Screenshot 2024-05-07 at 10 18 02 AM
rlepinski commented 6 months ago

🤦 Ill get it resolved with the patch going out today

crow commented 6 months ago

@BrandonStalnaker Release 18.2.0 is out with push exposed to obj-c