Comments (38)
@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.
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.
from mauisamples.
The issue seems to be related to unsupported XCode/Xamarin.iOS version.
What is your environment?
from mauisamples.
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.
XCode 14.2 is not supported.
Try downgrade to 14.1
from mauisamples.
I loaded Xcode 14.1 but still get the same error
from mauisamples.
I am not able to reproduce the issue. Make sure you selected XCode 14.1 in IDE settings:
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.
In my case xcode 14.1 is used:
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.
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.
I can confirm after updating to XCode 14.2 I receive the same issue.
from mauisamples.
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.
Hi, Happy new year!
Maybe reinstalling XCode tools will help.
from mauisamples.
It seems like the issue is resolved with 16.2:
from mauisamples.
That sounds nice. I will check it directly after my vacation 😃
from mauisamples.
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.
make sure you also install Xamarin SDK as well.
from mauisamples.
I checked everything when I installed Visual Studio. Let's see if it works :)
from mauisamples.
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.
try to run XCode and make sure you installed iOS
from mauisamples.
This is the first thing I did. Created a test project in Swift and then started it in the iPhone Simulator.
from mauisamples.
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.
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.
Well, at least MauiSamples works.
could you please share your project with ditto error?
from mauisamples.
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.
Yes, thank you.
I will take a look tomorrow during the day
from mauisamples.
from mauisamples.
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.
from mauisamples.
add the next line to the extension csproj file: <SupportedOSPlatformVersion>15.4</SupportedOSPlatformVersion>
from mauisamples.
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.
I just tried adding the other platforms to MauiSamples to see if that's the problem, but MauiSamples is still running.
from mauisamples.
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.
Yes that would be great
from mauisamples.
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.
@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.
"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.
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)
- Drag issue in Mauipaint HOT 3
- Card stack layout with flip card HOT 4
- MauiTabView: IndicatorView+CarouselView issues HOT 10
- Kanbas board - Errror: Layout cycle detected HOT 2
- Android: Is there any way to allow touching outside the BottomSheet without closing the bottomsheet! Is it possible to behave like standard sheet and not like a modal sheet HOT 2
- MauiTaskListApp crashes in release mode HOT 3
- Maps custom pins Query - New to Maui HOT 1
- MAUI Maps issue HOT 1
- MauiMaps HOT 3
- drag files to os? HOT 1
- `<Span>`s and support for setting custom cursors HOT 6
- Custom pin on ios generated from a ContentView
- Windows - Is it possible to record loopback sound? HOT 3
- suggestion for continues recognition HOT 5
- Cutom cursor HOT 4
- Authorization with ASP identity core, firebase Auth HOT 1
- Stuck in infinite loop navigating back to page with map HOT 1
- Resolved issue with Android not placing center image
- Multiple TabViews? In same page
- MauiApplicationInsights questions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mauisamples.