Azure / azure-notificationhubs-ios

Azure Notification Hubs SDK for Apple
Apache License 2.0
32 stars 29 forks source link

[BUG] Xcode 16 Beta failing to compile with WindowsAzureMessaging dependency #145

Open newky2k opened 1 year ago

newky2k commented 1 year ago

Describe the bug Whilst testing our project with Xcode 15/iOS17 using the first Xcode 15 beta, we have found that we are unable to compile the app as it complains about a missing header file in the WindowsAzureMessaging dependency, which is adding using SPM.

Obviously, a quick investigation can see that the file is there and nothing has changed between Xcode 14 and 15

Xcode 14.3.1 builds without issue Exception or Stack Trace

Showing All Messages /Users/user/Library/Developer/Xcode/DerivedData/EFOS-gkiizosydfslxzfdkuthkpfxczum/SourcePackages/checkouts/azure-notificationhubs-ios/WindowsAzureMessaging/WindowsAzureMessaging/Helpers/SBURLConnection.m:5:9: 'ANHAsync.h' file not found

To Reproduce

Code Snippet Just failing to find the file

Expected behavior Should build

Screenshots image image

Setup (please complete the following information):

Additional context We are unable to test our application against iOS 17 without removing the package

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

tomkrikorian commented 1 year ago

Having the same issue here! Have you found a workaround on your side ?

newky2k commented 1 year ago

@tomkrikorian No i haven't, but i've been busy with other work so i haven't had time to investigate further.

newky2k commented 1 year ago

I can confirm this is still and issue in Beta 2

newky2k commented 1 year ago

@tomkrikorian I have managed to work round this by adding the WindowsAzureMessaging.xcframework directly to my project instead of using SPM.

Roberdan commented 1 year ago

any update on this topic\package? Thx

newky2k commented 1 year ago

Just installed Xcode 15 beta 4 and its now complaining about a different file instead of the original one i logged

image

newky2k commented 1 year ago

Just installed Xcode 15 Beta 5 and its the same as Beta 4.

learnwithgabbar commented 11 months ago

Any workaround?

newky2k commented 11 months ago

@tomkrikorian I have managed to work round this by adding the WindowsAzureMessaging.xcframework directly to my project instead of using SPM.

@learnwithgabbar the above is the only work around

Roberdan commented 11 months ago

FYI with Xcode 15 beta 6 it just works as expected

newky2k commented 11 months ago

I can confirm that is is now resolved in Xcode 15 Beta 6

TheNightmanCodeth commented 1 month ago

This issue is back in Xcode 16 beta 1

newky2k commented 1 month ago

I can confirm we have the same issue as before in Xcode 16 Beta 1

We have 11 other packages that don't have this problem