Aws-sdk-ios: Cannot compile for UIKit for Mac

Created on 9 Jun 2019  路  38Comments  路  Source: aws-amplify/aws-sdk-ios

Describe the bug
With the new UIKit for Mac support in Xcode 11 and macOS Catalina, this library is currently unable to compile the My Mac target. There are unavailable keychain APIs preventing the SDK from being compiled.

To Reproduce

  • install the SDK into an iPad Xcode 11 project
  • enable Mac support
  • compile the app for the My Mac target

Which AWS service(s) are affected?

Expected behavior
The SDK should compile

Screenshots
image

Environment(please complete the following information):

  • SDK Version: 2.9.3
  • Dependency Manager: Cocoapods
  • Swift Version : 5.0

Device Information (please complete the following information):

  • Device: macOS Catalina
  • iOS Version: n/a
  • Specific to simulators:

Additional context
Add any other context about the problem here.

feature request follow up platform support

Most helpful comment

Now the only reason my app doesn't work on mac. PLEASE FIX ASAP AWS!!!

All 38 comments

Just as a note, not asking specifically about macOS support, just that the internal dependency on UICKeychainStore be updated to remove any calls to unavailable APIs.

@colinhumber Thank you for reporting to us. I have tagged this as a feature request and added to the backlog for prioritization.

@kvasukib I would be happy to work on this. After checking the custom prefixed UICKeychainStore code in both AWSCore and AWSCognitoAuth, the offending methods are already wrapped in an #if TARGET_OS_IOS. These methods are also not called anywhere in the AWS code. In Xcode 11 there's also a new TARGET_OS_UIKITFORMAC macro available to deal with these unavailable APIs. Of course, that can't be included until the public release, but this should be a pretty trivial change, as far as I can tell to get this working for both iOS targets and iPad apps deployed to macOS.

Hi, Any other news regarding this ?

Hoping for updates here. Is there a branch with this working?

@kvasukib Any updates on this? We're probably about a month or less from release.

@colinhumber Did you work around this somehow?

Bumping for updates

I've been waiting to get an official update, but in the meantime I have this on a branch. I might just do a PR since there's been no word as to whether this will be internally handled.

https://github.com/colinhumber/aws-sdk-ios/tree/uikit-for-mac

When we get the updated pod which is also support macCatalyst ?

Another vote for an updated pod please with support for macCatalyst

Please update

AWS for iOS still doesn't work out of the box on Catalyst because of these errors.
Given how small the required change is and with Xcode 11 being released now, wouldn't it make sense to release an update?

Please update

yes please ;)

Please make this update to the pod file so that we can work with the catalyst

Bumping for updates, thanks!

Has this been resolved?

It will not work if we are using Cognito, because it includes compiled .a lib.

Another problem is SFAuthetnicationSession which is not available on Catalyst.

Please fix this.

I need a fix for this if possible. Thanks

I tried using @colinhumber 's uikit-for-mac branch, but my project needs AWSIoT, and I am running into another error when trying to build for macOS Catalyst in AWSSRWebSocket.m - the import is not found.

please fix

Now the only reason my app doesn't work on mac. PLEASE FIX ASAP AWS!!!

Any luck on this?

Going to keep asking here as this is important to us.

@nikhil-dabhade any update on this?

@royjit any update on this? Just won't build on Xcode ATM.

Please update!

Any updates?

This is blocking us from working on our Mac Catalyst app. Please update ASAP.

Why is AWS so against any sort of macOS support...since 2010 it makes cross platform Apple applications impossible

There鈥檚 nothing worse than investing your time writing against a library only to find it gets you 99% of the way there but not that last 1%. Re-wrote my app to use API calls at great expense. Won鈥檛 waste my time on an Amazon maintained library again.

can i at least get the brand of wax that jeff bezos uses for his head? thnx in advance

Any updates? I really need this update.

Sadly I don't think AWS will help us, instead, we will wait for macOS Big Sur that allows iOS apps to work directly.

@royjit @nikhil-dabhade can you please provide an update on this? Are we ever going to get this or not? So we know how to move forward.

Hi @msuzoagu, we're currently evaluating supporting other platforms, such as MacOS. Our primary goal is to add support for other platforms in Amplify iOS , we're still not sure if we'll be able to cover all the SDKs, since there's quite a bit of area to cover and also legacy code. Regardless I'll keep you posted.

In case you're working on new projects, I suggest you check if Amplify is a good fit for you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

motivus picture motivus  路  4Comments

mohab2014 picture mohab2014  路  4Comments

minhthuc251 picture minhthuc251  路  4Comments

premiumbosslimited picture premiumbosslimited  路  3Comments

aTylerRice picture aTylerRice  路  3Comments