Giter Club home page Giter Club logo

Comments (38)

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024 1

@lk-code I am going to close the issue, because it is solved for MauiSamples. Please write a comment when you solve the issue for your project. It's interesting to know what was the problem

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024 1

Hi,

a short status update:

with the latest updates for Visual Studio for mac (v17.5) and .NET MAUI (manifest version 7.0.59/7.0.100 and sdk 7.0.200) it finally works (no further changes to the code).

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024 1

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

The issue seems to be related to unsupported XCode/Xamarin.iOS version.
What is your environment?

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

Both have the latest versions installed (Xcode 14.2 and Visual Studio for Mac 17.4.2)

Apple Developer Tools
Xcode 14.2 (21534)
Build 14C18

Xamarin.Mac
Version: 9.0.0.27 (Visual Studio Professional)
Hash: 933c6c2c9
Branch: xcode14.1
Build date: 2022-11-22 02:00:36-0500

Xamarin.iOS
Version: 16.1.1.27 (Visual Studio Professional)
Hash: 933c6c2c9
Branch: xcode14.1
Build date: 2022-11-22 02:00:37-0500

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

XCode 14.2 is not supported.
Try downgrade to 14.1

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

I loaded Xcode 14.1 but still get the same error

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

I am not able to reproduce the issue. Make sure you selected XCode 14.1 in IDE settings:
image
image

My env:

Apple Developer Tools
Xcode 14.1 (21534.1)
Build 14B47b

Xamarin.Mac
Version: 9.0.0.27 (Visual Studio Community)
Hash: 933c6c2c9
Branch: xcode14.1
Build date: 2022-11-22 02:00:36-0500

Xamarin.iOS
Version: 16.1.1.27 (Visual Studio Community)
Hash: 933c6c2c9
Branch: xcode14.1
Build date: 2022-11-22 02:00:37-0500

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

In my case xcode 14.1 is used:

Bildschirm­foto 2022-12-26 um 23 58 24

Apple Developer Tools
Xcode 14.1 (21534.1)
Build 14B47b

Xamarin.Mac
Version: 9.0.0.27 (Visual Studio Professional)
Hash: 933c6c2c9
Branch: xcode14.1
Build date: 2022-11-22 02:00:36-0500

Xamarin.iOS
Version: 16.1.1.27 (Visual Studio Professional)
Hash: 933c6c2c9
Branch: xcode14.1
Build date: 2022-11-22 02:00:37-0500

Operating System
Mac OS X 13.1.0
Darwin 22.2.0 Darwin Kernel Version 22.2.0
Fri Nov 11 02:03:51 PST 2022
root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 arm64

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

Are you trying to deploy it to real device or simulator?
Could you also try to create Xamarin iOS Extension and deploy it. Does it work?
I have tried yesterday and it worked without any issues.

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

I can confirm after updating to XCode 14.2 I receive the same issue.

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

Hi,

first I wish you happy new year and good health :D

I had tried to launch the app in the simulator and I had already tried to create a Xamarin iOS version at the same time. However, I got the same error.

I just uninstalled Xcode 14.2 the other day (Via the folder, since I had downloaded the version from the store) and then installed Xcode 14.1 via the website. And as you can see from the screenshots, Xcode 14.1 is also in use. But I think that somehow small tools like ditto are still streaming from Xcode 14.2 :/

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

Hi, Happy new year!
Maybe reinstalling XCode tools will help.

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

It seems like the issue is resolved with 16.2:
image

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

That sounds nice. I will check it directly after my vacation 😃

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

I installed the store version of Xcode again (14.2) and get the same errors :(. I think I will uninstall Xcode and Visual Studio completely and then reinstall :/

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

make sure you also install Xamarin SDK as well.

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

I checked everything when I installed Visual Studio. Let's see if it works :)

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

I dont know what am I doing wrong :/ I installed everything correctly and completely. I first tried to restart your test project MauiSamples. However, it comes again the same error of ditto.

Have you installed any additional tools or made any settings?

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

try to run XCode and make sure you installed iOS

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

This is the first thing I did. Created a test project in Swift and then started it in the iPhone Simulator.

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

could you try to create a test ios extension project in xcode.
then using the same ApplicationId create a xamarin project. try deploying it to the simulator again.

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

I haven't tried your last tip yet. I don't know what changed, but I can run your MauiSamples and the share/receive function works fine.

In my .NET MAUI, the code is identical to your example (except App ID, etc.). But I still get the same error with ditto. The only relevant difference is that I have added a condition to the entry, because otherwise on Android, etc., the error is not there. errors occur. Besides ios I also have android and macOS as TargetFrameworks.

<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
    <ProjectReference Include="..\Recipes.Mobile.IosReceiveExtension\Recipes.Mobile.IosReceiveExtension.csproj" />
</ItemGroup>

Edit:
I have also just removed all TargetFrameworks except iOS and removed the Condition. The error still comes ....

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

Well, at least MauiSamples works.
could you please share your project with ditto error?

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

I have added you to the "lk-code/Rezeptbuch" repository. Can you access it?

The current changes with the iOS Extension are located in the branch "R-9".

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

Yes, thank you.
I will take a look tomorrow during the day

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

Just a quick look. Could you change the application Id of the extension to ends with “Extension” like com.project.mobile.share-extension

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

add the next line to the extension csproj file: <SupportedOSPlatformVersion>15.4</SupportedOSPlatformVersion>
image

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

Hi,

I have no idea what I'm doing wrong 😅. I have added the line. Clean and build and ditto error appears. i deleted all bin and obj folders, clean and build and... again ditto error.
But it must have something to do with the project, because MauiSamples work :/

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

I just tried adding the other platforms to MauiSamples to see if that's the problem, but MauiSamples is still running.

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

Seems like the ditto is related to differences in SupportedOSVersion in info.list and csproj.
However I was able to deploy your project after adding that line. I can commit the changes I made

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

Yes that would be great

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

It's very confusing. It just does not work :(. I think I will create a completely empty project the next few days and then implement everything again, maybe it will work then.

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

@lk-code the last option is to try remove bin/obj. Then rebuild again. If it doesn't help, I suppose the issue is with environment, because I was successfully deployed your project to simulator.

from mauisamples.

lk-code avatar lk-code commented on August 23, 2024

"bin/obj" I delete every time there are problems as the first :D. but that makes no difference in this case.

I think there is some problem, but I have no idea where. I had everything completely uninstalled and reinstalled. and the MauiSamples run as expected :/

i have no idea. That's why I think the next step is to create a completely new project and test it there.

from mauisamples.

VladislavAntonyuk avatar VladislavAntonyuk commented on August 23, 2024

You can try my .NET Templates Nuget package: https://www.nuget.org/packages/VladislavAntonyuk.DotNetTemplates

It has all iOS extensions migrated to .NET MAUI.

from mauisamples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.