Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Im having trouble getting AWSSDK.Core to load on Xamarin.Mac #307

Closed
KraigM opened this issue Feb 3, 2016 · 10 comments
Closed

Im having trouble getting AWSSDK.Core to load on Xamarin.Mac #307

KraigM opened this issue Feb 3, 2016 · 10 comments
Labels
feature-request A feature should be added or improved.

Comments

@KraigM
Copy link

KraigM commented Feb 3, 2016

Everytime it tries to load I get "Could not load file or assembly 'Xamarin.iOS' or one of its dependencies. The system cannot find the file specified." I then realized that you are using the exact same dll for Xamarin.Mac and Xamarin.iOS. I know they are supposed to be compatible but since the assembly names are diff it's not resolving some of the dependencies.

Is there any way you can add a Xamarin.Mac build? (I don't mind helping with this but not sure what need to happen on your end)

Or am I just doing something wrong?

@PavelSafronov
Copy link

What is your environment and how are you attempting to add the AWS SDK to your project?

The recommended approach is to open your project in Xamarin Studio or Visual Studio, then to use NuGet to add a reference to the SDK. For instance, if my project is going to use DynamoDB, I would open the NuGet interface, search for "awssdk dynamodb", find the package named "AWSSDK - Amazon DynamoDB", and install that. Installing this package will also install the AWSDK.Core package.

@KraigM
Copy link
Author

KraigM commented Feb 4, 2016

Just setting up a test project using S3 + dependencies crashes on startup...

Here is a sample project: AWSXamMacTest.zip

@KraigM
Copy link
Author

KraigM commented Feb 4, 2016

The environment: Mac OS X (only one supported), Xamarin Studio (VS not supported), Apple computer (only one supported) 😜

And yes Im using NuGet packages

@KraigM
Copy link
Author

KraigM commented Feb 4, 2016

I hacked it a little last night. I installed it with NuGet, then manually changed the reference to the PCL one, then forced the PlatformServices (using reflection). It kinda worked but I think just simply building the iOS version, with a few #if's, on a Xamarin.Mac project should fix it.

Again, unless Im missing something. I did try referencing an Xamarin.iOS lib on a Xamarin.Mac project and it does not like it. The compiler, linker, etc is the same between the two but the platform library has a different assembly name. So I don't see how it could work the way it is.

@KraigM
Copy link
Author

KraigM commented Feb 4, 2016

I went ahead and setup a new Xamarin.Mac project. I haven't integrated it into your build/nuspec but this should at least take care of the setup (if it goes down that route)

KraigM@2dee2b4

@karthiksaligrama karthiksaligrama added feature-request A feature should be added or improved. and removed Question labels Feb 4, 2016
@karthiksaligrama
Copy link
Contributor

At the moment we do not support Xamarin.Mac . I've added this to the feature requests for now

@KraigM
Copy link
Author

KraigM commented Feb 4, 2016

According to your nuget package you do

@darthdurden
Copy link

I take it Xamarin.Mac is still not supported via the SDK? Is this planned at all? I could really make some use of it.

@hexuallyactive
Copy link

+1

1 similar comment
@markbeaton
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

6 participants